Skip to content

Instantly share code, notes, and snippets.

View stephen304's full-sized avatar

Stephen Smith stephen304

View GitHub Profile
unexpected fault address 0xc8db208198
fatal error: fault
[signal 0xb code=0x1 addr=0xc8db208198 pc=0x4192a4]
goroutine 639 [running]:
runtime.throw(0xe48288, 0x5)
/usr/lib/go/src/runtime/panic.go:527 +0x96 fp=0xc821d1f260 sp=0xc821d1f248
/usr/lib/go/src/runtime/sigpanic_unix.go:27 +0x2ab fp=0xc821d1f2b0 sp=0xc821d1f260
runtime.evacuate(0xb795a0, 0xc8201376a0, 0xe600c0)
stephen304 / asanafix.user.js
Last active September 30, 2015 19:48
A script to highlight asana's harvest clock icon when it runs
// ==UserScript==
// @name AsanaFix
// @description Adds CSS to make the asana harvest clock highlight when it runs.
// @namespace com.stephen304.asanafix
// @include*
// @include*
// @version 2
// @grant none
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am Stephen304 on github.
  • I am stephen304 ( on keybase.
  • I have a public key whose fingerprint is FAA9 03B2 70BD 11EF 9DAA A4B8 AC57 931D 5F58 7C7B

To claim this, I am signing this object:

stephen304 / truncate.php
Created July 4, 2014 19:15
Truncate all tables PHP
$connection = new mysqli($host, $user, $pass, $db);
$result = $connection->query($sql);
$tables = $result->fetch_all(MYSQLI_ASSOC);
foreach($tables as $table)
$sql = "TRUNCATE TABLE `".$table['TABLE_NAME']."`";
$result = $connection->query($sql);