Skip to content

Instantly share code, notes, and snippets.

💥
🦆

Gareth Jones symm

💥
🦆
Block or report user

Report or block symm

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
View gist:7145799
(function () {
var e, t, n, r, i, s = {}.hasOwnProperty,
o = function (e, t) {
function r() {
this.constructor = e
}
for (var n in t) s.call(t, n) && (e[n] = t[n]);
return r.prototype = t.prototype, e.prototype = new r, e.__super__ = t.prototype, e
}, u = this;
this.Stripe = function () {
@symm
symm / scram29c3.js
Created Dec 7, 2013
JavasScript text scrambler effect from the old 29c3 website
View scram29c3.js
String.prototype.replaceAt=function(index, char ) { return this.substr(0, index) + char + this.substr(index+char.length); }
String.prototype.replace2At=function(index, char1, char2 ) { return this.substr(0, index) + char1 + char2 + this.substr(index+char1.length+char2.length); }
function scram29c3run() {
var elem = document.getElementById( 'header-29c3-scramble' );
if ( elem ) { var scram = new scram29c3( elem ); scram.run(); } else
{ setTimeout( scram29c3run, 500 ); }
elem = document.getElementById( 'header-29c3-scramble2' );
if ( elem ) { var scram = new scram29c3( elem ); scram.run(); }
}
View bitsquat_rpz.pl
#!/usr/bin/perl
#
# A script to calculate bitsquats from a list of FQDNs
# Input: A list of FQDNs
# Output: A list of 1-bit variants
# Author: Jaeson Schultz, Threat Research Engineer
# Date: July 23, 2013
#
# The MIT License (MIT)
View config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- Set some basic project information and targets -->
<project name="My Symfony2 Project" default="build">
<target name="build"
depends="prepare, vendors, dbupdate, fixtures, lint, phploc, phpmd, phpcpd, phpcs, phpunit"/>
<target name="build-parallel"
depends="prepare, vendors, dbupdate, fixtures, lint, tools-parallel, phpcpd, phpunit"/>
@symm
symm / composer.json
Created Jan 15, 2014
Global composer json
View composer.json
{
"require": {
"phpunit/phpunit": "*",
"phpmd/phpmd": "*",
"squizlabs/php_codesniffer": "*",
"sebastian/phpcpd": "*",
"czproject/phpdepend": "*",
"phploc/phploc": "*",
"sami/sami": "*"
}
View play.php
<?php
// if you don't want to setup permissions the proper way, just uncomment the following PHP line
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more informationumask(0000);
// this check prevents access to debug front controllers that are deployed by accident to production servers.
// feel free to remove this, extend it, or make something more sophisticated.
require_once __DIR__.'/app/bootstrap.php.cache';require_once __DIR__.'/app/AppKernel.php';
use Symfony\Component\HttpFoundation\Request;
$kernel = new AppKernel('dev', true);
View datetimefun.php
<?php
$start = DateTime::createFromFormat('Y-m','2012-06');
var_dump($start);
$start = DateTime::createFromFormat('!Y-m','2012-06');
var_dump($start);
/*
class DateTime#1 (3) {
View gist:9171835
GIT_COMMITTER_DATE="`date`" git commit --amend --date "`date`"
View gist:9171844
brew install dnsmasq
mkdir -pv $(brew --prefix)/etc/
echo 'address=/.dev/127.0.0.1' > $(brew --prefix)/etc/dnsmasq.conf
sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
sudo mkdir -v /etc/resolver
sudo bash -c 'echo "nameserver 127.0.0.1" > /etc/resolver/dev'
@symm
symm / gist:3920f70cc47a9c9b5293
Last active Aug 29, 2015
Composer checksums
View gist:3920f70cc47a9c9b5293
dd703cf132b2a6bb9b2a407ef8834cab9f433cf04f252f1a125b09f8f7a46912 ./1.0.0-alpha1/composer.phar
acc373396d66d0083231a9d90691886e894ccca778398258e44c3dab60db2363 ./1.0.0-alpha2/composer.phar
7cac0a430602342a60949e580d49fefde57b5ff53d4b488e18d78aabf57eef19 ./1.0.0-alpha3/composer.phar
b1f5737a3916ad34f74566be51d21f3597d9aebaa382d942c5bda4d1338008b3 ./1.0.0-alpha4/composer.phar
7e0fd9248b0f03ddbb3d20d4be2d130fecce432b66ff96f6e99a906f85d82796 ./1.0.0-alpha5/composer.phar
eacac2a637de230e6091fdb45e893705049f929c271a5dc90d2c9eac0f44c5c4 ./1.0.0-alpha6/composer.phar
8fb4ac2da72856394b4bdd65d470797b23c27d496821a456046527fe6ccc9786 ./1.0.0-alpha7/composer.phar
1c73973d7cfb73f3e6b425b943a3e1459f5199984f37f008c48cf2b671dd3f2b ./1.0.0-alpha8/composer.phar
33ef1c07649bc1e135e73f0944415753233faf803cff493006f8bd9e744ff1f4 ./1.0.0-alpha9/composer.phar
9f2c7d0364bc743bcde9cfe1fe84749e5ac38c46d47cf42966ce499135fd4628 ./1.0.0-alpha10/composer.phar
You can’t perform that action at this time.