(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the \
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)Mac OS X 10.9.2, Vagrant 1.5.1, VMWare Fusion 6.0.2 | |
I had some intense difficulties getting this all to work. The VMs would boot | |
fine with gui=true, but then would fail as soon as I turned that off. Yet when | |
they failed, they were actually running just fine! I could ssh in, but neither | |
vagrant nor vmrun could find the running VMs! You would think that it would | |
give better errors, but no. | |
First off, most boxes you find online will be using the VMWare configuration 9, | |
which will only boot if you have gui=true the first boot, so you can upgrade it |
#!/usr/bin/env bash | |
if [ $# -eq 0 ]; then | |
printf 1 "Usage: $(basename $0) [build-args [-- run-args [-- cmd-args] ] ]" | |
printf 1 " NOTE!!! the -rm-flag is hardcoded for build!" | |
fi | |
BUILD_ARG=() | |
RUN_ARG=() | |
CMD_ARG=() |
# Install ARCH Linux with encrypted file-system and UEFI | |
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
# Download the archiso image from https://www.archlinux.org/ | |
# Copy to a usb-drive | |
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
# Set swedish keymap |
This configuration is not maintained anymore. You should think twice before using it, Breaking change and security issue will likely eventually happens as any abandonned project.
-- updated for luvit 2 | |
local ffi = require('ffi') | |
local bit = require('bit') | |
local uv = require('uv') | |
local timer = require('timer') | |
local Object = require('core').Object | |
local utils = require('utils') | |
local libcurl = ffi.load('libcurl') |
/key bind meta-ctrl-I /go | |
/key unbind ctrl-W | |
/key bind ctrl-Wl /window right | |
/key bind ctrl-Wh /window left | |
/key bind ctrl-Wj /window down | |
/key bind ctrl-Wk /window up | |
/key bind ctrl-Wmeta2-C /window right |
I've never made the frosting. It's too rich. | |
Use "PAM with flour" baking spray. | |
Milky Way Pound cake | |
6 (2.15 ounce) Milky Way Bars | |
1 cup butter, divided | |
2 cups sugar | |
4 eggs |
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 |