Ubuntu 12.10 setup (rbenv/RVM, Janus, PostgreSQL)
- Some utilities:
sudo apt-get install vim tmux git curl
- Copy/paste from the command line:
# place this file in ~/.config/terminator/config | |
[global_config] | |
title_transmit_bg_color = "#d30102" | |
focus = system | |
[keybindings] | |
reset_clear = <Ctrl>R | |
new_tab = <Ctrl>T | |
split_horiz = <Ctrl><Shift>E | |
split_vert = <Ctrl>E | |
close_term = <Ctrl><Shift>W |
sudo apt-get install vim tmux git curl
I made this because I'm not comfortable relying only on a check of the existence of a process associated with the PID contained in the PID file. I know that exhausting the PID stack is highly unlikely but it's not impossible and I like to make fewer assumptions.
You can spawn Puma with ./spawn.sh
and in another shell, simulate a stop with ./stop.sh
.
After the Puma process stops, a "gate file" gets created, simulating the notification of the end of the process.
Using the gate file it's possible to wait for its creation right after having sent the SIGTERM signal but other type of notifications are possible.
I tested this code on OpenBSD 6.1 amd64.
module Geo | |
class Point | |
attr_accessor :latitude, :longitude | |
def initialize(latitude:, longitude:) | |
self.latitude = latitude | |
self.longitude = longitude | |
end | |
end | |
def self.radians(degrees) |
# place this file in ~/.config/terminator/config | |
[global_config] | |
title_transmit_bg_color = "#d30102" | |
focus = system | |
[keybindings] | |
[profiles] | |
[[default]] | |
palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3" | |
background_color = "#eee8d5" | |
foreground_color = "#002b36" |
# put the following line into ~/.screenrc (create it if it doesn't exist) | |
startup_message off |
id
field with the value "scuolase"id
field is blank instead of containing the value "scuolase"devel ⎋ make webdocs | |
(cd docsite/; make docs) | |
rm -rf htmlout | |
rm -f .buildinfo | |
rm -f *.inv | |
rm -rf *.doctrees | |
Cleaning up minified css files | |
find . -type f -name "*.min.css" -delete | |
Cleaning up byte compiled python stuff | |
find . -regex ".*\.py[co]$" -delete |
devel ⎋ uname -a | |
Darwin titan.local 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64 | |
devel ⎋ ls | |
CHANGELOG.md Makefile ansible-core-sitemap.xml docsite setup.py | |
CODING_GUIDELINES.md README.md bin examples shippable.yml | |
CONTRIBUTING.md RELEASES.txt contrib hacking test | |
COPYING ROADMAP.rst docs lib ticket_stubs | |
MANIFEST.in VERSION docs-api packaging tox.ini | |
devel ⎋ git show --name-status | |
commit 67177105e3c1bc0b0d44c58155c56ae0e4d6fdb2 |
I hereby claim:
To claim this, I am signing this object: