Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #~/.mutt/aliases | |
| alias nick Nicholas Levandoski <nick.levandoski@auglug.org> | |
| alias tim Timothy Pitt <timothy.pitt@auglug.org> | |
| alias steven Steven Jackson <sjackson@auglug.org> | |
| alias kaleb Kaleb Hornsby <kaleb.hornsby@auglug.org> | |
| alias alug-admin nick, tim, steven |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/bin/bash | |
| # tmux requires unrecognized OSC sequences to be wrapped with DCS tmux; | |
| # <sequence> ST, and for all ESCs in <sequence> to be replaced with ESC ESC. It | |
| # only accepts ESC backslash for ST. | |
| function print_osc() { | |
| if [[ -n $TERM ]] ; then | |
| printf "\033Ptmux;\033\033]" | |
| else | |
| printf "\033]" |
Streaming your Linux desktop to Youtube and Twitch via Nvidia's NVENC and VAAPI:
Considerations to take when live streaming:
The following best practice observations apply when using a hardware-based encoder for live streaming to any platform:
Set the buffer size (-bufsize:v) equal to the target bitrate (-b:v). You want to ensure that you're encoding in CBR mode.
Set up the encoders as shown:
| const s:pi2 = 2 * 3.14159265 | |
| " pixel_ratio means the ratio of the character size. | |
| const s:pixel_ratio = 2.0 / 1.0 | |
| " ColorWheel draws a color wheel | |
| function! ColorWheel() abort | |
| const [center_x, center_y] = [&columns / 2.0, &lines / 2.0] | |
| const radius = min([&columns, &lines]) / 8.0 * 3 | |
| " loop over the distance multiplied by pixel_ratio in the horizontal | |
| " direction because the character has a rectangular shape. |