Skip to content

Instantly share code, notes, and snippets.

View michaelcullum's full-sized avatar

Michael Cullum michaelcullum

View GitHub Profile
alias ls='ls -F --color --show-control-chars'
alias ll='ls -la'
alias gs='git status -sb'
alias ga='git add '
alias gc='git commit'
alias gch='git checkout '
alias gp='git pull '
alias gpp='git push '
alias gr='git reset --hard'
alias gbr='git branch && git remote'

Late yesterday afternoon the PSR-9 and PSR-10 drafts were moved into master on the php-fig/standards repository, moving them along to the next step and to get the wider perspective of the main PHP-FIG group's opinions on it.

What are PSR-9 and PSR-10, you ask? Here's a brief summary so far:

At the end of last year (2014) Lukas Smith made a proposal to the PHP-FIG group for a standard that would make reporting security issues with PHP projects and libraries a much more structured thing. The general idea is that a standardized document (or documents?) in a project's repository would provide information about current and past security issues in a well-defined structure that could have some automated tooling around it. Much discuss

alias ls='ls -F --color --show-control-chars'
alias ll='ls -la'
alias gs='git status -sb'
alias ga='git add '
alias gc='git commit'
alias gch='git checkout '
alias gp='git pull '
alias gpp='git push '
alias gr='git reset --hard'
alias gbr='git branch && git remote'
alias ls='ls -F --color --show-control-chars'
alias ll='ls -la'
alias gs='git status -sb'
alias ga='git add'
alias gc='git commit'
alias gch='git checkout'
alias gp='git pull'
alias gpp='git push'
alias gpo='git push origin'
alias gr='git reset --hard'
@michaelcullum
michaelcullum / amAbstract.csv
Last active August 29, 2015 14:27
6 rows of anonymized Ashley Madison Data for research purposes (what data did they store/was leaked). Taken from a CC transactions file.
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 27 columns, instead of 15. in line 4.
ACCOUNT,ACCOUNT NAME,AMOUNT,AUTH CODE,AVS,BRAND,CARD ENDING,CVD,FIRST NAME,LAST NAME,MERCHANT TRANS. ID,OPTION CODE,DATE,TXN ID,CONF. NO.,ERROR CODE,AUTH TYPE,TYPE,TXT_CITY%2CTXT_COUNTRY%2CTXT_EMAIL%2CTXT_PHONE%2CTXT_STATE%2CTXT_ADDR1%2CTXT_ADDR2%2CZIP%2CCONSUMER_IP,,,,,,,,
99973132,ADL Media Inc - TDS,30,193979,Z,MC,Removed last 4,,36290683,Removed Surname,11972130,,15/06/2015 00:37,3968337560,3968337560,,Undefined,Authorizations,Long Island City,US,Removed Email,,NY,,,11109,
99926939,Avid Dating Life Inc,51.45,5642,B,VI,Removed last 4,M,36414649,Removed Surname,11972161,,15/06/2015 00:44,3968348090,3968348090,,Undefined,Authorizations,Mill Bay,CA,Removed Email,,BC,,,V0r2p1,Removed IP
99973132,ADL Media Inc - TDS,30,162902,Z,AM,Removed last 4,,35657079,Removed Surname,11972238,,15/06/2015 00:55,3968397150,3968397150,,Undefined,Authorizations,Harrison,US,Removed Email,,NJ,,,7029,
99926056,Avid Dating Life Inc,30,15126,N,VI,Removed last 4,,27255313,Removed Surname,11972310,,15/06/2015 01:12,3968472060,39684720
@michaelcullum
michaelcullum / IRC Discussion
Created January 15, 2012 17:53
IRC Discussion #phpbb-dev 15-01-12
(3:06:45 PM) rxu: callumacrae : http://tracker.phpbb.com/browse/PHPBB3-10590
(3:06:45 PM) rxu: as far as I remember, confirmation pages were inserted to reduce server load. Especially on posting.
(3:07:08 PM) rxu: So I'm not sure we want to remove those.
(3:07:33 PM) Raimon [~Adium@541E013C.cm-5-7a.dynamic.ziggo.nl] entered the room.
(3:07:34 PM) Raimon left the room (quit: Changing host).
(3:07:34 PM) Raimon [~Adium@phpbb/manager/Raimon] entered the room.
(3:07:34 PM) mode (+o Raimon) by ChanServ
(3:07:48 PM) rxu: So, please give detailed explanation of cons and pros of that in the ticket, thanks.
(3:08:04 PM) Raimon left the room (quit: Client Quit).
(3:08:35 PM) Raimon [~Adium@phpbb/manager/Raimon] entered the room.
@michaelcullum
michaelcullum / welcome
Created February 4, 2012 22:35
Welcome
Introduction
Welcome to phpBB3!
phpBB™ is the most widely used open source bulletin board solution in the world. phpBB3 is the latest installment in a package line started in 2000. Like its predecessors, phpBB3 is feature-rich, user-friendly, and fully supported by the phpBB Team. phpBB3 greatly improves on what made phpBB2 popular, and adds commonly requested features that were not present in previous versions. We hope it exceeds your expectations.
This installation system will guide you through installing phpBB3, updating to the latest version of phpBB3 from past releases, as well as converting to phpBB3 from a different discussion board system (including phpBB2). For more information, we encourage you to read the installation guide.
To read the phpBB3 license or learn about obtaining support and our stance on it, please select the respective options from the side menu. To continue, please select the appropriate tab above.
@michaelcullum
michaelcullum / gist:1748371
Created February 5, 2012 23:21
sql array
'SELECT' => 'c.*,b.*,ct.*,u.*',
'FROM' => array(
BLOG_CMNTS_TABLE => 'c',
BLOGS_TABLE => 'b',
BLOG_CATS_TABLE => 'ct',
USERS_TABLE => 'u',
),
'WHERE' => 'c.cmnt_id = ' . $db->sql_escape($comment_id) . '
@michaelcullum
michaelcullum / bit1.php
Created February 5, 2012 23:57
install
array(BLOG_CMNTS_TABLE, array(
'COLUMNS' => array(
'cmnt_id' => array('UINT', NULL, 'auto_increment'),
'cmnt_blog_id' => array('UINT', 0),
'cmnt_poster_id' => array('UINT', 0),
'cmnt_approved' => array('UINT', 0),
'cmnt_text' => array('TEXT_UNI', ''),
'cmnt_posted_time' => array('TIMESTAMP', 0),
'cmnt_last_edited' => array('TIMESTAMP', 0),
'bbcode_bitfield' => array('VCHAR:255', ''),
@michaelcullum
michaelcullum / gist:1748537
Created February 6, 2012 00:18
get blog data
static function get_blog_data($blog_id)
{
global $db;
if(!$blog_id)
{
return false;
}
$sql_ary = array(
'SELECT' => 'b.*,c.*,u.*',