Skip to content

Instantly share code, notes, and snippets.

@bjalt
bjalt / xdebug.ini
Created January 22, 2021 09:37 — forked from floriansemm/xdebug.ini
PHPStorm, Vagrant and Xdebug3 config
[xdebug]
zend_extension = xdebug.so
xdebug.max_nesting_level = 2000 ; for PHPUnit tests
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.client_port=9003
xdebug.remote_handler=dbgp
xdebug.client_host=10.0.2.2 ; IDE-Environments IP
#cloud-config
output: { all: "| tee -a /var/log/cloud-init-output.log" }
package_update: true
package_upgrade: true
package_reboot_if_required: true
manage-resolv-conf: true
resolv_conf:
nameservers:
@bjalt
bjalt / backup to encrypted diskimage on remote AFP server.sh
Created September 25, 2017 19:36 — forked from koehn/backup to encrypted diskimage on remote AFP server.sh
Script for backing up a Mac OS X folder to an encrypted disk image on a remote AFP server. You must first create the encrypted disk image using Disk Utility. I recommend making it a sparsebundle for better use of space and performance. You can run this with cron and append the output to a log file. Modify the `rsync` command to exclude subdirect…
#!/bin/bash
echo =====================================
echo `date` Backing up Documents
# The URL to your remote AFP server. You can test your URL using command-K in the Finder.
AFP_URL=afp://user:[email protected]/Share
# The place where the AFP server is mounted. By default this will be in /Volumes someplace.
AFP_DIRECTORY=/Volumes/Share
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'