tmux shortcuts & cheatsheet
start new:
tmux
start new with session name:
tmux new -s myname
start new:
tmux
start new with session name:
tmux new -s myname
Grr this took hours to figure out. I was trying to install MJPG-streamer and running VLC command lines and all this crap but nothing worked.
First install motion
:
~> sudo apt-get install motion
Then create a config file:
~> mkdir ~/.motion
~> nano ~/.motion/motion.conf
Here's a list of mildly interesting things about the C language that I learned mostly by consuming Clang's ASTs. Although surprises are getting sparser, I might continue to update this document over time.
There are many more mildly interesting features of C++, but the language is literally known for being weird, whereas C is usually considered smaller and simpler, so this is (almost) only about C.
struct foo {
struct bar {
int x;
while { | |
let x = foo(); | |
bar(x); | |
x != 0 | |
} {} | |
Ubuntu 16.04
mkdir ~/other
cd ~/other
git clone https://github.com/cc65/cc65
cd cc65
make
########################################################################## | |
## runscad.py | |
## | |
## Run an openscad file once or n times and save shape output to file(s) | |
## | |
## by Runsun Pan (2015.9.25) | |
###########################################3############################## | |
import sys, os, re | |
narg = len(sys.argv) |
package main | |
import "math/big" | |
import "fmt" | |
import "time" | |
func main() { | |
fmt.Printf("Hello, world.\n") | |
start := time.Now() |