Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from Home

Yann Hodique sigma

🏠
Working from Home
View GitHub Profile
@sigma
sigma / README.md
Created Jan 8, 2018 — forked from biovisualize/README.md
Test for attaching a png to a gist
View README.md
  1. Create a new public gist on https://gist.github.com/
  2. Under "Clone this gist", copy the link (i.e., https://gist.github.com/4415518.git)
  3. If you have the command line git tools, clone this gist to a local folder: git clone https://gist.github.com/4415518.git
  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 https://gist.github.com/ to confirm that it worked
@sigma
sigma / build-tmux.sh
Created Oct 31, 2015 — forked from philipsoutham/build-tmux.sh
Build #static #tmux
View build-tmux.sh
#!/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
MUSLPKG="musl:musl.tgz:http://www.musl-libc.org/releases/musl-1.1.4.tar.gz"
LEVTPKG="libevent:libevent2.tgz:https://cloud.github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz"
TMUXPKG="tmux:tmux.tgz:http://iweb.dl.sourceforge.net/project/tmux/tmux/tmux-1.9/tmux-1.9a.tar.gz"
NCRSPKG="ncurses:ncurses.tgz:http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz"
TEMPDIR="$CURRABSPATH/tmp"
TMPLIB="tempinstall/lib"
TMPINC="tempinstall/include"
@sigma
sigma / 1.9.3-p484-railsexpress.md
Last active Jun 3, 2017 — forked from 7hunderbird/1.9.3-p484-railsexpress.md
#ruby 1.9.3-p545 cumulative performance patch for #rbenv
View 1.9.3-p484-railsexpress.md

ruby-1.9.3-p545 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p545 with the railsexpress patchsets: https://github.com/skaes/rvm-patchsets

Requirements

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
sigma / gist:6338909
Created Aug 26, 2013
teensy 7-segment display
View gist:6338909
/************************************************************************
* 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 http://arduino.cc/en/Main/Software *
* Teensyduino v1.14 from http://www.pjrc.com/teensy/td_download.html *
* Configuration: Teensy 3.0 on /dev/ttyACM0 *
* Operating System: Xubuntu Linux 13.10 Saucy Salamander (32-bit) *
@sigma
sigma / _INSTALL.md
Created Mar 14, 2013 — forked from robinsmidsrod/_INSTALL.md
#ipxe bootstrap
View _INSTALL.md

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 https://gist.github.com/4008017 for a more elaborate setup

@sigma
sigma / pr.md
Created Nov 1, 2012 — forked from piscisaureus/pr.md
Checkout github pull requests locally
View pr.md

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 = git@github.com:joyent/node.git

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: