Skip to content

Instantly share code, notes, and snippets.

@stnly
stnly / nginx.conf
Created May 12, 2019 05:06
nginx-rtmp
daemon off;
error_log logs/error.log debug;
events {
worker_connections 1024;
}
rtmp {
server {

Keybase proof

I hereby claim:

  • I am stnly on github.
  • I am stnly (https://keybase.io/stnly) on keybase.
  • I have a public key ASCA08NAIZmUZ5g5Moyc5iIxkVcKcfVnyu6BVla1ZxbnOQo

To claim this, I am signing this object:

@stnly
stnly / app.rb
Created November 12, 2013 10:24
switcher.
require 'sinatra'
get '/' do
num = Math.random
if num > 0 && num < 0.25
name = `python -e "print "Stanley Tan"`
elsif num > 0.25 && num < 0.5
name = `node -e "console.log("Stanley Tan")"`
elsif num > 0.5 && num < 0.75
name = `ruby -e "puts "Stanley Tan""`
@stnly
stnly / commands.txt
Created May 20, 2013 13:09
Top 100 commands for science!
2483 git
519 yaourt
479 grep
453 ruby
325 gem
300 cd
292 ls
246 ssh
195 sudo
166 scp