Skip to content

Instantly share code, notes, and snippets.

@gilligan
gilligan / config.log
Created March 10, 2011 22:22
ppl configure fails because it doesn't find gmp
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by the Parma Polyhedra Library configure 0.10.2, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/ppl/0.10.2 --enable-optimization=sspeed
## --------- ##
@gilligan
gilligan / gist:1041068
Created June 22, 2011 20:28
ssnes configure output
(M=db3e1a: libsnes.a libsnes.dylib) gilligan@ELMA ~/snesemu/ssnes> ./configure --help
====================
Quickbuild script
====================
Package: ssnes
Version: 0.6
General environment variables:
CC: C compiler
@gilligan
gilligan / gcc-4.6.rb
Created August 24, 2011 16:17
homebrew formula for gcc-4.6.0
require 'formula'
# NOTE:
#
# Two exciting enhancements in GCC 4.6.0 are currently unavailable.
#
# Link-time optimization (LTO) is broken due to changes in XCode 3.2.6 and 4.0.
# This should be fixed in GCC 4.6.1:
# http://lists.macosforge.org/pipermail/macports-dev/2011-March/014278.html
#
@gilligan
gilligan / vimrc
Created February 7, 2013 20:10
mlafeldt vimrc fiddling
" Based on Gary Bernhardt's .vimrc file:
" https://github.com/garybernhardt/dotfiles/blob/master/.vimrc
" vim: set ts=2 sts=2 sw=2 expandtab:
"
" global settings {{{
"
" enter vim mode
set nocompatible
" allow unsaved background buffers and remember marks/undo for them
@gilligan
gilligan / terntest.js
Created July 9, 2013 19:02
test case for tern completion issue
Huh = Backbone.View.extend({
/**
*
*
*
*
*
*
*
*
@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': {