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 | |
REMOTE="tunnel-host -p 9099" | |
REMOTE_NET="192.168.1.0/24" | |
TUN=5 | |
IF="tun$TUN" | |
SSH_OPT="-c arcfour256 -o Protocol=2 -o ServerAliveCountMax=2 -o ServerAliveInterval=5 -o ConnectTimeout=5" | |
echo $SSH_OPT | |
sleep 15 # Wait for device bootup |
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
module.exports = function(grunt) { | |
var pkg = grunt.file.readJSON('package.json'); | |
grunt.initConfig({ | |
pkg: pkg, | |
/* Deployment */ | |
'ftp-deploy': { | |
build: { |
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 | |
set -e | |
# Generates php-fpm and php-cli packages and php extension packages | |
# for use with the heroku modular buildpack | |
# https://github.com/JorgenEvens/heroku-modular-buildpack | |
### Configuration ### | |
PHP_VERSION="5.5.18" |
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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="agnoster" | |
# Example aliases |
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 | |
set -e | |
# Convert indentation from $INDENT_CURRENT to $INDENT_TARGET | |
INDENT_CURRENT=" " # 1 Tab | |
INDENT_TARGET=" " # 4 Spaces | |
EXTENSION="*.php" | |
is_dirty() { |
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 _ from 'lodash'; | |
import React from 'react'; | |
const debug = false; | |
const log = debug ? console.log.bind(console) : () => {}; | |
const getPath = ( obj, path, defaultValue ) => { | |
_.each( path.split('.'), function( key ) { | |
if( _.isUndefined( obj ) ) | |
return false; |
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
var path = require('path'); | |
var chroot = require('chroot'); | |
var CHROOT_DIR = '/www'; | |
var CHROOT_WWW = '/vhost/domain/http/'; | |
var CHROOT_NODE_BIN = '/vhost/bin/node'; | |
var USER = 2000; | |
var GROUP = 2000; | |
var webDir = path.join(__dirname, '..', 'http'); |
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
#include <Arduino.h> | |
// Enable debug printing of signal | |
// #define DEBUG_SIGNAL | |
// Enable debug for HEX codes | |
// #define DEBUG_CODES | |
// Only store time that signal was up. | |
// #define STORE_DOWN |
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 | |
# Download a copy of the jruby-complete jar [here](http://www.jruby.org/download), | |
# and pass it as the first parameter to the script. | |
JRUBY="$1" | |
JAVA="java" | |
# Install compass / sass gems. | |
$JAVA -jar "$JRUBY" -S gem install compass -i ./tmp/gems | |
$JAVA -jar "$JRUBY" -S gem install --version '~> 0.9' rb-inotify -i ./tmp/gems |
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
alias gitrm='git ls-files -d | xargs git rm' |
OlderNewer