Skip to content

Instantly share code, notes, and snippets.

View DrSensor's full-sized avatar

૮༼⚆︿⚆༽つ DrSensor

View GitHub Profile
import tweepy, json, time, sys
auth = tweepy.OAuth1UserHandler(
<api keys here>
)
api = tweepy.API(auth)
d = json.loads(open(sys.argv[1]).read().split("=", 1)[1])
# with sound and file
gst-launch-1.0 uridecodebin uri=file:///home/dirk/Videos/Clouds_67_Timelapse.mp4 ! video/x-raw,width=1280,height=720 ! queue ! x264enc threads=0 bitrate=400 tune=zerolatency key-int-max=30 ! queue ! flvmux name=flvmux ! queue ! rtmpsink location=rtmp://live-fra.twitch.tv/app/$APIKEY audiotestsrc ! faac ! flvmux.
@DrSensor
DrSensor / nu.toml
Last active August 12, 2020 23:11 — forked from mborejdo/gist:65ddf0622dff641f2dab9e54167c11ee
autojump in nushell
edit_mode = "emacs"
use_starship = false
rm_always_trash = true
history_size = 100000
completion_mode = "circular"
disable_table_indexes = false
header_align = "l"
header_color = "c"
header_bold = true
pivot_mode = "auto"
@DrSensor
DrSensor / EventListener.d.ts
Created December 22, 2018 17:55 — forked from rsms/EventListener.d.ts
Better EventEmitter TypeScript interface
export class EventEmitter<Events, K = keyof Events|symbol> {
addListener(event: K, listener: (...args: any[]) => void): this;
on(event: K, listener: (...args: any[]) => void): this;
once(event: K, listener: (...args: any[]) => void): this;
removeListener(event: K, listener: (...args: any[]) => void): this;
removeAllListeners(event?: K): this;
setMaxListeners(n: number): this;
getMaxListeners(): number;
listeners(event: K): Function[];
emit(event: K, ...args: any[]): boolean;
@DrSensor
DrSensor / xorg.conf
Created August 6, 2018 13:47 — forked from emtudo/xorg.conf
Travamento com vídeo Ubuntu 18.04: editar ou criar /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"