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
sigma / _INSTALL.md
Created March 14, 2013 20:25 — forked from robinsmidsrod/_INSTALL.md
#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 https://gist.github.com/4008017 for a more elaborate setup

@sigma
sigma / gist:5477827
Last active June 27, 2017 05:43
#git weirdness
┌─(yann@jarvis)─[env:default]───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(~magit)─┐
└─(19:09:%)─[master]── git merge --no-ff sergv/master ──(Sun,Apr28)─┘
Merge made by the 'recursive' strategy.
magit-key-mode.el | 1 +
magit.el | 50 +++++++++++++++++++++++++++++++++++++++++++++-----
tests/magit-tests.el | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++-----
3 files changed, 97 insertions(+), 10 deletions(-)
┌─(yann@jarvis)─[env:default]───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(~magit)─┐
└─(19:10:%)─[master]── git co next ──(Sun,Apr28)─┘
Switched to branch 'next'
@sigma
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 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 / test.el
Last active December 29, 2015 14:19
[test] hosted .emacs
(message "plop")
@sigma
sigma / yubikey-personalization.rb
Created December 5, 2013 03:22
homebrew formula for yubikey-personalization
require 'formula'
class YubikeyPersonalization < Formula
homepage 'http://yubico.github.io/yubico-personalization/'
url 'http://yubico.github.io/yubico-personalization/releases/yubikey-personalization-1.14.1.tar.gz'
sha1 'c5e294b28e56e39f51e8482c44b323d79e73aa9b'
def install
system "autoreconf", "--install"
system "./configure", "--prefix=#{prefix}"
@sigma
sigma / string_type_fix.patch
Created December 5, 2013 18:27
#globalplatform #patch
From 7f1c8669c5991a60b6fada9b1187d2ee6d040223 Mon Sep 17 00:00:00 2001
From: Yann Hodique <[email protected]>
Date: Thu, 5 Dec 2013 10:18:46 -0800
Subject: [PATCH] compilation fixes
---
globalplatform/src/connection.c | 2 +-
globalplatform/src/dyn_generic.h | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
@sigma
sigma / noflet.el
Last active July 18, 2017 05:03
noflet based on cl-letf
(defmacro noflet (bindings &rest body)
`(dflet ,(mapcar
(lambda (x)
(list (car x) (cadr x)
`(let ((this-fn ,(symbol-function (car x))))
,@(cddr x))))
bindings)
,@body))
@sigma
sigma / gist:9086618
Created February 19, 2014 05:38
run-hook-wrapped compat
(unless (fboundp 'run-hook-wrapped)
(defun run-hook-wrapped-1 (hook funcs wrap-function &rest args)
(loop for f in funcs
if (and (eq f t)
(local-variable-p hook)
(default-boundp hook)
(apply 'run-hook-wrapped-1
nil (default-value hook) wrap-function args))
return it
@sigma
sigma / 1.9.3-p484-railsexpress.md
Last active June 3, 2017 14:59 — forked from 7hunderbird/1.9.3-p484-railsexpress.md
#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: 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 / ssl_timeout.patch
Last active July 23, 2017 23:58
#published getmail ssl #patch
diff --git a/getmailcore/retrievers.py b/getmailcore/retrievers.py
index c0f6580..37e21dc 100755
--- a/getmailcore/retrievers.py
+++ b/getmailcore/retrievers.py
@@ -402,8 +402,7 @@ class SimpleIMAPSSLRetriever(IMAPRetrieverBase, IMAPSSLinitMixIn):
ConfInstance(name='configparser', required=False),
ConfDirectory(name='getmaildir', required=False, default='~/.getmail/'),
- # socket.ssl() and socket timeouts are incompatible in Python 2.3
- #ConfInt(name='timeout', required=False, default=180),