Skip to content

Instantly share code, notes, and snippets.

View xguse's full-sized avatar

Gus Dunn xguse

View GitHub Profile
@xguse
xguse / clip_magic.py
Last active August 29, 2015 14:15 — forked from nova77/clip_magic.py
Add copy to clipboard from IPython!
"""
Add copy to clipboard from IPython!
To install, just copy it to your profile/startup directory, typically:
~/.ipython/profile_default/startup/
Example usage:
%clip hello world
# will store "hello world"
@xguse
xguse / gitstuff.zshrc.sh
Last active August 29, 2015 14:15
git aliases for #zshrc
#### git stuff
alias gitac="git add --all; git commit -a"
alias gitsub-up="git submodule update --init --recursive"
alias gitaczulu="gitac -m "$(zulu_time)""
alias gitraze="git clean -df; git reset --hard HEAD"
alias gitpp="git pull; git push"
alias gitzp="gitaczulu ; gitpp"
alias gitm="git merge --no-ff"
alias gitco="git checkout"
alias gitstat="git status"
@xguse
xguse / Stacks-1.24-goolf-1.4.10-no-OFED.eb.py
Last active August 29, 2015 14:13
attempts to build Stacks-1.24 with bam- and sparsehash-functionality: and resulting errors
# Built with EasyBuild version 1.16.1 on 2015-01-22_08-13-37
# Original file: /home/gus/remote_mounts/louise/.local/easybuild/ebfiles_repo/Stacks/Stacks-1.03-goolf-1.4.10-no-OFED.eb
# Tweaked by Gus Dun to install stacks-1.24
easyblock = 'ConfigureMake'
name = 'Stacks'
version = '1.24'
wd238 at compute-21-15 in ~ (py278)
$ eb google-sparsehash-2.0.2-goolf-1.4.10.eb SAMtools-1.1-goolf-1.4.10.eb --try-toolchain=goolf,1.4.10-no-OFED --robot
== temporary log file in case of crash /tmp/easybuild-Mmnezf/easybuild-TtVdsB.log
== google-sparsehash/2.0.2-goolf-1.4.10-no-OFED is already installed (module found), skipping
== SAMtools/1.1-goolf-1.4.10-no-OFED is already installed (module found), skipping
== No easyconfigs left to be built.
== Build succeeded for 0 out of 0
== temporary log file /tmp/easybuild-Mmnezf/easybuild-TtVdsB.log has been removed.
== temporary directory /tmp/easybuild-Mmnezf has been removed.
# Built with EasyBuild version 1.16.1 on 2015-01-22_08-13-37
# Original file: /home/gus/remote_mounts/louise/.local/easybuild/ebfiles_repo/Stacks/Stacks-1.03-goolf-1.4.10-no-OFED.eb
# Tweaked by Gus Dunn to install stacks-1.24
easyblock = 'ConfigureMake'
name = 'Stacks'
version = '1.24'
$ eb $INSTALL_SCRIPTS/easybuild/Stacks-1.24-goolf-1.4.10-no-OFED.eb --try-toolchain=goolf,1.4.10-no-OFED
== temporary log file in case of crash /tmp/easybuild-SanAWl/easybuild-SYy7uz.log
ERROR: EasyBuild crashed with an error (at easybuild/software/EasyBuild/1.16.1/lib/python2.7/site-packages/easybuild_framework-1.16.1-py2.7.egg/easybuild/tools/robot.py:232 in resolve_dependencies): Irresolvable dependencies encountered: SAMtools/1.1-goolf-1.4.10-no-OFED, google-sparsehash/2.0.2-goolf-1.4.10-no-OFED
#! /bin/bash
CORE_VERSION=2.2.0
SEQ_VERSION=2.2.0
PHYL_VERSION=2.2.0
POPGEN_VERSION=2.2.0
SEQOMICS_VERSION=2.2.0
PHYLOMICS_VERSION=2.2.0
RAA_VERSION=2.2.0
QT_VERSION=2.2.0
SUITE_VERSION=2.2.0
@xguse
xguse / pip_freeze_2014-12-08.txt
Created December 8, 2014 14:41
pip freeze 2014-12-08
gus at jupiter in ~/Dropbox/repos/git (py278)
$ pip freeze
Cython==0.21
Factory==1.2
Fiona==1.4.4
Flask==0.10.1
Flask-WTF==0.10.2
GDAL==1.11.1
Jinja2==2.7.3
Mako==1.0.0
# Ensure we're in a virtualenv.
if [ "$VIRTUAL_ENV" == "" ]
then
echo "ERROR: not in a virtual environment."
exit -1
fi
# Setup variables.
CACHE="/tmp/install-pygtk-$$"
@xguse
xguse / pacman.conf
Last active August 29, 2015 14:10
pacman.conf
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.