Non-HTML:
$ ./bin/swig.js render ./test1 -j ./data.json
onclick="pictureInsert(1, foo)"
HTML:
$ ./bin/swig.js render ./test2 -j ./data.json
Non-HTML:
$ ./bin/swig.js render ./test1 -j ./data.json
onclick="pictureInsert(1, foo)"
HTML:
$ ./bin/swig.js render ./test2 -j ./data.json
| ################################################################################# | |
| # start and stop the vpn from the command line from now on with these two commands | |
| # or rename the aliases as you see fit. | |
| ################################################################################# | |
| alias startvpn="sudo launchctl load -w /Library/LaunchDaemons/net.juniper.AccessService.plist; open -a '/Applications/Junos Pulse.app/Contents/Plugins/JamUI/PulseTray.app/Contents/MacOS/PulseTray'" | |
| alias quitvpn="osascript -e 'tell application \"PulseTray.app\" to quit';sudo launchctl unload -w /Library/LaunchDaemons/net.juniper.AccessService.plist" |
| #!/bin/bash | |
| # Optimize PNGs | |
| for file in `git diff --cached --name-only | grep ".png\$"`; do | |
| echo "Crushing $file" | |
| pngcrush -rem allb -brute -reduce $file ${file%.png}.new 2>&1 | grep "filesize" | |
| mv -f ${file%.png}.new $file | |
| git add $file | |
| done |
$ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="network name"
psk="password"
}| #!/usr/bin/env bash | |
| convmv -f utf8 -t utf8 --nfc --replace --nosmart --no-test -r uploads/ | |
| rsync -avz -e ssh uploads/ username@host:mysite.com/public_html/wordpress/wp-content/uploads |
| . |
| body { | |
| background: #000 !important; | |
| } | |
| div#nbc-header { | |
| display: none !important;; | |
| } | |
| div#player-wrapper + div, | |
| div#player-wrapper + div + div { |
| # Completely remove the current branch from a git repo | |
| function rm-branch() { | |
| branch="$(git branch --no-color | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')" | |
| git checkout master | |
| git branch -D $branch | |
| } |
| .Spotlight* | |
| .Trash* | |
| .AppleDouble* | |
| Thumbs.db | |
| .DocumentRevisions* | |
| .AppleDB* | |
| .AppleDesktop* | |
| .apdisk* | |
| .TemporaryItems* |