Skip to content

Instantly share code, notes, and snippets.

View gawbul's full-sized avatar

Steve Moss gawbul

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 / 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 / .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 / introduction_to_loops_for_biologists.ipynb
Last active January 4, 2016 05:39
Introduction to loops for biologists
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gawbul
gawbul / parse_rad_tags.awk
Created December 9, 2013 22:33
A script to parse a RAD tags file and display the line number and individual id/tag id pairs field when the field has only a specific number of individuals (in the case n==3)
BEGIN {
FS="\t"
}
{
lena=split($9,a,",")
for (i=1;i<=lena;i++) {
split(a[i],b,"_")
freq[NR][b[1]]++
}
}
@gawbul
gawbul / primates_varied_indiv.lambda
Created October 23, 2013 13:53
primates_varied_indiv.lambda
This file has been truncated, but you can view the full file.
@@ ENSFM00500000274301 (((((((((Homosapiens<1>_0.010967:6.4,Pantroglodytes<1>_0.004562:6.4)_0.007859:2.4,Gorillagorilla<1>_0.012414:8.8)_0.005772:6.9,Pongoabelii<1>_0.004608:15.7)_0.004809:4.7,Nomascusleucogenys<1>_0.004848:20.4)_0.005138:8.8,Macacamulatta<1>_0.004726:29.2)_0.006389:13.4,Callithrixjacchus<1>_0.004113:42.6)_0.005382:22.6,Tarsiussyrichta<0>_0.012865:65.2)_0.006876:8.8,(Microcebusmurinus<1>_0.003875:57.9,Otolemurgarnettii<1>_0.002941:57.9)_0.001924:16.1)_0.005017:16,Tupaiabelangeri<1>_0.000000:90)
@gawbul
gawbul / gist:6400801
Created August 31, 2013 21:40
Microarray Heatmaps in R
{
"metadata": {
"name": "Microarray Heatmap in R"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@gawbul
gawbul / steves_pgp_pubkey
Last active December 21, 2015 03:48
My GnuPGP Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG/MacGPG2 v2.0.27
Comment: GPGTools - https://gpgtools.org
mQINBFUATqwBEAD5zjucZ/orZU5KLqLpVhqUyV0m3+ELVu3hNJL05X4d8go3ynWQ
6kYq2vtD9g+illHMQubA41k5/KhCWx/E/v33JpMbvr6EDuqlwZ6SUjp+k8KZ4Gja
UZu3cm2dx9JnvTvnDPb7vB16m/tbF01N22JhBu/AeX5Qv7+MesJ1gZtyC20p1iDf
660yd/wFPSiXAoCOq2inbC/quKH/1DJQbsknBmJDHR4GuMR6rybCr0GEqBUGws65
0Pj3olC8cSG6WM7OlZ9rXW57vwZeoSLWCoQoShRPFjzu3tHYPM+LTGxcs40cNydN
VluZgi7/0FpNi60JraidV5UYOUkpxTEbqgRtObACJV45K4xLQmS/CgrL5DS9HMS2
@gawbul
gawbul / Microbial_Phylogenetics.ipynb
Last active December 19, 2015 12:38
Microbial Comparative Phylogenetics
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gawbul
gawbul / roll_ipython_in_aws.md
Created March 31, 2013 20:39 — forked from iamatypeofwalrus/roll_ipython_in_aws.md
Roll your own IPython Notebook Server with AWS

What

Roll your own iPython Notebook server with Amazon Web Services (EC2) using their Free Tier.

What are we using? What do you need?

  • An active AWS account. First time sign-ups are eligible for the free tier for a year
  • One Micro Tier EC2 Instance
  • With AWS we will use the stock Ubuntu Server AMI and customize it.
  • Anaconda for Python.
  • Coffee/Beer/Time