Skip to content

Instantly share code, notes, and snippets.

@lukevers
lukevers / NewUser.php
Last active August 29, 2015 14:18
App\Tips\Tip
<?php namespace App\Tips;
class NewUser extends Tip {
/**
* An array of tips.
*
* @var array
*/
protected $tips = [
@lukevers
lukevers / OTF.php
Last active October 5, 2020 22:19
Laravel 5 On The Fly Database Connections
<?php namespace App\Database;
use Config;
use DB;
class OTF {
/**
* The name of the database we're connecting to on the fly.
*
@lukevers
lukevers / gist:568a729aa587c3e03cf8
Created November 6, 2014 21:47
nodejs load aws config from .env.php
gulp.task('aws', function() {
require('child_process').exec(
'php -r \'print json_encode(include(".env.php"));\'',
function (err, stdout, stderr) {
aws = JSON.parse(stdout).AWS;
// Now we have the following structure:
//
// {
// cdn: '',

Keybase proof

I hereby claim:

  • I am lukevers on github.
  • I am lukevers (https://keybase.io/lukevers) on keybase.
  • I have a public key whose fingerprint is 04B6 F99A 7B82 A675 1E15 8F1F B07E 0BE2 9399 DB24

To claim this, I am signing this object:

Initialize 1ms
Copy dependencies
Build NaCl
Creating directories
Getting system type
System is [amd64]
Using premade plan at [node_build/plans/apple_amd64_plan.json]
Creating system specific integer type headers
beginning build
implementations generated
@lukevers
lukevers / media.css
Created September 12, 2013 19:46
Basic
@charset "UTF-8"
/* Computers */
/* Content */
/* Tablets */
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
@lukevers
lukevers / bot.pl
Created July 18, 2013 00:52
IPv6 support for idleRPG http://idlerpg.net/
#!/usr/local/bin/perl
# irpg bot v3.1.2 by jotun, jotun@idlerpg.net, et al. See http://idlerpg.net/
#
# Some code within this file was written by authors other than myself. As such,
# distributing this code or distributing modified versions of this code is
# strictly prohibited without written authorization from the authors. Contact
# jotun@idlerpg.net. Please note that this may change (at any time, no less) if
# authorization for distribution is given by patch submitters.
#
# As a side note, patches submitted for this project are automatically taken to
@lukevers
lukevers / gist:4075094
Created November 14, 2012 21:53
xkcd.sh
#!/bin/bash
# Create a folder for xkcd
mkdir xkcd
echo 'Created directory "xkcd"'
# Make sure to cd into the folder
cd xkcd
# Loop through all of them
@lukevers
lukevers / gist:4014668
Created November 5, 2012 01:13
ಠ_ಠ
ಠ_ಠ