Skip to content

Instantly share code, notes, and snippets.

View jerem's full-sized avatar

Jérémy Bethmont jerem

View GitHub Profile
Gist to hold Hass images.
@jerem
jerem / tv.xml
Last active December 30, 2019 10:18
<tv source-info-url="http://www.schedulesdirect.org/" source-info-name="Schedules Direct" generator-info-name="XMLTV/$Id: tv_grab_na_dd.in,v 1.70 2008/03/03 15:21:41 rmeden Exp $" generator-info-url="http://www.xmltv.org/">
<channel id="I10436.labs.zap2it.com">
<display-name>TV5 Monde Asie</display-name>
</channel>
<programme start="20191230003000 -0600" stop="2020015010000 -0600" channel="I10436.labs.zap2it.com">
<title lang="en">NOW on PBS</title>
<desc lang="en">Jordan's Queen Rania has made job creation a priority to help curb the staggering unemployment rates among youths in the Middle East.</desc>
<date>20191230</date>
<category lang="en">Newsmagazine</category>
</programme>

Keybase proof

I hereby claim:

  • I am jerem on github.
  • I am jerem (https://keybase.io/jerem) on keybase.
  • I have a public key whose fingerprint is D0EB C74F 9940 21E5 E82B BCCA 42A1 BCF7 6298 4EE4

To claim this, I am signing this object:

@jerem
jerem / timeit_decorator.py
Created January 17, 2014 11:01
timeit decorator
from timeit import Timer
def timeit(func):
def st_func(*args, **keyArgs):
result = list()
def my_func():
result.append(func(*args, **keyArgs))
t = Timer(my_func)
print t.timeit(number=10)
return result[0]
#!/system/bin/sh
chown system.wifi /data/misc/wifi/wpa_supplicant.conf
@jerem
jerem / gist:6332286
Created August 25, 2013 06:08
MK802 III bootlog
DDR Version 1.00 20120529
In
DDR3
freq
300MHz
config state
pctl
phy
mem
@jerem
jerem / gist:6256670
Created August 17, 2013 12:24
Clean all the log on a system.
sudo find /var/log -type f -exec sh -c 'echo -n "" > "{}"' \;
@jerem
jerem / dbproxy.py
Created January 8, 2013 15:29
This is a sample code that shows how to use an HTTP proxy with dropbox sdk for Python.
# Include the Dropbox SDK libraries
import httplib
from dropbox import client, rest, session
# Proxy settings
HTTP_PROXY_HOST = '127.0.0.1'
HTTP_PROXY_PORT = 8888
# Get your app key and secret from the Dropbox developer website
APP_KEY = 'XXXXX'
@jerem
jerem / s3delete.py
Last active October 9, 2015 10:28
A python/gevent script to quickly delete a very large Amazon S3 bucket.
#!/usr/bin/env python
import gevent.monkey
gevent.monkey.patch_all()
import sys
import optparse
import gevent
from boto.s3.connection import S3Connection
@jerem
jerem / bug.js
Created March 2, 2012 17:56
Mongoose array bug
var mongoose = require('mongoose');
var TestSchema = new mongoose.Schema({
a : Array,
s : String,
n : Number
});
var Test = mongoose.model('Test', TestSchema);
mongoose.connection.once('open', function() {