As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
pear list -c phpunit | grep stable | awk '{print "phpunit/"$1}' | xargs pear uninstall ; pear install phpunit/phpunit |
<?php | |
use Doctrine\ORM\Mapping as ORM; | |
use Doctrine\Common\Collections\ArrayCollection; | |
/** | |
* @ORM\Entity() | |
* @ORM\Table(name="user") | |
*/ | |
class User |
/** | |
* Check if a given ip is in a network | |
* @param string $ip IP to check in IPV4 format eg. 127.0.0.1 | |
* @param string $range IP/CIDR netmask eg. 127.0.0.0/24, also 127.0.0.1 is accepted and /32 assumed | |
* @return boolean true if the ip is in this range / false if not. | |
*/ | |
function ip_in_range( $ip, $range ) { | |
if ( strpos( $range, '/' ) == false ) { | |
$range .= '/32'; | |
} |
Paul Buonopane paul@namepros.com at NamePros
PGP: https://keybase.io/zenexer
I'm working on cleaning up this advisory so that it's more informative at a glance. Suggestions are welcome.
This advisory addresses the underlying PHP vulnerabilities behind Dawid Golunski's [CVE-2016-10033][CVE-2016-10033], [CVE-2016-10045][CVE-2016-10045], and [CVE-2016-10074][CVE-2016-10074]. It assumes prior understanding of these vulnerabilities.
This advisory does not yet have associated CVE identifiers.
countries = [ | |
{'timezones': ['Asia/Kabul'], 'code': 'AF', 'name': 'Afghanistan'}, | |
{'timezones': ['Europe/Mariehamn'], 'code': 'AX', 'name': 'Aland Islands'}, | |
{'timezones': ['Europe/Tirane'], 'code': 'AL', 'name': 'Albania'}, | |
{'timezones': ['Africa/Algiers'], 'code': 'DZ', 'name': 'Algeria'}, | |
{'timezones': ['Pacific/Pago_Pago'], 'code': 'AS', 'name': 'American Samoa'}, | |
{'timezones': ['Europe/Andorra'], 'code': 'AD', 'name': 'Andorra'}, | |
{'timezones': ['Africa/Luanda'], 'code': 'AO', 'name': 'Angola'}, | |
{'timezones': ['America/Anguilla'], 'code': 'AI', 'name': 'Anguilla'}, | |
{'timezones': ['Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/DumontDUrville', 'Antarctica/Mawson', 'Antarctica/McMurdo', 'Antarctica/Palmer', 'Antarctica/Rothera', 'Antarctica/Syowa', 'Antarctica/Troll', 'Antarctica/Vostok'], 'code': 'AQ', 'name': 'Antarctica'}, |