Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
[user] | |
name = Brad Wilson | |
email = dotnetguy@gmail.com | |
[alias] | |
a = add -A | |
abort = rebase --abort | |
amend = commit --amend -C HEAD | |
bl = blame -w -M -C | |
br = branch | |
cat = cat-file -t |
Object Calisthenics outlines 9 basic rules to apply when performing the exercise:
#!/bin/bash | |
# Add Vagrant's NFS setup commands to sudoers, for `vagrant up` without a password | |
# Updated to work with Vagrant 1.3.x | |
# Stage updated sudoers in a temporary file for syntax checking | |
TMP=$(mktemp -t vagrant_sudoers) | |
cat /etc/sudoers > $TMP | |
cat >> $TMP <<EOF | |
# Allow passwordless startup of Vagrant when using NFS. |
<?php | |
function it($m,$p){echo ($p?'✔︎':'✘')." It $m\n"; if(!$p){$GLOBALS['f']=1;}}function done(){if(@$GLOBALS['f'])die(1);} |
#!/usr/bin/env python2 | |
""" | |
Author: takeshix <takeshix@adversec.com> | |
PoC code for CVE-2014-0160. Original PoC by Jared Stafford (jspenguin@jspenguin.org). | |
Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP. | |
""" | |
import sys,struct,socket | |
from argparse import ArgumentParser |
This is a guide aimed at providing some details on Z-ray extensibility API, and some methodologies/examples on how to write extensions.
Disclaimer: This an early DRAFT, information might be outdated by the time it is being read, or might just be plain wrong. At the time of writing there is no official documentation yet, so this is aimed at filling the blanks.
#Files
Extensions reside in zend-install-path/var/zray/extensions/
Let's start simple. | |
Add your name, contact info (twitter) and a line or two describing where you're holding and what you're looking to get out of a pairing in the comments below. | |
If you make a connection, come back and remove your comment. | |
Over the course of a week (max) pledge each other one hour of code review. | |
Throw some code in a gist or a repo, invite your partner and see what happens. |
[alias] | |
co = checkout | |
ci = commit | |
ca = commit --amend | |
cia = commit -a | |
can = commit --amend --no-edit | |
com = checkout master | |
st = status | |
s = status --short | |
b = branch |
<?php | |
namespace MongoDB\Tests; | |
use RecursiveDirectoryIterator; | |
use RecursiveIteratorIterator; | |
use ReflectionClass; | |
use ReflectionMethod; | |
use RegexIterator; |