I re-learned some electrical terms today that may be useful later when working with GFCI circuits.
- Line (usually black, also known as “hot”): comes in from the electrical panel
- Load (usually black, sometimes red): is a continuation of line and goes out to downstream devices. Non-GFCI circuits will not have a load.
- Neutral (usually white): completes the AC circuit and carries excess current to ground
- Ground (bare): carries any inadvertent current away from the circuit in case of a fault
The catchphrase is “line in, load out”.
scroll mode
tmux
has a scroll mode where you can use page up/page down and arrows to scroll the buffer back. To enter scroll mode, C-b <page up>
. To get out of scroll mode, <Esc>
. Also C-b [
turns on scroll mode.
sharing
Poor man’s screen sharing:
$ tmux -S /tmp/tmux-shared new-session -s session-name
(detach)
$ chmod 777 /tmp/tmux-shared
(attach)
Person 2 attaches:
$ tmux -S /tmp/tmux-shared attach-session -s session-name
Here are a few notes I’ve made when using LaTeX:
Hyphens
For two literal hyphens, separate them with {}
, for example:
The \texttt{-{}-delete} flag should be set.
Underscores
Underscores are special; escape them if you want to use them literally:
Check the \texttt{authorized\_keys} file.
Some notes about git
. As with all my technical posts, some or all of this may be out of date. Consider it, then, courage to believe that there may be a solution to your problem in terms you can understand.
I have a local repository I want to make into a remote repository
Here’s our local repository:
local $ git init .
local $ git add .
local $ git commit . -m "- initial commit"
Nice. Now make an empty repo on the remote server:
Here are some notes I keep for myself when I play with iptables
(I don’t use it often enough to remember how it works):
List all rules
# iptables -L
See the rules and their numbers
# service iptables status
Delete a rule
# iptables -D CHAIN NUM
E.g.:
# iptables -D INPUT 12
Add a new rule at the bottom of the chain
# iptables -A INPUT -i eth0 -p tcp --dport 8888 -j ACCEPT
Insert a new rule in a particular place
This inserts a rule in position 6; the rule that was formerly in 6th position will be bumped down (and all rules below it):