I hereby claim:
- I am asgrim on github.
- I am asgrim (https://keybase.io/asgrim) on keybase.
- I have a public key whose fingerprint is 0CA7 4C69 68D5 5872 4C63 BC89 11EA 1C58 CEF3 7C1C
To claim this, I am signing this object:
#!/bin/bash | |
if [ "$(id -u)" != "0" ]; then | |
echo "You must be root..." | |
exit 1 | |
fi | |
sed -i -e "s/search homerouter\.cpe/nameserver 192.168.2.2\nsearch homerouter.cpe/" /etc/resolv.conf | |
openvpn --config #path-to-ovpn-config# | |
sed -i '/nameserver 192.168.2.2/d' /etc/resolv.conf |
<?php | |
/** | |
* Zend Framework (http://framework.zend.com/) | |
* | |
* @link http://github.com/zendframework/zf2 for the canonical source repository | |
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) | |
* @license http://framework.zend.com/license/new-bsd New BSD License | |
*/ | |
namespace ZendTest\EventManager; |
I hereby claim:
To claim this, I am signing this object:
foreach ([ | |
'TraitFixtureA', | |
// 'TraitFixtureB', | |
// 'TraitFixtureC', | |
// 'TraitFixtureD', | |
] as $c) { | |
echo "\n\n" . $c . "\n" . str_repeat('=', strlen($c)) . "\n\n"; | |
$a = new \ReflectionClass($c); | |
var_dump($a->getTraits()); | |
var_dump($a->getTraitNames()); |
Exception#__construct.message | |
Exception#__construct.code | |
Exception#__construct.previous | |
ErrorException#__construct.message | |
ErrorException#__construct.code | |
ErrorException#__construct.severity | |
ErrorException#__construct.filename | |
ErrorException#__construct.lineno | |
ErrorException#__construct.previous | |
Closure#bind.newscope |
http://godeploy.localhost/project/https-git-repo-test/deploy/run/79 | |
GET /project/https-git-repo-test/deploy/run/79 HTTP/1.1 | |
Host: godeploy.localhost | |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.20) Gecko/20110805 Ubuntu/10.04 (lucid) Firefox/3.6.20 | |
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 | |
Accept-Language: en-gb,en;q=0.5 | |
Accept-Encoding: gzip,deflate | |
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 | |
Keep-Alive: 115 |
<?php | |
class AdminController extends Zend_Controller_Action | |
{ | |
public function userAction() | |
{ | |
$this->view->headLink()->appendStylesheet("/css/template/form.css"); | |
$this->view->headLink()->appendStylesheet("/css/pages/project_servers.css"); | |
$users = new GD_Model_UsersMapper(); | |
$user = new GD_Model_User(); |
<?php | |
$bind = array( | |
'key' => $key, | |
'value' => $value, | |
); | |
$where['key = ?'] = $key; | |
$db = Zend_Db_Table::getDefaultAdapter() | |
$db->update('configuration', $bind, $where); |
<?php | |
require "vendor/autoload.php"; | |
class Foo { | |
public function bar() {} | |
} | |
$c = 1000; |
<?php | |
namespace EveryPage\Controller\Plugin; | |
use Zend\ServiceManager\ServiceLocatorInterface; | |
use Zend\ServiceManager\ServiceLocatorAwareInterface; | |
use Zend\Mvc\Controller\Plugin\AbstractPlugin; | |
class EveryPage extends AbstractPlugin implements ServiceLocatorAwareInterface | |
{ |