I hereby claim:
- I am dannyzen on github.
- I am dannyzen (https://keybase.io/dannyzen) on keybase.
- I have a public key ASBlIrm2SofY6eWYSMDn6qYXigZzZ77yiNF9efs27VwVSQo
To claim this, I am signing this object:
{ | |
"title":"São Paulo, Brazil", | |
"date":"2019-07-30T07:23:09-00:00", | |
"link":"https://www.hebcal.com/shabbat/?geonameid=3448439;m=50;maj=on;min=on;mod=on;mf=on;ss=on;nx=on;c=on;geo=geoname", | |
"location":{ | |
"tzid":"America/Sao_Paulo", | |
"geonameid":3448439, | |
"latitude":-23.5475, | |
"country":"Brazil", | |
"admin1":"São Paulo", |
# Imports the Google Cloud client library | |
from google.cloud import storage | |
# Instantiates a client | |
storage_client = storage.Client() | |
count = 0 | |
total = 165 | |
while (count < total): | |
# Might want to customize your bucket name below. Small tip of the hat to NBA Jam |
I hereby claim:
To claim this, I am signing this object:
change these files in the appropriate lines from 1024 to your memory requirement. | |
var/vcap/data/jobs/cloud_controller_worker/fake-job-template-version-adb288e9274353eed4d7a0c13ccd4fffd6080c8a/config/cloud_controller_ng.yml | |
51:default_app_memory: 1024 | |
var/vcap/data/jobs/cloud_controller_clock/fake-job-template-version-adb288e9274353eed4d7a0c13ccd4fffd6080c8a/config/cloud_controller_ng.yml | |
55:default_app_memory: 1024 | |
var/vcap/data/jobs/cloud_controller_ng/fake-job-template-version-adb288e9274353eed4d7a0c13ccd4fffd6080c8a/config/cloud_controller_ng.yml | |
51:default_app_memory: 1024 |
[ 1258.635] (WW) NVIDIA(GPU-0): for mode "720x576". | |
[ 1421.672] (EE) | |
[ 1421.672] (EE) Backtrace: | |
[ 1421.672] (EE) 0: /usr/bin/X (xorg_backtrace+0x56) [0x7f9972239e96] | |
[ 1421.672] (EE) 1: /usr/bin/X (0x7f9972083000+0x1bb099) [0x7f997223e099] | |
[ 1421.672] (EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (0x7f996fdb7000+0x36eb0) [0x7f996fdedeb0] | |
[ 1421.672] (EE) 3: /usr/bin/X (0x7f9972083000+0x53d7f) [0x7f99720d6d7f] | |
[ 1421.672] (EE) 4: /usr/bin/X (0x7f9972083000+0x571c7) [0x7f99720da1c7] | |
[ 1421.672] (EE) 5: /usr/bin/X (0x7f9972083000+0x5b3d6) [0x7f99720de3d6] | |
[ 1421.672] (EE) 6: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf5) [0x7f996fdd8ec5] |
def helloWorld(): | |
print "Hello World" |
import csv | |
import sys | |
import json | |
#Add the CSV headers into the fieldnames array | |
fieldnames=['changethis','changethis2','changethis3'] | |
def convert(filename): | |
csv_filename = filename[0] | |
print "Opening CSV: ",csv_filename |
sailthru@ec2ev-qa1:/tmp/ $ tail -f proc_stats_generate.log [13:24:23] | |
[2013-10-30 13:24:30] "{\"id\":999011417,\"type\":\"blast\",\"domain\":{\"sailthru_com\":{\"count\":1,\"name\":\"sailthru.com\"},\"mailinator_com\":{\"count\":19,\"name\":\"mailinator.com\"}},\"subject\":{\"2088658087\":{\"count\":20,\"name\":\"4zikqc5973\"}},\"urls\":{\"1850123674\":{\"count\":40,\"name\":\"http:\\\/\\\/www.dannyrosen.net\"},\"672090310\":{\"count\":20,\"name\":\"http:\\\/\\\/facebook.com\\\/dannyzen\"},\"1587574693\":{\"count\":20,\"name\":\"http:\\\/\\\/www.google.com\"}},\"update\":{\"$set\":{\"cid\":3068,\"list\":\"100_person_list\",\"name\":\"4zikqc5973\",\"stat\":\"sent\",\"smtp.null.name\":\"null\"},\"$inc\":{\"enga.disengaged.count\":1,\"enga.dormant.count\":19,\"snup.201310.count\":19,\"snup.201307.count\":1,\"smtp.null.count\":20,\"tot.count\":20},\"$unset\":[]},\"time\":1383153870}" | |
Stats_Preallocate was not called on blast 999011417 before Stats_Gen |
import BaseHTTPServer as B | |
import SimpleHTTPServer as S | |
import sys | |
class myServer(B.HTTPServer): | |
def handle_error(self, request, client_address): | |
print 'handle_error', request, client_address | |
raise | |
class myHandler(S.SimpleHTTPRequestHandler): |
import urllib2, feedparser | |
pwdmgr = urllib2.HTTPPasswordMgrWithDefaultRealm() | |
pwdmgr.add_password("New mail feed", 'http://mail.google.com/', username, password) | |
auth = urllib2.HTTPBasicAuthHandler(pwdmgr) | |
opener = urllib2.build_opener(auth) | |
data = opener.open('http://mail.google.com/mail/feed/atom') | |
d = feedparser.parse(data) | |
print d |