Skip to content

Instantly share code, notes, and snippets.

Martin Bean martinbean

Block or report user

Report or block martinbean

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mmeyer2k /
Last active Dec 13, 2018 parallelism for phpunit
# 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
oli-logicnow / gist:68008b7f7b352d72755f5fa2aced5760
Created Jul 19, 2016
debugging hanging processes (network connection edition)
View gist:68008b7f7b352d72755f5fa2aced5760
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}}
coldclimate / gist:464e6e5174d9a5ffcc6a
Created Mar 24, 2016
Get a list of all access keys on an AWS account
View gist:464e6e5174d9a5ffcc6a
for USERNAME in `aws iam list-users | jq -r '.Users[].UserName'`
KEYS=$(aws iam list-access-keys --user-name $USERNAME | jq '.AccessKeyMetadata[].AccessKeyId')
taylorotwell / tenant-middleware
Created Dec 1, 2015
Magical tenant middleware thing
View tenant-middleware
namespace App\Http\Middleware;
use Closure;
use Illuminate\Auth\Access\AuthorizationException;
class VerifyTenants
martinbean / config.json
Created Aug 1, 2014 — forked from anonymous/config.json
Your Fight Site CMS Bootstrap variables
View config.json
"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",
anonymous / config.json
Created Jul 30, 2014
Bootstrap Customizer Config
View config.json
"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",
moonbaseco / Domains
Last active Mar 21, 2016
Domain names I consider selling (or co-executing if you want to make something cool together) =)
View Domains
mnapoli / behat-reference.feature
Last active Sep 10, 2019
Behat Mink reference
View behat-reference.feature
# Given
Given I am on [the] homepage
Given I am on "url"
# When
When I go to [the] homepage
When I go to "url"
When I reload the page
View semifixed_footer.scss
View gist:4504091
var app = app || {};
//object literal
app = {
init: function(){
cache: function(){
You can’t perform that action at this time.