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
#import <Foundation/Foundation.h> | |
@interface NSDictionary(Persistence) | |
-(void)writeToFileInDocumentsDir:(NSString *)path atomically:(BOOL)atomically; | |
@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
settings = { | |
logfile = '/tmp/lsyncd.log', | |
statusFile = '/tmp/lsyncd.stat', | |
statusInterval = 1, | |
nodaemon = true | |
} | |
echo = { | |
maxProcesses = 1, | |
delay = 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 | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
LETSENCRYPT="/usr/local/letsencrypt/letsencrypt-auto" | |
DOMAINS="home.savage.hk,couchpotato.home.savage.hk,cp.home.savage.hk,sonarr.home.savage.hk,sonar.home.savage.hk,synology.home.savage.hk,nas.home.savage.hk" | |
#DOMAINS="home.savage.hk,couchpotato.home.savage.hk,sonarr.home.savage.hk" | |
EMAIL="andy@bluewire.net.nz" | |
WEBROOT_PATH="/tmp/letsencrypt-auto" |
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
// require deployd | |
var deployd = require('deployd'); | |
// configure database etc. | |
var server = deployd({ | |
port: process.env.PORT || 1337, | |
env: 'production', | |
db: { connectionString: process.env.MONGO_URL } | |
}); |
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
# Amazon | |
route = 8.18.144.0/255.255.254.0 | |
route = 23.20.0.0/255.252.0.0 | |
route = 27.0.0.0/255.255.252.0 | |
route = 46.51.0.0/255.255.0.0 | |
route = 46.137.0.0/255.255.0.0 | |
route = 50.16.0.0/255.252.0.0 | |
route = 50.112.0.0/255.255.0.0 | |
route = 54.0.0.0/255.0.0.0 |
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
#coolaler.com | |
96.44.156.0/24 | |
74.208.232.0/24 | |
#docstoc.com | |
72.172.88.0/24 | |
#ipicture.ru | |
88.212.206.0/23 | |
#mobile01 | |
202.39.235.0/24 | |
#platform.twitter.com |
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 | |
# | |
# Transforms a jar file into source and outputs source files to 'src'. | |
# Example: | |
# | |
# jar2java foo.jar ; --> source to 'src' | |
# | |
# After you can run javadoc on these files, e.g. | |
# | |
# javadoc -classpath foo.jar -d api `find src -name "*.java"` |
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 ruby -w | |
# brew-services(1) - Easily start and stop formulas via launchctl | |
# =============================================================== | |
# | |
# ## SYNOPSIS | |
# | |
# [<sudo>] `brew services` `list`<br> | |
# [<sudo>] `brew services` `restart` <formula><br> | |
# [<sudo>] `brew services` `start` <formula> [<plist>]<br> |
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 | |
sudo apt-get install gcc dpkg-dev cdbs automake autoconf libtool make libssl-dev libsasl2-dev git python-lxml pkg-config | |
git clone git://github.com/mongodb/mongo-c-driver.git | |
cd mongo-c-driver | |
./build/mci.sh --notest | |
cd .. | |
sudo dpkg --install libmongoc-*.deb libbson-*.deb |
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 | |
if [ $# -eq 0 ]; then | |
printf 1 "Usage: $(basename $0) [build-args [-- run-args [-- cmd-args] ] ]" | |
printf 1 " NOTE!!! the -rm-flag is hardcoded for build!" | |
fi | |
BUILD_ARG=() | |
RUN_ARG=() | |
CMD_ARG=() |
OlderNewer