Skip to content

Instantly share code, notes, and snippets.

@gilligan
gilligan / clint.vim
Created March 3, 2014 15:07
clint syntastic checker
if exists("g:loaded_syntastic_clint_checker")
finish
endif
let g:loaded_syntastic_clint_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_c_clint_GetLocList() dict
let makeprg = self.makeprgBuild({
@gilligan
gilligan / vundle.sh
Last active August 29, 2015 13:57
vundle.sh: fast bundle updates hack from the shell with parallel
#!/bin/bash
VIM_DIR=~/.vim/
BUNDLE_DIR=$VIM_DIR/bundle
sanity_check() {
test -d $1 || { echo "Error: " $BUNDLE_DIR "directory does not exist."; exit 1; }
command -v git >/dev/null 2>&1 || { echo "Error: cannot find git executable"; exit 1; }
command -v parallel >/dev/null 2>&1 || { echo "Error: cannot find parallel executable"; exit 1; }
}
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
{ cabal, filepath, ghcPaths, haskeline, syb, time, transformers, ncurses }:
cabal.mkDerivation (self: {
pname = "ghci-ng";
version = "7.8.3";
src = ./.;
isLibrary = false;
isExecutable = true;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BLPATH "/sys/class/leds/smc::kbd_backlight"
#define BLVALFILE BLPATH "/brightness"
#define BLMAXFILE BLPATH "/max_brightness"
void usage() {
printf("Usage: kbdlight [up|down|off|max|get|set <value>]\n");
@gilligan
gilligan / gist:9e0d64ca83ee8ea3371e
Created December 2, 2014 08:32
watchdogs debug output
{
'_continue_key': '1417506995.557017',
'_running': 1,
'_vimproc': {
module Foo where
fdf
foo :: [Char]
foo = "foo"
~
@gilligan
gilligan / Makefile
Created February 8, 2015 18:26
parallel make issue
dst/foo.x dst/bar.x dst/baz.x : src/foo.y src/bar.y src/baz.y
foobar-compiler src dst
# with "make -j 8" the foobar-compiler will be invoked 3 times instead of once
# it runs once for each file :(
@gilligan
gilligan / Makefile
Created February 8, 2015 19:10
parallel make problem
all: foo
foo: dst/foo.x dst/bar.x dst/baz.x
dst/foo.x dst/bar.x dst/baz.x : src/foo.y src/bar.y src/baz.y
@./magic
clean:
rm dst/*
@gilligan
gilligan / Makefile
Created February 8, 2015 21:10
Makefile
all: foo
foo: dst/.build
dst/.build : src/foo.y src/bar.y src/baz.y
./magic
@touch dst/.build
dst/baz.x : dst/bar.x
clean:
-rm -rf dst/*
-rm -rf dst/.build
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"