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
tutorials = [('Mining Social Web APIs with IPython Notebook', 'Novice'), | |
('A hands-on introduction to Python for beginning programmers', 'Novice'), | |
('How to formulate a (science) problem and analyze it using Python code', 'Novice'), | |
('0 to 00111100 with web2py', 'Novice'), | |
('Getting Started with Django, a crash course', 'Novice'), | |
('Django for Web Designers and Front End Developers ', 'Novice'), | |
('Python 3/2 Web Development with Pyramid', 'Novice'), | |
('Introduction to game programming', 'Novice'), | |
('Hands-on Beginning Python', 'Novice'), | |
('TDD for web applications, from scratch', 'Novice'), |
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
<local>,0.0.0.0/0,*.dev,*bj*.*,*51*.*,*91*.*,*ali*.*,*.cn*.*,*.cn,*china*.*,*0-6.com,*000dn.com,*000wan.com,*007.mx,*007ok.cc,*00base.com,*010lm.com,*010time.com,*016788.com,*01happy.com,*01hr.com,*01lm.com,*01shangwu.com,*020883.com,*021025.com,*022net.com,*022show.com,*023dg.com,*025tata.com,*02753.com,*027art.com,*028search.com,*028share.com,*029gc.net,*0371gt.com,*0394dk.com,*03964.com,*03wx.com,*05120512.com,*0512118114.com,*0512kd.com,*0531.com,*0532gc.com,*0532gcw.com,*0551bike.com,*0566che.com,*0569.com,*0574shop.com,*0577bike.com,*0577men.com,*0577net.com,*0577wh.com,*057s.com,*0592sl.com,*0595.com,*0598yu.com,*05jk.com,*05sun.com,*05wan.com,*060s.com,*061100.com,*0622jj.com,*06621.com,*0669.cc,*06climate.com,*07073.com,*0713hb.com,*071711.com,*0737mp.com,*075501.com,*0817cg.com,*08279.com,*0830bbs.com,*0931007.com,*09dy.com,*0x110.com,*1000chi.com,*1000eb.com,*10010.com,*10010js.com,*10086.com,*100che.org,*100ksw.com,*100ksw.net,*100tm.com,*100ydy.com,*100ye.com,*100yue.com,*10628106.com,*107cine.co |
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
2014/01/02 10:13:19 Packer Version: 0.5.1 dev f325581bc241b750d606982cdf9eb9a65e7e8d90+CHANGES | |
2014/01/02 10:13:19 Packer Target OS/Arch: linux amd64 | |
2014/01/02 10:13:19 Built with Go Version: go1.2 | |
2014/01/02 10:13:19 Detected home directory from env var: /root | |
2014/01/02 10:13:19 Attempting to open config file: /root/.packerconfig | |
2014/01/02 10:13:19 File doesn't exist, but doesn't need to. Ignoring. | |
2014/01/02 10:13:19 Packer config: &{PluginMinPort:0 PluginMaxPort:0 Builders:map[amazon-chroot:packer-builder-amazon-chroot amazon-instance:packer-builder-amazon-instance digitalocean:packer-builder-digitalocean docker:packer-builder-docker googlecompute:packer-builder-googlecompute openstack:packer-builder-openstack qemu:packer-builder-qemu virtualbox-iso:packer-builder-virtualbox-iso virtualbox-ovf:packer-builder-virtualbox-ovf vmware-iso:packer-builder-vmware-iso vmware-vmx:packer-builder-vmware-vmx amazon-ebs:packer-builder-amazon-ebs] Commands:map[build:packer-command-build fix:packer-command-fix inspect: |
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 __future__ import print_function | |
import glob | |
import os | |
import re | |
old_method_syntax = re.compile('[A-Z][\w\d_]+\.[\w\d_]+\(self') | |
cwd = os.getcwd() | |
files = glob.glob(os.path.join(cwd, '*.py')) |
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
(gdb) py-bt | |
#3 (frame information optimized out) | |
#7 (frame information optimized out) | |
#11 (frame information optimized out) | |
#15 (frame information optimized out) | |
#19 (frame information optimized out) | |
#23 (frame information optimized out) | |
#27 (frame information optimized out) | |
(gdb) py-list |
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
# A Github Webhook endpoint that triggers Koji builds | |
# | |
# Add a Webhook to your repo and point it to where you run this. | |
# | |
# It builds packages when you add #kojibuild to the commit message. | |
# If you add #scratch it will scratch build | |
# | |
# It assumes that you have a folder per package + version folder like: | |
# jetty/8.1.9/jetty-8.1.9.spec | |
# |
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
""" | |
This file contains code that, when run on Python 2.7.5 or earlier, creates | |
a string that should not exist: u'\Udeadbeef'. That's a single "character" | |
that's illegal in Python because it's outside the valid Unicode range. | |
It then uses it to crash various things in the Python standard library and | |
corrupt a database. | |
On Python 3... well, this file is full of syntax errors on Python 3. But | |
if you were to change the print statements and byte literals and stuff: |
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
# Patches on Boto Retry Strategy | |
""" | |
Handles the check whether it need to retry or not | |
""" | |
from __future__ import with_statement | |
import json | |
import boto | |
from xml.dom.minidom import parseString |
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 os | |
import sys | |
import base64 | |
import simplejson | |
def usage(): | |
print >> sys.stderr, 'Usage: %s {f_userdata} {f_spot_configuration}' % ( | |
os.path.basename(sys.argv[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
#!/usr/bin/env python | |
# | |
import os | |
def test(records): | |
pass | |
# vim: tabstop=4 shiftwidth=4 softtabstop=4 |