Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from Home

Yann Hodique sigma

🏠
Working from Home
View GitHub Profile
@sigma
sigma / FilePageSigma.lua
Last active Sep 19, 2022
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
sigma / .envrc
Last active Aug 6, 2022
sample flake.nix for emacs projects
View .envrc
use flake
eval "$shellHook"
@sigma
sigma / packages.org
Last active Jun 22, 2018
#k8s deps versions
View packages.org
packageversionrevisionnext stepnotesFlag
bitbucket.org/bertimus9/systemstat0eeff89b0690611fc32e21f0cd2e4434abf8fe53b:mastertest only
bitbucket.org/ww/goautoneg75cd24fc2f2c2a2088577d12123ddee5f54e0675b:masterold and stable
cloud.google.com/go3b1ae45394a234c385be014e9a488f2bb6eef8210.2.0 ?0.2.0 to 0.2
@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 / bazel-config.el
Last active Dec 14, 2017
#emacs #bazel config
View bazel-config.el
(use-package bazel
:mode ("BUILD\\|WORKSPACE\\|CROSSTOOL\\|\\.bazel\\'" . bazel-mode)
:config
(add-hook 'bazel-mode-hook 'bazel-install-reformat))
@sigma
sigma / redis-mini.nix
Created Apr 17, 2016
minimal #redis #docker image with #nix
View redis-mini.nix
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
su_exec = pkgs.stdenv.mkDerivation {
name = "su-exec-0.2";
src = fetchurl {
url = https://github.com/ncopa/su-exec/archive/v0.2.tar.gz;
sha256 = "09ayhm4w7ahvwk6wpjimvgv8lx89qx31znkywqmypkp6rpccnjpc";
@sigma
sigma / keybase.md
Last active Jun 5, 2017
#keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am sigma on github.
  • I am sigma (https://keybase.io/sigma) on keybase.
  • I have a public key ASCayfBjpVYKk6CiXEuU5NDRPdzO8dEFgKxqxnVRszp8Pwo

To claim this, I am signing this object:

@sigma
sigma / vtmate.nix
Created Nov 6, 2015
#vtmate static #nix recipe
View vtmate.nix
{ system ? builtins.currentSystem }:
let
pkgs = import <nixpkgs> { inherit system; };
inherit (pkgs) stdenv;
inherit (stdenv) lib;
inherit (lib) overrideDerivation;
inherit (pkgs) musl;
gcc = "${musl}/bin/musl-gcc";
in
@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 / get-static-docker
Last active Feb 7, 2018
static #docker binary in #coreos
View get-static-docker
#!/bin/bash
VERSION=$(docker --version | awk '{print $3}' | sed 's/,//')
BINARY="/opt/bin/docker-$VERSION-static"
LINK="/opt/bin/docker.static"
if [ ! -e "$BINARY" ]; then
curl -L -o "$BINARY" "https://get.docker.com/builds/Linux/x86_64/docker-$VERSION"
chmod a+x "$BINARY"
ln -sf "$BINARY" "$LINK"