Line, Load, Neutral, Ground

Line, Load, Neutral, Ground

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 …

tmux Notes

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 …

LaTeX Notes

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. …

Perl Hash Reference Slices

Working with Perl's references can sometimes be confusing. This document illustrates several ways to efficiently take a slice of a hash reference. Here is a hash reference and an array of keys called @order: my $row = { foo => 'bar', baz => 'blech', one => 'uno', tres => 'three', cuatro => …

git notes

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 …

yum notes

Some notes I kept when I was learning how to use yum. Installing a package that has been excluded The file /etc/yum.conf may contain an 'excludes' line that will disallow updates of any of packages listed. To bypass this, you can comment out those packages in /etc/yum. …

iptables notes

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 …