Skip to content

Instantly share code, notes, and snippets.

View sigma's full-sized avatar
Working from Home

Yann Hodique sigma

Working from Home
View GitHub Profile
sigma /
Created January 8, 2018 07:35 — forked from biovisualize/
Test for attaching a png to a gist
  1. Create a new public gist on
  2. Under "Clone this gist", copy the link (i.e.,
  3. If you have the command line git tools, clone this gist to a local folder: git clone
  4. It will add a folder with the gist id as a name (i.e., 4415518) under the current working directory. Navigate to this folder in the command line: cd 4415518 (dir 4415518 on windows)
  5. Navigate to this folder in your file explorer and add an image (i.e., test.png)
  6. Add it to git from the command line: git add test.png
  7. Commit it to git: git commit -m "I just added a file!"
  8. Push this commit to your remote gist (you will need your Github user name and password): git push
  9. Go back and refresh your Gist on to confirm that it worked
sigma /
Created October 31, 2015 00:20 — forked from philipsoutham/
Build #static #tmux
#!/usr/bin/env bash
pushd $(dirname $0) > /dev/null; CURRABSPATH=$(readlink -nf "$(pwd)"); popd > /dev/null; # Get the directory in which the script resides
set -x
sigma /
Created March 14, 2013 20:25 — forked from robinsmidsrod/
#ipxe bootstrap

Add the following chunk to your existing ISC dhcpd.conf file.

if exists user-class and ( option user-class = "iPXE" ) {
    filename "http://boot.smidsrod.lan/bootstrap.ipxe";
else {
    filename "undionly.kpxe";

(or see for a more elaborate setup

sigma /
Last active June 3, 2017 14:59 — forked from 7hunderbird/
#ruby 1.9.3-p545 cumulative performance patch for #rbenv

ruby-1.9.3-p545 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p545 with the railsexpress patchsets:


You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

sigma / gist:6338909
Created August 26, 2013 07:39
teensy 7-segment display
* Teensy 3.0: Random Numbers on BCD 7-Segment Display Version: 1.00 *
* Functions : Random Numbers between 00 & 99. TURBO-mode, FREEZE-mode *
* MicroCtrlr: MK20DX128 32 bit ARM Cortex-M4 48 MHz *
* Arduino Shield: Alexan Digital Trainer 2 from Alexan Commercial *
* Arduino IDE v1.0.5 from *
* Teensyduino v1.14 from *
* Configuration: Teensy 3.0 on /dev/ttyACM0 *
* Operating System: Xubuntu Linux 13.10 Saucy Salamander (32-bit) *
sigma /
Created November 1, 2012 09:52 — forked from piscisaureus/
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url =

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: