This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gist to hold Hass images. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
chown system.wifi /data/misc/wifi/wpa_supplicant.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DDR Version 1.00 20120529 | |
In | |
DDR3 | |
freq | |
300MHz | |
config state | |
pctl | |
phy | |
mem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo find /var/log -type f -exec sh -c 'echo -n "" > "{}"' \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import gevent.monkey | |
gevent.monkey.patch_all() | |
import sys | |
import optparse | |
import gevent | |
from boto.s3.connection import S3Connection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mongoose = require('mongoose') | |
, Schema = mongoose.Schema | |
mongoose.connect('localhost', 'testing_tojsonWithVirtuals'); | |
var PersonSchema = new Schema({ | |
name : String | |
, age : Number | |
}); |
NewerOlder