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 / redis-mini.nix
Created April 17, 2016 06:30
minimal #redis #docker image with #nix
View redis-mini.nix
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
su_exec = pkgs.stdenv.mkDerivation {
name = "su-exec-0.2";
src = fetchurl {
url =;
sha256 = "09ayhm4w7ahvwk6wpjimvgv8lx89qx31znkywqmypkp6rpccnjpc";
sigma / .envrc
Last active October 12, 2022 09:39
sample flake.nix for emacs projects
View .envrc
use flake
eval "$shellHook"
sigma / gist:9086618
Created February 19, 2014 05:38
run-hook-wrapped compat
View gist:9086618
(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 / FilePageSigma.lua
Last active September 19, 2022 11:54
Maschine Studio file hack
View FilePageSigma.lua
require "Scripts/Maschine/MaschineMK3/Pages/FilePageMK3"
local class = require 'Scripts/Shared/Helpers/classy'
FilePageSigma = class( 'FilePageSigma', FilePageMK3 )
-- Just inherit from the MK3 page and adjust the LED to light
function FilePageSigma:__init(Controller)
FilePageMK3.__init(self, Controller)
self.Name = "FilePageSigma"
self.PageLEDs = { NI.HW.LED_ALL }
sigma / .emacs-local.el
Created April 19, 2009 09:03
View .emacs-local.el
;; -*- mode: emacs-lisp; auto-compile-lisp: nil; -*-
;; Name/Email settings
(setq user-full-name "Firstname Lastname")
(setq user-mail-address "")
(setq message-alternative-emails (rx ""))
(setq home-directory (getenv "HOME"))
sigma / scratch.el
Created February 22, 2012 11:02
package install for emacs23
View scratch.el
(let ((buffer (url-retrieve-synchronously
(set-buffer buffer)
(goto-char (point-min))
(re-search-forward "^$" nil 'move)
(let ((user-init-file (expand-file-name "~/.emacs")))
(eval-region (point) (point-max)))
(kill-buffer (current-buffer))))
sigma /
Last active June 22, 2018 21:17
#k8s deps versions
packageversionrevisionnext stepnotesFlag only and stable ?0.2.0 to 0.2
sigma / get-static-docker
Last active February 7, 2018 21:55
static #docker binary in #coreos
View get-static-docker
VERSION=$(docker --version | awk '{print $3}' | sed 's/,//')
if [ ! -e "$BINARY" ]; then
curl -L -o "$BINARY" "$VERSION"
chmod a+x "$BINARY"
ln -sf "$BINARY" "$LINK"
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 / bazel-config.el
Last active December 14, 2017 04:28
#emacs #bazel config
View bazel-config.el
(use-package bazel
:mode ("BUILD\\|WORKSPACE\\|CROSSTOOL\\|\\.bazel\\'" . bazel-mode)
(add-hook 'bazel-mode-hook 'bazel-install-reformat))