[Quick Links] |
Search Site

Site Details

rendered in 0.0426 secs

Captain's Log | Sunday 19th of February 2017

Pok3r programming macro keyboard | poker src shortcut

Toggle to one of the 3 programmable layers, Fn + ",", ".", or "/"
Enter programming mode, Fn + Right Ctrl
Press the key you want to program, in this case you'll press Fn + A
Press the command to assign (type out "h e l l o")
Press the Pn key to save the macro
Exit programming mode, Fn + Right Ctrl again

How to compare files / folders using diff | best way two

diff -rq -x '.git' /home/crabhands/repo/ /home/littledave/repo/
Show me the differences of these two directories, but exclude anything with ".git" in it.

Juniper Junos EX2200-C reset back to factory defaults | ex2200

Baud rate—9600
Flow control—None
Stop bits—1
DCD state—Disregard
cd /config
rm jun*
cd db/config/
rm jun*

issues: not accepting keyboard input
solution: make sure below is configured
F - Hardware Flow Control : No

see what service / process is using a port | listening ports

sudo netstat -tulpn | grep :80
if you run it without sudo, it won't get the service name.

How to change linux into a NAT router with a single interface | one forward rules src

I did the bits in red to get it working on raspberry pi.
modprobe iptable_nat
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
vim /etc/sysctl.conf:
net.ipv4.ip_forward = 1

iptables -A FORWARD -i eth1 -j ACCEPT

Codeigniter (2 at least), how to load and pass data from one controller to another | src CI

and call the following method:
It can also cause things to go tits up, so sometimes it works, others it doesn't.