Skip to content

Instantly share code, notes, and snippets.

gst-launch-1.0 \
v4l2src device=/dev/video1 ! video/x-raw,width=864,height=480 ! videoconvert ! \
clockoverlay shaded-background=true time-format="%H:%M:%S" ! vp8enc ! tee name=videoTee \
pulsesrc ! vorbisenc ! tee name=audioTee \
webmmux name=streamMux ! shout2send ip=IP port=PORT password=PASSWORD mount=/tuna.webm \
webmmux name=fileMux ! filesink location=tuna.webm \
audioTee. ! queue ! streamMux.audio_0 \
videoTee. ! queue ! streamMux.video_0 \
audioTee. ! queue ! fileMux.audio_0 \
videoTee. ! queue ! fileMux.video_0
[options]
scroll_on_output = false
scroll_on_keystroke = true
audible_bell = false
mouse_autohide = false
allow_bold = true
dynamic_title = true
urgent_on_bell = true
clickable_url = true
font = monospace 11

Keybase proof

I hereby claim:

  • I am bigeagle on github.
  • I am bigeagle (https://keybase.io/bigeagle) on keybase.
  • I have a public key whose fingerprint is 15CC 6A61 738B 1599 0095 E256 CB67 DA7A 865B AC3A

To claim this, I am signing this object:

#!/usr/bin/env python2
# -*- coding:utf-8 -*-
from __future__ import print_function, division, unicode_literals
from udevedu.utils import invoke
import os
def init():
print("Monitoring Yubikey Remove Event")
@bigeagle
bigeagle / tunet.sh
Last active March 11, 2016 03:50
tunet.sh
#!/bin/bash
USER="username"
PASSWORD="password"
PASSWORD=`echo -n $PASSWORD|md5sum|cut -d' ' -f1`
curl 'https://net.tsinghua.edu.cn/do_login.php' -X 'POST' -H 'Origin: http://net.tsinghua.edu.cn' \
--data "action=login&username=${USER}&password={MD5_HEX}${PASSWORD}&ac_id=1"
@bigeagle
bigeagle / autorenew.ini
Created March 5, 2016 15:30
Let'sencrypt Auto-Renew
email = admin@example.com
domains = d1.example.com,d2.example.com
webroot-path = /home/wwwroot/letsencrypt
@bigeagle
bigeagle / fishroom2danmaku.py
Created February 29, 2016 11:08
Fishroom to TUNA Danmaku
#!/usr/bin/env python2
# -*- coding:utf-8 -*-
from __future__ import print_function, division, unicode_literals
import requests
import hashlib
FISHROOM_TOKEN_ID = ""
FISHROOM_TOKEN_KEY = ""
FISHROOM_ADDR = "https://fishroom.tuna.moe/api/messages"
@bigeagle
bigeagle / conky.conf
Created December 31, 2013 06:09
conky for i3-bar
### Conky configuration file
## Output is printed to the console -> i3bar
# Modified: 27.11.2011 - mseed : http://www.fastlinux.eu
# Modified: 10.09.2012 - Sagar Behere
## No output to X <yes/no>
out_to_x no
## Create own window to draw <yes/no>
#!/usr/bin/env python2
# -*- coding:utf-8 -*-
import tornado.ioloop
import tornado.web
import tornado.gen
import motor
import json
class PersistantHandler(tornado.web.RequestHandler):
object Main extends App{
def primes(nums: Stream[Int]): Stream[Int] =
Stream.cons(nums.head, primes(nums.tail filter (_ % nums.head > 0)))
val p = primes(Stream.from(2))
println(p apply 201314)
}