Skip to content

Instantly share code, notes, and snippets.

View stefanor's full-sized avatar

Stefano Rivera stefanor

View GitHub Profile
X:1
T:Lettuce Turnip the Beet
M:4/4
L:1/4
K:C
V:1
cAB2 | bBe2 | AGE2 | F2Ez ||
V:2 octave=-1
z4 | e3z | G3z | G3z ||
@stefanor
stefanor / sh.vim
Created October 24, 2012 11:46
vim sh filetype
" Vim filetype plugin file
" Language: sh
" Maintainer: Dan Sharp <dwsharp at users dot sourceforge dot net>
" Last Changed: 20 Jan 2009
" URL: http://dwsharp.users.sourceforge.net/vim/ftplugin
if exists("b:did_ftplugin") | finish | endif
let b:did_ftplugin = 1
" Make sure the continuation lines below do not cause problems in
# final_package, package, min_rev, max_rev
('python-pysnmp4', 'pysnmp', None, 278),
('python-pysnmp4', 'pysnmp4', 279, 513),
('python-pysnmp4', 'python-pysnmp4', 514, None),
('genshi', 'markup', None, 1463),
('genshi', 'genshi', 1464, None),
# Not actually a rename, but python-cherrypy is gone
('cherrypy3', 'python-cherrypy', None, 1646),
('cherrypy3', 'cherrypy3', 1647, None),
('python-decorator', 'decorator', None, 2111),
@stefanor
stefanor / pycon-wifi.py
Last active August 29, 2015 14:18
PyCon Wifi
#!/usr/bin/env python
import argparse
import logging
import platform
import subprocess
import time
import requests
from requests.exceptions import ConnectionError, ReadTimeout
def relocateable_ve(ve_dir):
log.debug('Making virtualenv relocatable')
virtualenv.make_environment_relocatable(ve_dir)
# Make activate relocatable, using approach taken in
# https://github.com/pypa/virtualenv/pull/236
activate = []
with open(os.path.join(ve_dir, 'bin', 'activate')) as f:
for line in f:
line = line.strip()
======================================================================
FAIL: CheckOpcodeCount (sqlite3.test.hooks.ProgressTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/«BUILDDIR»/pypy-2.3+dfsg/lib-python/2.7/sqlite3/test/hooks.py", line 165, in CheckOpcodeCount
self.assertTrue(first_count > second_count)
AssertionError: False is not true
----------------------------------------------------------------------
Ran 233 tests in 0.469s