Skip to content

Instantly share code, notes, and snippets.

View symm's full-sized avatar
🦄

Gareth Jones symm

🦄
View GitHub Profile
@symm
symm / steam-lucasarts-support.diff
Created November 18, 2012 16:09
Steam LucasArts Adventures patch (from http://scummvm.bencastricum.nl/) ported to ScummVM v1.5.0
diff --git a/audio/audiostream.cpp b/audio/audiostream.cpp
index 1c5c435..32b38ef 100644
--- a/audio/audiostream.cpp
+++ b/audio/audiostream.cpp
@@ -33,6 +33,7 @@
#include "audio/decoders/quicktime.h"
#include "audio/decoders/raw.h"
#include "audio/decoders/vorbis.h"
+#include "audio/decoders/cdda.h"
https://www.raspberrypi.org/magpi-issues/MagPi01.pdf
https://www.raspberrypi.org/magpi-issues/MagPi02.pdf
https://www.raspberrypi.org/magpi-issues/MagPi03.pdf
https://www.raspberrypi.org/magpi-issues/MagPi04.pdf
https://www.raspberrypi.org/magpi-issues/MagPi05.pdf
https://www.raspberrypi.org/magpi-issues/MagPi06.pdf
https://www.raspberrypi.org/magpi-issues/MagPi07.pdf
https://www.raspberrypi.org/magpi-issues/MagPi08.pdf
https://www.raspberrypi.org/magpi-issues/MagPi09.pdf
https://www.raspberrypi.org/magpi-issues/MagPi10.pdf
@symm
symm / scram29c3.js
Created December 7, 2013 13:15
JavasScript text scrambler effect from the old 29c3 website
String.prototype.replaceAt=function(index, char ) { return this.substr(0, index) + char + this.substr(index+char.length); }
String.prototype.replace2At=function(index, char1, char2 ) { return this.substr(0, index) + char1 + char2 + this.substr(index+char1.length+char2.length); }
function scram29c3run() {
var elem = document.getElementById( 'header-29c3-scramble' );
if ( elem ) { var scram = new scram29c3( elem ); scram.run(); } else
{ setTimeout( scram29c3run, 500 ); }
elem = document.getElementById( 'header-29c3-scramble2' );
if ( elem ) { var scram = new scram29c3( elem ); scram.run(); }
}
@symm
symm / unix
Last active July 3, 2016 10:14 — forked from xero/unix
curl -L git.io.unix
,_ ,_==▄▂
, ▂▃▄▄▅▅▅▂▅¾. / /
▄▆<´ "»▓▓▓%\ / / / /
,▅7" ´>▓▓▓% / / > / >/%
▐¶▓ ,»▓▓¾´ /> %/%// / /
▓▃▅▅
diff --git a/utils/nfc-mfclassic.c b/utils/nfc-mfclassic.c
index 1242886..8d9c6f0 100644
--- a/utils/nfc-mfclassic.c
+++ b/utils/nfc-mfclassic.c
@@ -431,8 +431,8 @@ write_card(int write_block_zero)
}
} else {
// The first block 0x00 is read only, skip this
- if (uiBlock == 0 && ! write_block_zero && ! magic2)
- continue;
@symm
symm / Makefile
Created November 5, 2016 14:17
avrfid
# Hey Emacs, this is a -*- makefile -*-
# AVR-GCC Makefile template, derived from the WinAVR template (which
# is public domain), believed to be neutral to any flavor of "make"
# (GNU make, BSD make, SysV make)
MCU = attiny85
FORMAT = ihex
TARGET = avrfid
Anti Hijack Feature
1. Turn on ignition until the dash lights come on but don't start engine!
2. Lock the door using the lever on the door handle and then unlock 3 Times
3. Turn off ignition
4. Repeat 2 but with ignition OFF
### Keybase proof
I hereby claim:
* I am symm on github.
* I am gaz (https://keybase.io/gaz) on keybase.
* I have a public key ASCLjhHAu4nSDCuNGpl4HQZGWKvYbJWHXlUj0jr8U1Imrgo
To claim this, I am signing this object:
/**
* @beforeScenario
*/
public function createSchema()
{
$metadata = $this->entityManager->getMetadataFactory()->getAllMetadata();
if (!empty($metadata)) {
$tool = new SchemaTool($this->entityManager);
$tool->dropSchema($metadata);
$tool->createSchema($metadata);