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 | |
### BEGIN INIT INFO | |
# Provides: btsync | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Should-Start: $network | |
# Should-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Multi-user daemonized version of btsync. |
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
d-i partman/filter_mounted boolean false | |
d-i partman/unmount_active boolean false | |
d-i partman-auto/choose_recipe select atomic | |
d-i partman-auto/disk string /dev/sda | |
d-i partman-auto/method string regular | |
d-i partman-auto/choose_recipe select atomic | |
d-i partman/confirm_write_new_label boolean true | |
d-i partman/choose_partition select finish | |
d-i partman/confirm boolean true |
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
# The loopback network interface | |
auto lo eth0 wlan0 | |
iface lo inet loopback | |
# The primary network interface | |
allow-hotplug eth0 | |
iface eth0 inet dhcp | |
# Wireless AP setup | |
allow-hotplug wlan0 |
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 | |
# Global Variables | |
PROJECT_FOLDER="$(pwd)" | |
# Make sure something is actually specified | |
if [[ -z "$1" ]]; then echo "Please specify a command (if not sure do `basename $0` --help)"; fi | |
usage() { | |
echo "`basename $0` [OPTIONS] meta script setting up a new C program in automake." |
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
# Which local IP address should OpenVPN | |
# listen on? (optional) | |
local x.x.x.x | |
port 443 | |
dev tun | |
proto tcp-server | |
tls-server | |
ca /etc/openvpn/ca.crt |
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
# Bash Bookmarks | |
####################################################### | |
export MARKPATH=$HOME/.marks | |
function jump { | |
cd -P "$MARKPATH/$1" 2>/dev/null || echo "No such mark: $1" | |
} | |
function mark { | |
mkdir -p "$MARKPATH"; ln -s "$(pwd)" "$MARKPATH/$1" | |
} | |
function unmark { |
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
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |
} | |
function git-track { | |
CURRENT_BRANCH=$(parse_git_branch) | |
git-config branch.$CURRENT_BRANCH.remote $1 | |
git-config branch.$CURRENT_BRANCH.merge refs/heads/$CURRENT_BRANCH | |
} |
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 | |
# This is meant to be run on a newly install computer | |
# and can be done remotely by something like this: | |
# | |
# ssh username@ipaddress 'bash -s' < local_script.sh | |
# | |
# Enable/Start SSHD | |
####################################### |
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 | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
# Set some global variables | |
installLocation='./FINAL-PLACE' | |
logFiles='./log' | |
md5Cache="$logFiles/md5Cache.txt" | |
duplicateFile="$logFiles/dupFiles.txt" |
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
alias configuredebug='CPPFLAGS=-DDEBUG CFLAGS="-g -O0" CXXFLAGS="-g -O0" ./configure' |
OlderNewer