Skip to content

Instantly share code, notes, and snippets.

View gawbul's full-sized avatar

Steve Moss gawbul

View GitHub Profile
@gawbul
gawbul / .bash_profile
Created November 29, 2016 16:59 — forked from stephenll/.bash_profile
.bash_profile file on Mac OS X
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases.
# Much of this was originally copied from:
# http://natelandau.com/my-mac-osx-bash_profile/
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
@gawbul
gawbul / chef-shell-kitchen.txt
Last active June 21, 2017 19:02 — forked from mattjbarlow/gist:242b66cdae6938d34419
Chef Shell in Test Kitchen
cd /tmp/kitchen.
/opt/chef/embedded/bin/gem install chef-zero
/opt/chef/embedded/bin/chef-zero -d
knife cookbook upload -a -c solo.rb
knife environment from file environments/DEV.json -c solo.rb
chef-shell -z -c solo.rb -o '<YOUR RECIPE>'
@gawbul
gawbul / openconnect.md
Created December 22, 2015 08:48 — forked from moklett/openconnect.md
OpenConnect VPN on Mac OS X

Unfortunately, the Cisco AnyConnect client for Mac conflicts with Pow. And by "conflicts", I mean it causes a grey-screen-of-death kernel panic anytime you connect to the VPN and Pow is installed.

As an alternative, there is OpenConnect, a command-line client for Cisco's AnyConnect SSL VPN.

Here's how to get it set up on Mac OS X:

  1. OpenConnect can be installed via homebrew:

     brew update
    

brew install openconnect

@gawbul
gawbul / poretools.stderr.log
Created June 15, 2015 09:20
poretools error
[smoss@bioservd ~]$ poretools
Warning! ***HDF5 library version mismatched error***
The HDF5 header files used to compile this application do not match
the version used by the HDF5 library to which this application is linked.
Data corruption or segmentation faults may occur if the application continues.
This can happen when an application was compiled by one version of HDF5 but
linked with a different version of static or shared HDF5 library.
You should recompile the application or check your shared library related
settings such as 'LD_LIBRARY_PATH'.
You can, at your own risk, disable this warning by setting the environment
@gawbul
gawbul / poretools.rb
Last active August 29, 2015 14:21
poretools installation using homebrew
class Poretools < Formula
desc "Tools for working with nanopore sequencing data"
homepage "http://poretools.readthedocs.org/"
url "https://github.com/arq5x/poretools/archive/v0.5.1.tar.gz"
sha256 "7cd55a8f30290992dcf8d7792401e7f21efadfde02b3f4604d6680d2f8300479"
head "https://github.com/arq5x/poretools.git"
depends_on "hdf5"
depends_on "r"
depends_on :python if MacOS.version <= :snow_leopard
@gawbul
gawbul / fastq_rnd_seek_proper_re.py
Created May 16, 2015 20:12
Proper random FASTQ record seeker using RegEx
#!/usr/bin/env python
# import modules
import mmap, os, random, re, sys
# parse arguments
if len(sys.argv) != 3:
print "Requires an input filename and integer as arguments."
sys.exit()
filename = sys.argv[1]
try:
@gawbul
gawbul / fastq_rnd_seek_proper.py
Last active August 29, 2015 14:21
Proper random FASTQ record seeker
#!/usr/bin/env python
# import modules
import mmap, os, random, sys
from Bio import SeqIO
from StringIO import StringIO
# parse arguments
if len(sys.argv) != 3:
print "Requires an input filename and integer as arguments."
sys.exit()
@gawbul
gawbul / fastq_rnd_seek.py
Last active August 29, 2015 14:21
Random FASTQ record seeker
#!/usr/bin/env python
# import modules
import os, random, sys
# parse arguments
if len(sys.argv) != 2:
print "Requires one input filename as an argument."
sys.exit()
filename = sys.argv[1]
@gawbul
gawbul / mira_quirks_error.txt
Last active August 29, 2015 14:21
mira error quirks.C:56:5: error: 'cout' is not a member of 'std'
==> Installing mira from homebrew/homebrew-science
couldn't understand kern.osversion `14.3.0'
==> Downloading https://downloads.sourceforge.net/project/mira-assembler/MIRA/stable/mira-4.0.2.tar.bz2
Already downloaded: /Library/Caches/Homebrew/mira-4.0.2.tar.bz2
==> Verifying mira-4.0.2.tar.bz2 checksum
tar xf /Library/Caches/Homebrew/mira-4.0.2.tar.bz2
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/mira/4.0.2 --with-expat=/usr/local/opt/expat --with-expat-lib=-L/usr/local/opt/expat/lib --with-boost=/usr/local/opt/boost --with-boost-libdir=/usr/local/opt/boost/lib --with-boost-regex=boost_regex-mt --with-boost-system=boost_system-mt --with-boost-filesystem=boost_filesystem-mt --with-boost-iostreams=boost_iostreams-mt --with-tcmalloc --with-tcmalloc-dir=/usr/local/opt/google-perftools/lib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
@gawbul
gawbul / missing_maker_prerequisites.txt
Last active August 29, 2015 14:21
MISSING MAKER PREREQUISITES - CANNOT CONTINUE!!
==> Installing maker from homebrew/homebrew-science
/usr/bin/env perl -e use Bio::Perl
/usr/bin/env perl -e use Bit::Vector
/usr/bin/env perl -e use DBD::SQLite
/usr/bin/env perl -e use DBI
/usr/bin/env perl -e use File::Which
/usr/bin/env perl -e use IO::All
/usr/bin/env perl -e use IO::Prompt
/usr/bin/env perl -e use Inline
/usr/bin/env perl -e use Perl::Unsafe::Signals