(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
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 |
local random = math.random | |
local function uuid() | |
local template ='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx' | |
return string.gsub(template, '[xy]', function (c) | |
local v = (c == 'x') and random(0, 0xf) or random(8, 0xb) | |
return string.format('%x', v) | |
end) | |
end |
# how to set up the virtualenv used in this | |
# First move org.lolrus.ipython-notebook.plist to ~/Library/LaunchAgents | |
NOTEBOOK_DIR=${HOME}/notebook | |
brew install zmq | |
which virtualenv > /dev/null || sudo easy_install virtualenv # easiest to install virtualenv this way if you dont have it |
This is my constantly updated CS:GO autoexec config. Changelogs can be found under revisions here
Put autoexec.cfg in ...\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg
or take what you want from it and add to your autoexec config!
After the Wild West Simulator 2015 update, video.txt needs to be put in ...\Steam\userdata\<Steam3 ID>\730\local\cfg
function 4chan() { | |
if [[ $# -ne 1 ]] | |
then | |
echo 'No URL specified! Give the URL to the thread as the ONLY argument' | |
return 1 | |
fi | |
# This should look something like: g/thread/73097964 | |
urlPrimative=$(grep -o '[0-9a-zA-Z]\{1,4\}/thread/[0-9]*' <<< $1) | |
<?php | |
function pingMCServer($server,$port=25565,$timeout=2){ | |
$socket=socket_create(AF_INET,SOCK_STREAM,getprotobyname('tcp')); // set up socket holder | |
socket_connect($socket,$server,$port); // connect to minecraft server on port 25565 | |
socket_send($socket,chr(254).chr(1),2,null); // send 0xFE 01 -- tells the server we want pinglist info | |
socket_recv($socket,$buf,3,null); // first 3 bytes indicate the len of the reply. not necessary but i'm not one for hacky socket read loops | |
$buf=substr($buf,1,2); // always pads it with 0xFF to indicate an EOF message | |
$len=unpack('n',$buf); // gives us 1/2 the length of the reply | |
socket_recv($socket,$buf,$len[1]*2,null); // read $len*2 bytes and hang u[ | |
$data=explode(chr(0).chr(0),$buf); // explode on nul-dubs |
#!/bin/sh | |
# -*- sh -*- | |
: << =cut | |
=head1 NAME | |
ssh_invalid - Plugin to measure invalid ssh user. | |
=head1 AUTHOR |
# ignore everything | |
* | |
!.gitignore | |
# except PKGBUILD needed files | |
!PKGBUILD | |
!*.install | |
!ChangeLog | |
# common wing-man files |