Skip to content

Instantly share code, notes, and snippets.

@nvasilakis
nvasilakis / jenkins-pt1
Created May 18, 2012 19:14
Jenkins Installation Howto
=======================================================================
= LUXURIATING THE BENEFITS OF CONTINUOUS INTEGRATION - A SHORT HOW-TO =
=======================================================================
2012 Nikos Vasilakis, nvas@seas.upenn.edu
TODO: SVN-option, add a post-commit hook on the svn server
0. Introduction
@nvasilakis
nvasilakis / terminal_trash_can.sh
Created July 16, 2012 20:38
Some bash functions for using the trash can
function trash-show {
ls ~/.local/share/Trash/files/
}
function trash-move {
mv $* ~/.local/share/Trash/files/
}
function trash-empty {
echo -n 'Sure you want to empty trash? If yes, type "empty" >'
@nvasilakis
nvasilakis / shange.sh
Created September 6, 2012 01:35
Swap shells between log-ins
# the function is named shange as a play of word for "shell change"
# just run shange if you have it on ~/.profile, /bin or
# both .bashrc and .tcshrc (not sure about the last for I'm not using tcsh)
# only if you are running this as a standalone script (in /bin etc)
# comment the "function shange {" and "}" lines.
function shange {
if [[ "$(basename $SHELL)" == "bash" ]]; then
echo "Changing to tcsh"
chsh -s tcsh
# In case you haven't, grab mercurial binaries from http://mercurial.berkwood.com/
cd ~/Downloads
hg clone https://vim.googlecode.com/hg/ vim
cd vim
#configure is the important bit here!
./configure --prefix=/usr/ --enable-rubyinterp --enable-pythoninterp --with-features=huge
make
sudo make install
@nvasilakis
nvasilakis / Geary-backport-install.sh
Last active January 1, 2016 01:09
Geary Installation
#!/usr/bin/zsh
# Script on how to compile geary on ubuntu 12.04 and elementary
# git clone git://yorba.org/geary
wget https://launchpad.net/~tombeckmann/+archive/geary/+files/geary_0.4.1-0~1137~ubuntu12.04.1.tar.gz
mkdir geary-backport
tar xvf !wget:$:t -C !!:$
cd !!:$
cd $(ls)
@nvasilakis
nvasilakis / emacs24
Last active January 2, 2016 08:29
Install emacs24 on a fresh debian/ubuntu/elementary install
echo 'removing all emacs23+ packages'
sudo apt-get purge emacs-snapshot-common emacs-snapshot-bin-common \
emacs-snapshot emacs-snapshot-el emacs-snapshot-gtk emacs23 \
emacs23-bin-common emacs23-common emacs23-el emacs23-nox emacs23-lucid \
echo 'adding repo and installing emacs 24'
sudo add-apt-repository ppa:cassou/emacs
sudo apt-get update
sudo apt-get install emacs24
@nvasilakis
nvasilakis / elementary-post-install
Last active January 2, 2016 08:29
Post-install repos for elementary os
sudo add-apt-repository ppa:birdie-team/daily
sudo apt-get update && sudo apt-get install birdie-granite
sudo add-apt-repository ppa:gotwig/weekly
sudo apt-get update
sudo apt-get install gazette
echo 'Add weather.yahoo.com id to org → pantheon → gazette'
sudo apt-add-repository ppa:versable/elementary-update
sudo apt-get update
sudo apt-get install elementary-tweaks
sudo add-apt-repository ppa:tombeckmann/geary
@nvasilakis
nvasilakis / startup.el
Created January 6, 2014 16:27
Saving emacs startup file for future reference
;;; startup.el --- process Emacs shell arguments and build init screen
;; Copyright (C) 1985, 1986, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
;; 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
;; Maintainer: FSF
;; Keywords: internal
;; This file is part of GNU Emacs.
@nvasilakis
nvasilakis / menu
Created January 16, 2014 20:52
Fluxbox menu
# This is an automatically generated file.
# Please see <file:/usr/share/doc/menu/README> for information.
# to use your own menu, copy this to ~/.fluxbox/menu, then edit
# ~/.fluxbox/init and change the session.menuFile path to ~/.fluxbox/menu
[begin] (Fluxbox)
# Automatically generated file. Do not edit (see /usr/share/doc/menu/html/index.html)
@nvasilakis
nvasilakis / submit.sh
Created January 20, 2014 17:33
A script for UPenn students to submit home-works remotely.
function submit {
# cd ~/workspace/HW0
# get directory from where it's being called
# TODO: Grab homwork number and have cases based on the ant scripts
echo $(pwd)
ant pack
username="$(grep '^SEAS login' README | sed 's/SEAS login://' | sed 's/ //')"
rsync -av --progress submit-hw*.zip "${username}@eniac.seas.upenn.edu:~"
ssh ${username}@eniac.seas.upenn.edu "turnin -c cis455 -p hw0 submit-hw0.zip; turnin -c cis455 -p hw0 -v"
}