Skip to content

Instantly share code, notes, and snippets.

View snipe's full-sized avatar
😁
Jazzed to be releasing Snipe-IT v7 soon!

snipe snipe

😁
Jazzed to be releasing Snipe-IT v7 soon!
View GitHub Profile
@snipe
snipe / gist:5512408
Created May 3, 2013 18:25
ASCII Goatse
* g o a t s e x * g o a t s e x * g o a t s e x *
g g
o / \ \ / \ o
a| | \ | | a
t| `. | | : t
s` | | \| | s
e \ | / / \\\ --__ \\ : e
x \ \/ _--~~ ~--__| \ | x
* \ \_-~ ~-_\ | *
g \_ \ _.--------.______\| | g
@snipe
snipe / mysql-strict
Created November 26, 2013 23:17
Turn on mysql strict mode for Mac OSX mysql/MAMP
As priv'd user,
SET @@global.sql_mode='STRICT_TRANS_TABLES';
SET @@global.sql_mode='STRICT_ALL_TABLES';
@snipe
snipe / keybase.md
Created March 20, 2014 23:56
verification

Keybase proof

I hereby claim:

  • I am snipe on github.
  • I am snipe (https://keybase.io/snipe) on keybase.
  • I have a public key whose fingerprint is C1CC 3935 03A5 D855 6602 F7C1 F564 2C61 1290 D7CC

To claim this, I am signing this object:

@snipe
snipe / gist:4aa434c53b65fd23c401
Created June 9, 2014 22:42
Encrypt Slack token with Travis' encryption cli interface
travis encrypt "snipe:<SLACK TOKEN>" --add notifications.slack
Verifying that +snipe is my openname (Bitcoin username). https://onename.io/snipe
@snipe
snipe / gist:14752d829bd3490a2d0a
Created February 21, 2015 05:05
CALL TO UNDEFINED METHOD ILLUMINATE\COOKIE\COOKIEJAR::GET() in Laravel 4.2
Upgrade Sentry to v 2.1.*
@snipe
snipe / gist:3e82c2c9288f761315eb
Created February 28, 2015 22:46
Versioning.php Artisan command for generating a version config for Laravel 4
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class Versioning extends Command {
/**
* The console command name.
@snipe
snipe / gist:aee3b4f5793cfe0c3d39
Created March 6, 2015 07:56
Laravel Artisan command to upload fils to S3 with cache-control headers
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class MoveToS3 extends Command {
/**
* The console command name.
// Modified version of the timezone list function from http://stackoverflow.com/a/17355238/507629
// Includes current time for each timezone (would help users who don't know what their timezone is)
function generate_timezone_list($val = NULL)
{
static $regions = array(
DateTimeZone::AFRICA,
DateTimeZone::AMERICA,
DateTimeZone::ANTARCTICA,
DateTimeZone::ASIA,
@snipe
snipe / gist:741e6c1df72db7059ddc
Last active August 27, 2015 23:47 — forked from jkeck/gist:3515705
Link directly to an open modal window in Bootstrap
/* If you've ever had the need to link directly to an open modal window with Bootstrap, here's a quick and easy way to do it:
Make sure your modal has an id and is classed with modal and permalink:
<div class="modal permalink" id="myModal" ... >
Then stick this bit of Javascript at at the end of your document:
*/
$(document).ready(function() {