disk: dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync; unlink test
disk seek: ioping -R <volume>
network: wget -O /dev/null http://cachefly.cachefly.net/100mb.test
$this->User->id = 121; | |
$this->User->saveField('last_login', date('Y-m-d g:i:s')); |
OAuth realm="",oauth_consumer_key="GKVVBADbbJ7g0gR1MFdog", oauth_nonce="829a883fa0a11ff849b013de1fef5c8b0cae5e5b", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1265944607", oauth_version="1.0", oauth_signature="1Y4mMORCJf2kEFMS5MPWyxQIqPM%3D", |
<?php | |
namespace moneygram\extensions\imagine; | |
class ReflectionFilter implements \Imagine\Filter\FilterInterface | |
{ | |
private $imagine; | |
public function __construct(\Imagine\Image\ImagineInterface $imagine) | |
{ |
## Angular modules | |
http://ngmodules.org/ | |
http://angular-ui.github.com/ | |
http://angular-ui.github.com/bootstrap/ | |
## Angular resources | |
John Lindquist Videos: | |
http://egghead.io |
Media::applyFilter('encode', function($self, $params, $chain) { | |
foreach ($params['data'] as $key => $value) { | |
if ($value instanceof \lithium\data\Collection) { | |
$params['data'][$key] = array_values($value->to('array')); | |
} | |
} | |
return $chain->next($self, $params, $chain); | |
}); |
parse_git_path() { | |
repo=$(git rev-parse --git-dir 2>/dev/null) | |
if [ -n $repo ] | |
then | |
repo=$(echo $repo | sed 's/.git$//') | |
if [ -z $repo ] | |
then | |
repo=$PWD | |
else | |
home=$HOME |
<?php | |
namespace app\tests\cases\controllers; | |
use app\controllers\UsersController; | |
use app\models\Users; | |
use lithium\action\Request; | |
use lithium\data\Connections; | |
class UsersControllerTest extends \lithium\test\Integration { |
[alias] | |
co = checkout | |
st = status | |
up = pull --rebase | |
chp = cherry-pick | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- | |
latest = for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short)' |
#!/usr/bin/env bash | |
cd /usr/bin | |
rm gmon-linux-amd64 gmon | |
curl -C - -O -L -k github.com/gwoo/gmon/releases/download/v0.2/gmon-linux-amd64 | |
chmod a+x /usr/bin/gmon-linux-amd64 | |
ln -s /usr/bin/gmon-linux-amd64 /usr/bin/gmon | |
touch /etc/gmon.json |