Skip to content

Instantly share code, notes, and snippets.

@mkhon
mkhon / apr-iconv.patch
Created March 5, 2015 12:02
Fix apr-iconv 1.2.1 build with VS2013
Fix apr-iconv build with Visual Studio 2013 (and earlier?).
The error without the patch is:
adobe-stdenc.obj : error LNK2011: precompiled object not linked in; image may not run
..\Release\iconv\adobe-stdenc.so : fatal error LNK1120: 1 unresolved externals
--- build/modules.mk.win.orig 2007-10-19 05:49:36.000000000 +0700
+++ build/modules.mk.win 2015-03-05 17:49:21.000000000 +0600
@@ -218,7 +218,7 @@
@brianloveswords
brianloveswords / git-obliterate
Last active January 24, 2024 12:28
git-obliterate: for removing sensitive files you may have committed from the entire history of the project.
#!/bin/bash
file=$1
test -z $file && echo "file required." 1>&2 && exit 1
git filter-branch -f --index-filter "git rm -r --cached $file --ignore-unmatch" --prune-empty --tag-name-filter cat -- --all
git ignore $file
git add .gitignore
git commit -m "Add $file to .gitignore"
@CapsAdmin
CapsAdmin / screen.lua
Created July 11, 2013 03:34
some sort of 3d world
screens = screens or {}
screens.active_screens = screens.active_screens or {}
screens.lock_player = false
screens.mouse_delta = Vector(0, 0, 0)
screens.focused_screen = NULL
do -- meta
local SCREEN = {}
SCREEN.__index = SCREEN