Skip to content

Instantly share code, notes, and snippets.

View vongrippen's full-sized avatar

Mike Cochran vongrippen

  • Telarray
  • Memphis, TN
View GitHub Profile
#chat-box.ubuntu.hidden-xs
.closed
.pull-right
= link_to_function content_tag(:i, nil, class: 'glyphicon glyphicon-chevron-up').html_safe, 'chat.show()'
.m-l-small
= link_to_function 'Chat with us', 'chat.show()'
.opened{style: 'display: none'}
.header
.pull-right
= link_to_function content_tag(:i, nil, class: 'glyphicon glyphicon-plus-sign').html_safe, 'chat.maximize()', class: 'maximize', style: 'display: none'
div.log div.messageRow, div.log span.author, div.log div.me a.user, div.memberwrapper, div.shim, td.nickcell a.nick, td.inputcell textarea {
font-family: Consolas, monospace, Courier;
font-size: 12px;
}
span.author a:before {
content: "<"
}
span.author a:after {
function Load-Packages
{
param ([string] $directory = 'Packages')
$assemblies = Get-ChildItem $directory -Recurse -Filter '*.dll' | Select -Expand FullName
foreach ($assembly in $assemblies) { [System.Reflection.Assembly]::LoadFrom($assembly) }
}
Load-Packages
$routes = @{
div.log div.messageRow, div.log span.author, div.log div.me a.user, div.memberwrapper, div.shim, td.nickcell a.nick, td.inputcell textarea {
font-family: Consolas, monospace, Courier;
font-size: 12px;
}
span.author a:before {
content: "<"
}
span.author a:after {
@vongrippen
vongrippen / dreamhost_gitosis.sh
Created January 18, 2011 23:02
Public Dreamhost Gitosis Setup
mkdir -p $HOME/lib/python2.5/site-packages; export PYTHONPATH=$HOME/lib/python2.5/site-packages
mkdir ~/src; cd ~/src
git clone git://eagain.net/gitosis.git
cd gitosis
python setup.py install --prefix=$HOME
echo "export PYTHONPATH=$HOME/lib/python2.5/site-packages/" >> .bashrc
echo "export PYTHONPATH=$HOME/lib/python2.5/site-packages/" >> .bash_profile
echo "export PATH=$HOME/bin:$PATH" >> .bashrc
echo "export PATH=$HOME/bin:$PATH" >> .bash_profile
if [ ! -e ~/.ssh/id_rsa.pub ]
@vongrippen
vongrippen / rsync-data
Created March 15, 2011 14:34
rsync-data.sh
#!/bin/bash
if [ -e /tmp/rsync-data-lock ]
then
exit 1
fi
touch /tmp/rsync-data-lock
REMOTE_SERVER=$1
EXCLUDE=$2
@vongrippen
vongrippen / rsync-config.sh
Created March 15, 2011 14:36
rsync-config
#!/bin/bash
if [ -e /tmp/rsync-config-lock ]
then
exit 1
fi
touch /tmp/rsync-config-lock
REMOTE_SERVER=$1
BACKUP=$2
@vongrippen
vongrippen / RubyMine 3.1.1
Created March 15, 2011 19:56
RubyMine 3.1.1 Ubuntu Install
#!/bin/bash
VERSION=3.2.3
wget http://download.jetbrains.com/ruby/RubyMine-$VERSION.tar.gz -O /tmp/rubymine
sudo tar -xzvf /tmp/rubymine -C /opt
sudo mv /opt/RubyMine-$VERSION /opt/RubyMine
sudo cat >/usr/share/applications/rubymine.desktop <<EOF
[Desktop Entry]
Name=RubyMine
Comment=Integrated Development Environment
@vongrippen
vongrippen / rubygems.sh
Created March 15, 2011 20:04
RubyGems Ubuntu Install
#!/bin/bash
sudo apt-get install ruby-full
wget http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz -O /tmp/gems
tar -xzvf /tmp/gems -C /tmp
cd /tmp/rubygems-1.6.2
sudo ruby ./setup.rb
sudo dpkg-divert --rename --add /usr/bin/gem
sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
sudo gem update --system
@vongrippen
vongrippen / putty-kde.sh
Created June 16, 2011 20:48
PuTTY SSH Handler for KDE 4
#!/bin/sh
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# /usr/bin/putty.rb
# /usr/share/kde4/services/ssh.protocol