Skip to content

Instantly share code, notes, and snippets.

View martinbean's full-sized avatar

Martin Bean martinbean

View GitHub Profile
anonymous
anonymous / config.json
Created July 30, 2014 19:51
Bootstrap Customizer Config
{
"vars": {
"@gray-darker": "lighten(#000, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 46.7%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#c00",
"@brand-success": "#5cb85c",
"@brand-info": "#5bc0de",
@martinbean
martinbean / config.json
Created August 1, 2014 07:23 — forked from anonymous/config.json
Your Fight Site CMS Bootstrap variables
{
"vars": {
"@gray-darker": "lighten(#000, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 46.7%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#c00",
"@brand-success": "#5cb85c",
"@brand-info": "#5bc0de",
@johnrees
johnrees / reserved_words.txt
Created December 5, 2012 09:29
Reserved username list (blacklist)
400
403
404
418
422
500
502
about
acces
account
@moonbaseco
moonbaseco / Domains
Last active March 21, 2016 07:40
Domain names I consider selling (or co-executing if you want to make something cool together) =)
8wines.co
classhunt.co
focusjournal.co
galaxicons.com
getstartupswag.com
@coldclimate
coldclimate / gist:464e6e5174d9a5ffcc6a
Created March 24, 2016 08:51
Get a list of all access keys on an AWS account
for USERNAME in `aws iam list-users | jq -r '.Users[].UserName'`
do
KEYS=$(aws iam list-access-keys --user-name $USERNAME | jq '.AccessKeyMetadata[].AccessKeyId')
echo $USERNAME, $KEYS
done
@oli-logicnow
oli-logicnow / gist:68008b7f7b352d72755f5fa2aced5760
Created July 19, 2016 10:52
debugging hanging processes (network connection edition)
strace -p {{PROCESS_ID}}
poll([{fd=20, events=POLLIN}], 1, 0) = 0 (Timeout) << see timeout
GRAB FileDescriptor (20)
ls -l /proc/{{PROCESS_ID}}/fd/{{FD}}
lrwx------ 1 root root 64 Jul 18 15:41 /proc/29915/fd/20 -> socket:[2426613614]
GRAB SOCKET (2426613614)
lsof | grep {{SOCKET}}
var app = app || {};
//object literal
app = {
init: function(){
this.cache();
this.bind();
},
cache: function(){
@mmeyer2k
mmeyer2k / phpunit4circle.sh
Last active November 3, 2021 21:33
circle.ci parallelism for phpunit
#!/bin/sh
# circle.ci parallelism appends the subset of files to run in the container
# to the end of the test command. phpunit does not automatically parse files
# appended to the argument like this:
#
# phpunit --some-args 'testSomething1.php' 'testSomething2.php'
#
# this script parses arguments and individually dispatches calls to phpunit
#
@taylorotwell
taylorotwell / tenant-middleware
Created December 1, 2015 03:07
Magical tenant middleware thing
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Auth\Access\AuthorizationException;
class VerifyTenants
{
/**