I hereby claim:
- I am Bonno on github.
- I am bonno (https://keybase.io/bonno) on keybase.
- I have a public key whose fingerprint is 18D4 7BEA 569A E077 8C67 CC1C 7832 7EFB DF6C 99DF
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| /* | |
| * PHP delete function that deals with directories recursively | |
| * Snippet from http://www.paulund.co.uk/php-delete-directory-and-files-in-directory | |
| * | |
| * @author Paulund http://www.paulund.co.uk/ | |
| * @author Lewis Cowles | |
| */ | |
| function delete_files($target) { | |
| if(is_dir($target)){ |
| (* | |
| Script by Bonno Nachtegaal-Karels, June 2014 | |
| Based on OS-X-Wallpaper-Changer (https://github.com/pipwerks/OS-X-Wallpaper-Changer) by Philip Hutchison | |
| This script assumes: | |
| 1. You have a folder named "Wallpapers" in your Pictures folder or somewhere else depending on the setting below | |
| 2. You have images inside each folder |
| if [ -n "$1" ] | |
| then | |
| if [ -d "$1" ] | |
| then | |
| cd "$1" | |
| else | |
| echo invalid directory | |
| exit | |
| fi | |
| fi |
| #!/bin/bash | |
| #FS=' | |
| #' | |
| ##strip special character: ' | |
| character="'" | |
| replace="_" | |
| j=`find $1 -printf "%d\n" | sort -u | tail -n 1` | |
| j=$((j-1)) |
| # Flush magento cache/fullpagecache | |
| alias flush='setopt rmstarsilent && rm -rf var/cache/* && rm -rf var/full_page_cache/* && unsetopt rmstarsilent' | |
| # Return the current branch name | |
| alias repo='git rev-parse --abbrev-ref HEAD' | |
| alias gpo='git push origin' | |
| alias gb='git br' | |
| # Set the upstream for the current branch | |
| alias gbu='git branch --set-upstream `repo` origin/`repo`' |
| ffmpeg -i <infile> -ac 2 -f wav <outfile> |
| for /f "delims=" %%a IN ('dir /b *.m4a') do ( | |
| ffmpeg -i "%%a" "%%~na.wav" | |
| lame -V2 --vbr-new -q0 --lowpass 19.7 "%%~na.wav" "%%~na.mp3" | |
| del "%%~na.wav" | |
| ) |
| lame -V2 --vbr-new -q0 --lowpass 19.7 <infile> <outfile> |
| vlc -vvv http://livestreams.omroep.nl/npo/3fm_vsr-bb --sout "#standard{access=http,mux=asf,dst=192.168.3.31:8080}" |