Skip to content

Instantly share code, notes, and snippets.

@lucasw
lucasw / linux_nes.md
Last active Oct 30, 2021
Linux Nintendo NES development
View linux_nes.md

Ubuntu 16.04

install cc65

mkdir ~/other
cd ~/other
git clone https://github.com/cc65/cc65
cd cc65
make
@rdp
rdp / rat.go
Created Jun 21, 2016
golang use rational numbers example
View rat.go
package main
import "math/big"
import "fmt"
import "time"
func main() {
fmt.Printf("Hello, world.\n")
start := time.Now()
@runsun
runsun / runscad.py
Created Sep 27, 2015
Run an openscad file once or n times and save shape output to file(s)
View runscad.py
##########################################################################
## 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)
@huonw
huonw / blackmagic.rs
Created Jan 15, 2014
do-while loops in Rust
View blackmagic.rs
while {
let x = foo();
bar(x);
x != 0
} {}
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@endolith
endolith / readme.md
Last active Sep 19, 2022
How to stream a webcam to a web browser in Ubuntu
View readme.md

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