Skip to content

Instantly share code, notes, and snippets.

@lennart
lennart / node-taglib-windows-compile.log
Last active December 14, 2015 09:50
Failures on Win 7 32bit Compilation of node-taglib
gyp info it worked if it ends with ok
gyp verb cli [ 'c:\\Program Files (x86)\\nodejs\\node.exe',
gyp verb cli 'c:\\Users\\nana\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '2' ]
gyp info using node-gyp@0.8.4
gyp info using node@0.8.21 | win32 | ia32
gyp verb command rebuild [ '2' ]
gyp verb command clean []
@lennart
lennart / gist:3787187
Created September 26, 2012 10:16
Web Config for Symfony 2 in WebMatrix 2
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="TempRewriteToWeb" stopProcessing="false">
<match url="^(web/)?(.*)$" />
<action type="Rewrite" url="web/{R:2}" logRewrittenUrl="true" />
</rule>
@lennart
lennart / Múm.test
Created April 27, 2012 10:13
Show off UTF8 char decomposition on filenames, OS X does it, Windows cannot handle it
@lennart
lennart / LICENSE.txt
Created March 14, 2012 17:11 — forked from jed/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@lennart
lennart / Makefile
Created February 14, 2012 12:08
A simple makefile for testing with mocha
test:
@NODE_ENV=test ./node_modules/.bin/mocha
.PHONY: test
@lennart
lennart / .gitconfig
Created February 2, 2012 22:13
Sample .gitconfig
[alias]
co = checkout
st = status -sb
pl = pull
pu = push
push = !sh -c 'git push --tags && git push'
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lg = log --oneline --decorate
ci = commit
ai = add --interactive
@lennart
lennart / gist:1717337
Created February 1, 2012 14:35 — forked from anonymous/gist:1717331
A Gentoo startup script for the newrelic server monitor daemon
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
need net
}
start() {
@lennart
lennart / .ackrc
Created June 29, 2011 15:00
ACK rc for include less/sass… and coffee script as well as mustache but no SQL
--type-add=css=.less,.styl,.scss,.sass
--type-add=js=.coffee
--type-set=mustache=.mustache
--nosql
@lennart
lennart / config.ru
Created June 28, 2011 09:39
rackup for local yard server
require 'rubygems'
require 'yard'
libraries = {}
gems = Gem.source_index.find_name('').each do |spec|
libraries[spec.name] ||= []
libraries[spec.name] << YARD::Server::LibraryVersion.new(spec.name, spec.version.to_s, nil, :gem)
end
run YARD::Server::RackAdapter.new libraries
@lennart
lennart / gist:1010816
Created June 6, 2011 18:48
Add -L to curl for following locations (small workaround for github.com/…/raw/… => raw.github.com)
diff --git a/Rakefile b/Rakefile
index d72fe2c..4752efd 100644
--- a/Rakefile
+++ b/Rakefile
@@ -19,16 +19,16 @@ def vim_plugin_task(name, repo=nil)
sh "git clone #{repo} #{dir}"
elsif repo =~ /download_script/
- if filename = `curl --silent --head #{repo} | grep attachment`[/filename=(.+)/,1]
+ if filename = `curl -L --silent --head #{repo} | grep attachment`[/filename=(.+)/,1]