Start, and stop, manually:
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
pg_ctl -D /usr/local/var/postgres stop -s -m fastOr let launchd start the server at login or boot:
| var hypotrochoid = require('hypotrochoid') | |
| , d3 = require('d3') | |
| var ranged = range(0, 500, 1) | |
| var points = ranged.map(function(t) { | |
| return hypotrochoid(70, [50, 70, 82.5], t) | |
| }) | |
| function range(start, end, inc) { | |
| var a = [] |
| # | |
| #!optional | |
| #!rest | |
| #( | |
| #\ | |
| #\altmode | |
| #\backnext | |
| #\backspace | |
| #\call | |
| #\linefeed |
On machines with a single sysadmin where the root account is enabled, it might still be convenient to allow root login through key pairing only by disabling remote password login for root. To this end, /etc/sshd_config should have the fololwing lines:
PermitRootLogin without-password
PubkeyAuthentication yes
| Edit `/etc/hostname` and then run `/etc/init.d/hostname.sh start` |
| #!/usr/bin/env bb | |
| (require '[clojure.tools.cli :refer [parse-opts]]) | |
| (def generator (java.security.SecureRandom.)) | |
| (defn gen-pass [alphabet length] | |
| (let [bound (count alphabet) | |
| idxs (repeatedly length #(.nextInt generator bound))] | |
| (apply str (map alphabet idxs)))) |
Iptables(8) TARPIT is a useful security mechanism that can slow down or stop attacks on a network. If everyone used TARPIT to block attackers, in theory their resources would be exhausted as their connection attempts would be delayed, which would discouraged people from attempting unauthorized access. Here's a brief description of how TARPIT works:
To achieve this tar pit state, iptables accepts the incoming TCP/IP connection and then switches to a zero-byte window. This forces the attacker's system to stop sending data, rather like the effect of pressing Ctrl-S on a terminal. Any attempts by the attacker to close the connection are ignored, so the connection remains active and typically times out after only 12–24 minutes. This consumes resources on the attacker's system but not
| {{ if volume!="" }} | |
| {{ if itemType=="book"}} | |
| {{ title truncate="150"}} | |
| {{volume prefix= " " suffix=" – "}} | |
| {{ else }} | |
| {{ title truncate="150" suffix=" – "}} | |
| {{ endif }} | |
| {{ else }} | |
| {{ title truncate="150" suffic=" – "}} | |
| {{ endif}} |