Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:

Stephen Smith stephen304

:shipit:
View GitHub Profile
View ipfs.log
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
runtime.sigpanic()
/usr/lib/go/src/runtime/sigpanic_unix.go:27 +0x2ab fp=0xc821d1f2b0 sp=0xc821d1f260
runtime.evacuate(0xb795a0, 0xc8201376a0, 0xe600c0)
@stephen304
stephen304 / asanafix.user.js
Last active Sep 30, 2015
A script to highlight asana's harvest clock icon when it runs
View asanafix.user.js
// ==UserScript==
// @name AsanaFix
// @description Adds CSS to make the asana harvest clock highlight when it runs.
// @namespace com.stephen304.asanafix
// @include http://app.asana.com*
// @include https://app.asana.com*
// @version 2
// @grant none
// ==/UserScript==
View keybase.md

Keybase proof

I hereby claim:

  • I am Stephen304 on github.
  • I am stephen304 (https://keybase.io/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
stephen304 / truncate.php
Created Jul 4, 2014
Truncate all tables PHP
View truncate.php
<?php
$connection = new mysqli($host, $user, $pass, $db);
$sql = "SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA LIKE '".$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);
}
You can’t perform that action at this time.