I hereby claim:
- I am zazabe on github.
- I am zazabe (https://keybase.io/zazabe) on keybase.
- I have a public key ASC53Rb0v77Cqca-Tg6M1zBLJf6SPQucBEnGwOt2CUavMgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
ip link set wlp4s0 up | |
iw dev wlp4s0 scan | less | |
wpa_passphrase "ssid" "pwd" > /tmp/ssid.conf | |
wpa_supplicant -B -i wlp4s0 -c /tmp/ssid.conf -f /tmp/wpa.log | |
systemctl start systemd-networkd | |
systemctl start dhcpcd | |
ping google.com |
# install archlinux by using antergos live ISO (just to have a GUI with a browser) | |
modprobe brcmfmac | |
# https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#LVM_on_LUKS | |
gdisk | |
# EFI: /dev/sda1 - 550M - EF00 | |
# BOOT: /dev/sda2 - 550M - 8300 | |
# LVM: /dev/sda3 - * - 8E00 |
sudo apt-get install libtbb-dev libmysqlclient-dev libboost-program-options-dev libboost-thread-dev libboost-regex-dev libboost-system-dev libboost-chrono-dev pkg-config cmake build-essential libssl-dev git | |
mkdir install | |
cd install | |
git clone https://github.com/percona/percona-playback | |
cd percona-playback | |
mkdir build_dir | |
cd build_dir | |
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .. | |
sed -i 's#MYSQL_LIB-NOTFOUND#/usr/lib/x86_64-linux-gnu/libmysqlclient.so#g' CMakeCache.txt | |
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .. |
var collections = ["foo", "bar"]; | |
collections.forEach(function (collection) { | |
print(collection + ':' + db[collection].count()); | |
mr = db.runCommand({ | |
"mapreduce" : collection, | |
"map" : function() { | |
for (var key in this) { emit(key, null); } | |
}, | |
"reduce" : function(key, stuff) { return null; }, |
#!/usr/bin/env bash | |
# usage: wait_services service1,serviceN,... [timeout=300] | |
# eg: wait_services mysql,elasticsearch,redis | |
function wait_services { | |
TIMEOUT=${2:-300} | |
echo "Waiting for "${1}" services..." | |
count=0 | |
until ( _test_services "${1}" ) | |
do |
#!/usr/bin/env ruby | |
require 'socket' | |
port = ARGV[0].to_i | |
logfile = ARGV[1].to_s | |
server = TCPServer.new('localhost', port) | |
loop do |
export LESS='-F -X -R -E' | |
export ZSH=$HOME/.oh-my-zsh | |
export EDITOR='vim' | |
ZSH_THEME="zazabe" | |
ENABLE_CORRECTION="true" | |
DISABLE_UNTRACKED_FILES_DIRTY="true" | |
plugins=(git) | |
source $ZSH/oh-my-zsh.sh |
# README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# | |
# In addition, I recommend the | |
# [Tomorrow Night theme](https://github.com/chriskempson/tomorrow-theme) and, if | |
# you're using it on Mac OS X, [iTerm 2](http://www.iterm2.com/) over | |
# Terminal.app - it has significantly better color fidelity. |
var getDeviceData = function() { | |
return navigator.getVRDisplays() | |
.then(function(devices) { | |
var device = devices[0]; | |
var getInfo = function(obj) { | |
var info = {}; | |
for(var name in obj) { | |
if(typeof obj[name] == 'object') { | |
info[name] = getInfo(obj[name]); | |
} else if (typeof obj[name] != 'function') { |