This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.getElementsByTagName('body')[0].innerHTML+= ('<a href=\'javascript:navigator.registerProtocolHandler("web+alfred","%s.alfredworkflow","Alfred 2");\'>a link</a>') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
## | |
## 03/03/2015 | |
## Updates IPv4 and IPv6 on DynV6.com on OSX | |
## https://gist.github.com/smj10j/6730d6136eb206e9b9bc | |
## Original at https://gist.github.com/corny/7a07f5ac901844bd20c9 | |
## | |
## Example call: | |
## token=<token> ./dynv6.sh <your dynv6 hostname> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
hosts="1.1.1.1 2.2.2.2 3.3.3.3" | |
for host in $hosts; do | |
nohup bash -c "ssh -t $host 'sudo tail -f /mnt/log/nginx/*.error_log' >> /mnt/log/combined_error_log" >/dev/null 2>&1 & | |
done | |
# To end | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage example | |
# | |
# curl "https://gist.githubusercontent.com/smj10j/a4fe775b0e4f4fa68b45/raw/create-aws-configuration-files.sh" | \ | |
# bash -s 'access key' 'secret key' 'us-east-1' && \ | |
# aws iam list-access-keys --user-name SomeUser | |
# | |
ACCESS_KEY=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Requires [jq](https://stedolan.github.io/jq/) | |
# Can be installed via brew with `brew install jq` | |
ZONE_ID= | |
RAILGUN_ID= | |
API_KEY= | |
EMAIL= | |
curl -s -o - -X GET "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/railguns/$RAILGUN_ID/diagnose" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ac3 => mp3 conversion for files in same dir | |
# Converting.... | |
# echo "Starting 5 runs of ffmpeg for conversion..." | |
# for i in $(seq 5); do | |
# ( find . -regex '.*\.mp3$' -exec ffmpeg -n -i "{}" -pix_fmt rgb24 -vsync 2 -b:a 192K -aq 2 -f mp3 "{}.done" \; | |
# done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Made for use with IFTTT | |
# Wrapped in an Automator Folder Action Workflow | |
# | |
# | |
property bundlePath : the path to me as text | |
property binPath : bundlePath & "Contents:bin" | |
on run {input, parameters} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
######################################## | |
# Tests zip capabilities of given apps # | |
######################################## | |
if [[ "$#" == 0 ]]; then | |
echo "Usage: $0 [directory] [apps...]" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### | |
### Example usage: "sudo ./test-bs.sh -p -s 134217728 -w -f /Volumes/SDCARD/dd_test" | |
### | |
### This would test the write speed (-w) of the (presumably) attached SD Card by writing | |
### 134217728 (-s) bytes to /Volumes/SDCARD/dd_test_output (-f) using each block size. | |
### Before each test is run, the disk cache will be purged (-p) | |
### | |
### Generating results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# set -x | |
CWD=$(pwd) | |
DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
PREFIX='screencast' | |
INCOMINGDIR='Incoming' | |
SRCDIR=$CWD |