This file contains hidden or 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 | |
| cd ~/Apps/Aptana\ Studio\ 2.0/ | |
| export GDK_NATIVE_WINDOWS=true | |
| ./AptanaStudio & |
This file contains hidden or 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 | |
| # Creates self-signed SSL certs | |
| # Creates Apache vhost config | |
| # | |
| # Targets Ubuntu/Debian based distros | |
| # Forked from http://gist.github.com/275207 | |
| # !!! Important !!! |
This file contains hidden or 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
| git config --global user.name "Danny Graham" | |
| git config --global user.email good.midget@gmail.com | |
| # Deprecated in favor of ... | |
| #git config --global color.diff always | |
| #git config --global color.status always | |
| #git config --global color.branch always | |
| git config --global color.ui auto | |
| git config --global color.interactive auto |
This file contains hidden or 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 | |
| set -o errexit | |
| # Author: David Underhill | |
| # Script to permanently delete files/folders from your git repository. To use | |
| # it, cd to your repository's root and then run the script with a list of paths | |
| # you want to delete, e.g., git-delete-history path1 path2 | |
| if [ $# -eq 0 ]; then | |
| exit 0are still |
This file contains hidden or 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
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| [ -z "$PS1" ] && return | |
| # don't put duplicate lines in the history. See bash(1) for more options | |
| export HISTCONTROL=ignoredups | |
| # ... and ignore same sucessive entries. |
This file contains hidden or 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 | |
| # vlan1 is our PRIMARY WAN connection (public IP) | |
| # AUX WAN | |
| WAN2_IFNAME=vlan2 | |
| WAN2_IPADDR=192.168.100.173 | |
| WAN2_GATEWAY=192.168.100.254 | |
| WAN2_NETMASK=255.255.255.0 | |
| if [ "$(nvram get wan2_ipaddr)" != "$WAN2_IPADDR" ]; then |
This file contains hidden or 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 | |
| ################ | |
| # Copyright Brian Hatch, 2004 | |
| # http://www.hackinglinuxexposed.com/articles/20040830.html | |
| ################ | |
| bouncehost=$1 | |
| target=$2 | |
This file contains hidden or 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/perl | |
| use 5.008; | |
| use strict; | |
| use Memoize; | |
| sub usage { die "usage: git-large-blob <size[b|k|m]> [<git-log arguments ...>]\n" } | |
| @ARGV or usage(); | |
| my ( $max_size, $unit ) = ( shift =~ /^(\d+)([bkm]?)\z/ ) ? ( $1, $2 ) : usage(); |
This file contains hidden or 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
| <script type="text/javascript" src="/common/js/swfobject.js"> | |
| <script type="text/javascript"> | |
| swfobject.registerObject("flash", "9.0.0", "expressInstall.swf"); | |
| </script> | |
| <!-- EXTRA MARKUP --> | |
| <table border="0" cellspacing="0" cellpadding="0" width="940" align="center" height="400"> | |
| <tbody> |
This file contains hidden or 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
| /** | |
| * Note - you'll need: | |
| * import flash.events.FocusEvent | |
| * | |
| * Also, try/catch is pretty expensive processing-wise. Avoid it. | |
| * I threw it together that way so you can play with it and get some | |
| * better reporting on what's going on without it bombing on you. | |
| * Once you refine it to search without throwing any exceptions on | |
| * missing properties or methods, kill the try/catch. |
OlderNewer