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
gem list --remote -a --prerelease name_of_gem |
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.
This assumes both machines, server and client, are on the same network and the port that will be used is open for network connections.
Assuming you already have docker installed
vi /lib/systemd/system/docker.service
# Start on recovery mode | |
# Go on terminal | |
$ mount -t msdos /dev/disk0s1 /Volumes/ESP. | |
$ rm -rf /Volumes/ESP/efi/refind | |
# from http://www.rodsbooks.com/refind/installing.html#uninstalling |
SELECT version, json_content, pg_try_advisory_xact_lock(s.id) as locked, s.id as id | |
FROM snapshots s | |
WHERE ar_id = $1 | |
-- from https://github.com/crabzilla/crabzilla/blob/f66e43ca4d7c119a00fab68c48386aa7672b0e95/crabzilla-engine-postgres/src/main/java/io/github/crabzilla/engine/command/CommandController.kt#L48 | |
-- more at https://hashrocket.com/blog/posts/advisory-locks-in-postgres |
map <leader>t :call SendToTmux("clear\ryarn test:unit " . expand('%') . "\r")<cr> |
sudo pacman -S postgresql postgis | |
sudo su postgres -l # or sudo -u postgres -i | |
initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data/' | |
exit | |
sudo systemctl enable --now postgresql.service | |
sudo su postgres -c psql | |
CREATE USER deployer WITH PASSWORD 'eldeployerloco'; |
pacman -S interception-tools interception-caps2esc
Create /etc/interception/udevmon.d/caps2esc.yaml
with the following content:
- JOB: "intercept -g $DEVNODE | caps2esc | uinput -d $DEVNODE"
DEVICE:
EVENTS:
EV_KEY: [KEY_CAPSLOCK, KEY_ESC]
class Smallest | |
def self.resolve(array_size, array_of_numbers) | |
( (1..array_size + 1).to_a - array_of_numbers ).min | |
end | |
end |
http://gmarik.info/blog/2010/10/08/ctags-on-OSX
Snow Leo ships with ctags not suitable for Ruby development. Ie if you try to generate tags recursively, it will error out:
$ ctags R R
ctags: illegal option -
usage: ctags [-BFadtuwvx] [-f tagsfile] file …
$ which ctags
/usr/bin/ctags