Skip to content

Instantly share code, notes, and snippets.

@bluerise
bluerise / htaccess
Created December 14, 2011 15:49 — forked from dave1010/htaccess
HTTP Status Cats Apache (htaccess) config
# HTTP Status Cats
# Apache (htaccess) config created by @dave1010
# Licensed CC BY 2.0
# Images CC BY 2.0, from GirlieMac's photostream:
# http://www.flickr.com/photos/girliemac/sets/72157628409467125/with/6508023065/
# Usage: copy save this file as .htaccess or add it to your httpd.conf
ErrorDocument 404 '<a href="http://www.flickr.com/photos/girliemac/6508022985/" title="404 - Not Found by GirlieMac, on Flickr"><img src="http://farm8.staticflickr.com/7172/6508022985_b22200ced0.jpg" width="500" height="400" alt="404 - Not Found"></a>'
@bluerise
bluerise / gist:5099891
Created March 6, 2013 15:04
On OSX we need AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER.
diff --git a/configure.ac b/configure.ac
index 260d2f7..d127601 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,7 +31,7 @@ AM_MAINTAINER_MODE
AC_CONFIG_SRCDIR([libusb/core.c])
AC_CONFIG_MACRO_DIR([m4])
-AM_CONFIG_HEADER([config.h])
+AC_CONFIG_HEADERS([config.h])
### Keybase proof
I hereby claim:
* I am Bluerise on github.
* I am bluerise (https://keybase.io/bluerise) on keybase.
* I have the public key with fingerprint DAB0&nbsp;D2BB&nbsp;5359&nbsp;C52A&nbsp;5AAE&nbsp;&nbsp;5DC3&nbsp;21AE&nbsp;4D77&nbsp;C92B&nbsp;55CA
To claim this, I am signing this object:
diff --git a/Makefile.in b/Makefile.in
index 28a8ec4..81e4705 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -58,6 +58,7 @@ SED=@SED@
ENT=@ENT@
XAUTH_PATH=@XAUTH_PATH@
LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@
+KEYCHAIN_LDFLAGS=@KEYCHAIN_LDFLAGS@
EXEEXT=@EXEEXT@
@bluerise
bluerise / armmake
Last active December 21, 2017 22:08
Wrapper to have make use the correct cross compiler
#!/bin/ksh
MACHINE=armv7
MACHINE_ARCH=arm
MACHINE_COMP=armv7
VERSION=1.0
#this is true for most archs
MACHINE_CPU=${MACHINE_ARCH}
TARGET=${MACHINE}
HOST=$(uname -m)
@bluerise
bluerise / swizzle.c
Created July 19, 2017 20:30
Swizzle extraction toolkit
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
#include <sys/fcntl.h>
#include <sys/stat.h>
int check(uint8_t *);