Skip to content

Instantly share code, notes, and snippets.

@cirrusUK
cirrusUK / .Xresources
Last active April 3, 2024 11:19
termite emulator orange theme and other stuff
! __ ___ __ ___ ___ ___ _ _ _ __ ___ ___ ___
! \ \/ / '__/ _ \/ __|/ _ \| | | | '__/ __/ _ \/ __|
! _ > <| | | __/\__ \ (_) | |_| | | | (_| __/\__ \
!(_)_/\_\_| \___||___/\___/ \__,_|_| \___\___||___/
!
!## Colors
#define S_base03 #191919
#define S_base02 #073642
#define S_base01 #586e75
#define S_base00 #657b83
@edwardrf
edwardrf / gist:a7e8c170571730312d2e
Last active March 31, 2021 05:53
xmodmap config to map caps_lock to mode_switch and map mode_switch + ijkl to up left down right
#!/bin/bash
xmodmap -e "clear lock"
xmodmap -e "keysym Caps_Lock = Mode_switch Mode_switch"
xmodmap -e "keysym i = i I Up Up"
xmodmap -e "keysym k = k K Down Down"
xmodmap -e "keysym j = j J Left Left"
xmodmap -e "keysym l = l L Right Right"
xmodmap -e "keysym u = u U Home Home"
xmodmap -e "keysym o = o O End End"
xmodmap -e "keysym u = y Y Prior Prior"
@endolith
endolith / readme.md
Last active December 27, 2025 21:24
How to stream a webcam to a web browser in Ubuntu

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