Skip to content

Instantly share code, notes, and snippets.

@Novex
Novex / nginx.conf
Created September 6, 2020 08:18
Old ghetto brb server
# Replace $INPUT_STREAM_KEY,$TWITCH_SERVER,$TWITCH_KEY,$TWITCH_TEST_KEY, and $RTMP_FALLBACK with your actual values
# This doesn’t work super well, sometimes twitch disconnects on brb switch
# Use something like https://github.com/Hakkin/streamRIP instead
daemon off;
worker_processes 1;
error_log /dev/stderr;
events {
worker_connections 1024;
}
@Novex
Novex / Dockerfile
Created March 10, 2020 06:28
h265 over srt -> h264 rtmp push
FROM ubuntu:latest
MAINTAINER Eyevinn Technology <[email protected]>
RUN sed -i 's/archive.ubuntu/jp.archive.ubuntu/g' /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y --force-yes autoconf
RUN apt-get install -y --force-yes automake
RUN apt-get install -y --force-yes build-essential
RUN apt-get install -y --force-yes pkg-config
RUN apt-get install -y --force-yes libtool
RUN apt-get install -y --force-yes wget
@Novex
Novex / api-server.py
Created May 19, 2018 11:53
Sony fdr-x3000 ustream mitm setup
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from http.server import HTTPServer
from http.server import BaseHTTPRequestHandler
import json
class MyHandler(BaseHTTPRequestHandler):
def do_GET(self):
@Novex
Novex / index.md
Created June 18, 2017 00:01
IRL Rig Mk II food for thought

Cycling

Main Cam

  • Head mounted gimbal
  • Shoulder mounted gimbal
  • Chest mounted gimbal
  • Third person main cam mounted on tall seat post behind bike
  • Handlebar mounted gimbal
    • Doesn't work due to vibrations

Front Cam

hotdog:ignite seb$ ignite new SomeApp
🔥 Setting SomeApp on FIRE! 🔥
-----------------------------------------------
( ) (
)\ ) ( ( /( )\ ) * )
(()/( )\ ) )\()) (()/( ` ) /( (
/(_)) (()/( ((_)\ /(_)) ( )(_)) )\
(_)) /(_))_ _((_) (_)) (_(_()) ((_)
|_ _| (_)) __| | \| | |_ _| |_ _| | __|
| | | (_ | | .` | | | | | | _|
@Novex
Novex / repro.md
Last active May 17, 2016 01:10
Github bug: Task progress bar not showing after description updated through API?
  1. Created Pull Request #1 Unedited PR Screen Unedited PR List

  2. Called the API with curl -v -u Novex -X PATCH -d '{"body": "- [ ] An incomplete task"}' https://api.github.com/repos/Novex/TasklistTest/issues/1

* STATE: INIT => CONNECT handle 0x80047718; line 1028 (connection #-5000)
* Hostname was NOT found in DNS cache
*   Trying 192.30.252.127...
* STATE: CONNECT => WAITCONNECT handle 0x80047718; line 1076 (connection #0)
@Novex
Novex / gist:ccbb9aa59a24265b782c
Created December 10, 2014 15:22
zfs disappearing hardlinks docker log
time="2014-12-11T01:01:04+10:00" level="info" msg="+job serveapi(tcp://127.0.0.1:2376)"
time="2014-12-11T01:01:04+10:00" level="debug" msg="[zfs] zfs get all -Hp tank/docker-compressed"
time="2014-12-11T01:01:04+10:00" level="info" msg="Listening for HTTP on tcp (127.0.0.1:2376)"
time="2014-12-11T01:01:04+10:00" level="debug" msg="Registering DELETE, /containers/{name:.*}"
time="2014-12-11T01:01:04+10:00" level="debug" msg="Registering DELETE, /images/{name:.*}"
time="2014-12-11T01:01:04+10:00" level="debug" msg="Registering OPTIONS, "
time="2014-12-11T01:01:04+10:00" level="debug" msg="Registering GET, /events"
time="2014-12-11T01:01:04+10:00" level="debug" msg="Registering GET, /images/search"
time="2014-12-11T01:01:04+10:00" level="debug" msg="Registering GET, /images/get"
time="2014-12-11T01:01:04+10:00" level="debug" msg="Registering GET, /images/{name:.*}/get"
@Novex
Novex / commands.md
Created December 9, 2014 03:54
The mystery of the docker zfs dataset disappearance

Starting with a completely clean environment:

root@ubuntu:/# ls -la /tank/docker-compressed/
total 3
drwxr-xr-x 2 root root 2 Dec  9 13:09 .
drwxr-xr-x 4 root root 4 Dec  8 15:56 ..

root@ubuntu:/# zfs list
NAME                     USED  AVAIL  REFER  MOUNTPOINT
tank                    22.5M  19.5G    32K  /tank
@Novex
Novex / gist:8612549
Created January 25, 2014 06:23
Javascript snippet for comments in the Matasano/Square CTF disassembler
/*
Running this javascript snippet on https://microcorruption.com/cpu/debugger
will allow you to add comments to the Disassembly window. It also backs up
every 10 seconds to local storage and will restore if a backup exists when
first run.
Needs to be run manually on pageload (paste into chrome console) and doesn't
preserve existing breakpoint highlights (so do it before setting them).
Will also wipe out the current PC highlight but this will return next step.