(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
PORTAGE_IONICE_COMMAND="/usr/local/sbin/portage-cgroup \${PID}" |
#!/bin/bash | |
#prints a color text image of a bonsai tree | |
echo -e " &&" | |
echo -e " &&&&&" | |
echo -e " &&&\/& &&&" | |
echo -e " &&|,/ |/& &&" | |
echo -e " &&/ / /_& &&" | |
echo -e " \ { |_____/_&" | |
echo -e " { / / &&&" | |
echo -e " .\`. \\{___\________\/_\}" |
# -------- | |
# Hardware | |
# -------- | |
# Opcode - operational code | |
# Assebly mnemonic - abbreviation for an operation | |
# Instruction Code Format (IA-32) | |
# - Optional instruction prefix | |
# - Operational code |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# Gawk version | |
# Remote | |
grep -v "rem_address" /proc/net/tcp | awk '{x=strtonum("0x"substr($3,index($3,":")-2,2)); for (i=5; i>0; i-=2) x = x"."strtonum("0x"substr($3,i,2))}{print x":"strtonum("0x"substr($3,index($3,":")+1,4))}' | |
# Local | |
grep -v "rem_address" /proc/net/tcp | awk '{x=strtonum("0x"substr($2,index($2,":")-2,2)); for (i=5; i>0; i-=2) x = x"."strtonum("0x"substr($2,i,2))}{print x":"strtonum("0x"substr($2,index($2,":")+1,4))}' | |
# No Gawk | |
# Local | |
grep -v "rem_address" /proc/net/tcp | awk 'function hextodec(str,ret,n,i,k,c){ |
/** Emulate `cmd1 | cmd2 | more` pipeline using recursion. | |
http://stackoverflow.com/questions/20434124/recursive-piping-in-unix-environment | |
*/ | |
#include <signal.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> |
(defun fact(n) | |
(if (<= n 1) | |
1 | |
(* n (fact (- n 1))))) | |
SICP3> (fact 10) | |
0: (FACT 10) | |
1: (FACT 9) | |
2: (FACT 8) | |
3: (FACT 7) | |
4: (FACT 6) |
#IRC Reference
Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.
##The Basics
/join #channel
/part #channel