Skip to content

Instantly share code, notes, and snippets.

View gawbul's full-sized avatar
:shipit:
Deep in the shell

Steve Moss gawbul

:shipit:
Deep in the shell
View GitHub Profile
@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
@gawbul
gawbul / keybase.md
Created April 14, 2015 20:59
keybase.md

Keybase proof

I hereby claim:

  • I am gawbul on github.
  • I am gawbul (https://keybase.io/gawbul) on keybase.
  • I have a public key whose fingerprint is 705F CA8A 945B A999 F7A9 AFE9 59C3 CB71 CBC4 3646

To claim this, I am signing this object:

@gawbul
gawbul / r67_unique_family_descriptions.csv
Created March 21, 2015 19:04
r67_unique_family_descriptions.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Family.Description
COMPLEMENT C3 COMPLEMENT C3 BETA CHAIN; COMPLEMENT C3 ALPHA CHAIN; C3A ANAPHYLATOXIN; COMPLEMENT
PROTOCADHERIN GAMMA PRECURSOR PCDH GAMMA
UNKNOWN
HISTONE H3
MHC CLASS I POLYPEPTIDE RELATED SEQUENCE PRECURSOR MIC
KERATIN TYPE II CYTOSKELETAL CYTOKERATIN CK KERATIN TYPE II KERATIN
OLFACTORY RECEPTOR
60S RIBOSOMAL L7A
PRAME FAMILY MEMBER