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
# Setup my home directory git | |
# Make sure you're ssh'd to the server with agent forwarding | |
cd | |
git init . | |
git remote add origin git@github.com:Kelsin/configs.git | |
git fetch origin | |
rm .bashrc | |
rm .bash_logout | |
git checkout master |
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 express = require('express'); | |
var app = express(); | |
// Load routes | |
require('./src/routes')(app); |
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
function irc-notification { | |
TYPE=$1 | |
MSG=$2 | |
terminal-notifier \ | |
-title IRC \ | |
-subtitle "$TYPE" \ | |
-message "$MSG" \ | |
-appIcon ~/path/to/icon.png \ | |
-contentImage ~/path/to/icon.png \ |
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
# Nick and auth settings for freenode | |
/set irc.server_default.nicks "kelsin,kelsin1,kelsin2,kelsin3,kelsin4" | |
/set irc.server_default.sasl_mechanism dh-blowfish | |
/set irc.server_default.username "kelsin" | |
/set irc.server.freenode.sasl_username "kelsin" | |
/set irc.server.freenode.ssl on | |
/set irc.server.freenode.ssl_dhkey_size 1024 | |
/set irc.server.freenode.addresses "chat.freenode.net/7000" | |
/set irc.server.freenode.autoconnect on | |
/set irc.server.freenode.autojoin "#antelopes,#legitco,#emacs,#vim" |
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
HUBOT_IRC_NICK: legitbot | |
HUBOT_IRC_ROOMS: #legitco | |
HUBOT_IRC_SERVER: irc.freenode.net |
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
# When using normal god commands with sudo -i is needed to load root's .bash_profile | |
# Start up god | |
sudo -i /etc/init.d/god start | |
# Shutdown god | |
sudo -i /etc/init.d/god stop | |
# See Status | |
sudo -i god status |
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
# /root/.bash_profile | |
export PATH="/root/.rbenv/shims:/root/.rbenv/bin:$PATH" |
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
# Open a new root shell | |
sudo -i | |
# Install rbenv and ruby-build | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo 'export PATH="/root/.rbenv/shims:/root/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
# Reloaded my shell | |
exit |
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
# Packages that I've installed while setting up my new system | |
# During install | |
base | |
base-devel | |
grub | |
# System config | |
openssh | |
wget |
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
# VirtualBox Guest? | |
if [ -x /usr/bin/VBoxClient-all ]; then | |
/usr/bin/VBoxClient-all | |
fi | |
# Multi Monitors | |
xrandr --output VBOX0 --auto --output VBOX1 --auto --right-of VBOX0 | |
# ENV Variables | |
export PATH="$HOME/.cabal/bin:$HOME/bin:$PATH" |