To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
trait RestControllerTrait { | |
public function index() { | |
$model = self::MODEL; |
SIPp Box | |
1. Download and Modify SIPp to auto respond always and include OPTIONS packet as well (-aa broken?), edit src/call.cpp: | |
call::T_AutoMode call::checkAutomaticResponseMode(char * P_recv) | |
{ | |
if (strcmp(P_recv, "BYE")==0) { | |
return E_AM_UNEXP_BYE; | |
} else if (strcmp(P_recv, "CANCEL") == 0) { | |
return E_AM_UNEXP_CANCEL; | |
} else if (strcmp(P_recv, "PING") == 0) { |
# create a 4G swap file at /swapfile | |
sudo fallocate -l 4G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
# Make the Swap File Permanent | |
sudo echo "/swapfile none swap sw 0 0" >> /etc/fstab | |
# set swappiness to 10 |
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
XMLReader
for Ease of Parsing0.1.12
maintenance release with fixes.
0.1.11
maintenance release with fixes. added XMLReader::CDATA
and
XMLReader::WHITESPACE
node support for XMLWritingIteration
. added
rsync (Everyone seems to like -z, but it is much slower for me)
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2275613/hack.sh | sh | |
# |