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
This is the content of my test gist. | |
this is my fork of it and i'm editing. |
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
Good Sublime Text 2 RegEx Example for using back references (Variables for find and replace with regex). (http://www.boost.org/doc/libs/1_47_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html) | |
Find: xm.(?:([a-zA-Z]*))\{(?:[\n]*) | |
ex: xm.Status{ | |
Replace: xm.ccr :$1 do \n | |
ex: xm.ccr :Status do | |
Find: xm.(?:([a-zA-Z]*))\((?:([a-z.\s|]*))\) | |
ex: xm.ActorID(self.creator || self.actor) |
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
Network Info | |
------------ | |
# https://help.ubuntu.com/12.10/serverguide/network-configuration.html | |
# http://www.cyberciti.biz/faq/howto-setup-linux-lan-card-find-out-full-duplex-half-speed-or-mode/ | |
ethtool <ethernet interface> | |
Show Network Interfaces | |
----------------------- | |
$ ip link show |
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
export PATH=/usr/local/bin:~/bin:/usr/local/sbin:$PATH | |
# Source out a git sh file to get access to __git_ps1 | |
source ~/.git-prompt.sh | |
# git commamands simplified | |
alias gst='git status' | |
alias gco='git checkout' | |
alias gci='git commit' | |
alias grb='git rebase' |
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
# https://help.ubuntu.com/12.10/serverguide/httpd.html | |
$ sudo apt-get install apache2 | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following extra packages will be installed: | |
apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap | |
ssl-cert | |
Suggested packages: |
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
# Used for getting torrents automatically | |
http://ubuntuforums.org/showthread.php?t=1583064 | |
http://flexget.com/wiki/Configuration |
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
https://developer.chrome.com/extensions/getstarted.html |
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
# See the number of active connections | |
$ sudo netstat -tunap | grep transmission | wc |
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
# Write up on setting up google music mananger on a headless box. Haha. Box. | |
http://www.aeonity.com/frost/running-google-music-beta-headless-linux |
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 | |
PRE="transmission-remote --auth=brown:sugar" | |
MOVEDIR=/mnt/media1/downloads | |
TVSHOWSDIR="$MOVEDIR/tvshows" | |
MOVIESDIR="$MOVEDIR/movies" | |
MUSICDIR="$MOVEDIR/music" | |
TORRENTLIST=`$PRE --list | sed -e '1d;$d;s/^ *//' | cut --only-delimited --delimiter=' ' --fields=1` |
OlderNewer