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
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 ] |
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/bash | |
if [ -e /tmp/rsync-data-lock ] | |
then | |
exit 1 | |
fi | |
touch /tmp/rsync-data-lock | |
REMOTE_SERVER=$1 | |
EXCLUDE=$2 |
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/bash | |
if [ -e /tmp/rsync-config-lock ] | |
then | |
exit 1 | |
fi | |
touch /tmp/rsync-config-lock | |
REMOTE_SERVER=$1 | |
BACKUP=$2 |
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/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 |
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/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 |
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 | |
# 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 |
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
#!/usr/bin/env bash | |
portsnap fetch extract | |
cd /usr/ports/ports-mgmt/portmaster | |
make install clean | |
PORTMASTER="/usr/local/bin/portmaster --no-confirm --update-if-newer" | |
$PORTMASTER shells/bash shells/bash-completion shells/zsh editors/nano editors/vim lang/ruby19 ftp/curl misc/mc security/sudo sysutils/byobu devel/git devel/subversion textproc/libxml2 textproc/libxslt | |
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) |
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
from datetime import datetime | |
import asyncore | |
from smtpd import SMTPServer | |
import time | |
class EmlServer(SMTPServer): | |
def process_message(self, peer, mailfrom, rcpttos, data): | |
time.sleep(6) | |
pass |
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
$(document).ready(function () { | |
var ticks = [ | |
<% current_account.projects.each do |project| %> | |
'<%= project.tracker_project %>', | |
<% end %> | |
]; | |
var data = [ | |
<% new_exceptions, repeat_exceptions = [], [] %> | |
<% | |
current_account.projects.each do |project| |
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
#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' |
OlderNewer