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
#!/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
# ~/.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/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
git config --global user.name "Danny Graham" | |
git config --global user.email [email protected] | |
# 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/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
#!/bin/sh | |
cd ~/Apps/Aptana\ Studio\ 2.0/ | |
export GDK_NATIVE_WINDOWS=true | |
./AptanaStudio & |
NewerOlder