Skip to content

Instantly share code, notes, and snippets.

View jbochi's full-sized avatar

Juarez Bochi jbochi

View GitHub Profile
@jbochi
jbochi / hlsclient_input_webm.json
Last active June 2, 2016 19:35 — forked from hltbra/hlsclient_input_v2.json
New input JSON for hlsclient
{
"streams": {
"Nasa-high": {
"input-path": "/msfc/Wifi.m3u8",
"servers": ["http://liveips.nasa.gov.edgesuite.net"],
"bandwidth": 1080434
}
},
"actions": [
@jbochi
jbochi / pascal.py
Created November 21, 2012 23:01 — forked from hltbra/pascal.py
Pascal triangule using recursion
def print_pascal_triangle(n_lines):
for row in xrange(n_lines):
for col in xrange(row + 1):
print pascal(row, col),
print
def pascal(row, col):
if col == 0 or row == col:
return 1
#!/bin/bash
#
# (1) copy to: ~/bin/ssh-host-color
# (2) set: alias ssh=~/bin/ssh-host-color
#
# Inspired from http://talkfast.org/2011/01/10/ssh-host-color
# Fork from https://gist.github.com/773849
#
set_term_bgcolor(){