Create _ext/
and _templates/
subdirectories.
Move edit_on_github.py
into the _ext/
subdirectory.
Move sourcelink.html
into the _templates/
subdirectory.
Add the following after the import sys, os
line
#!/bin/sh | |
set -e | |
COMPILED_BY="Marius Gedminas <[email protected]>" | |
FEATURES= | |
FEATURES="$FEATURES --with-features=huge" # yum, features | |
FEATURES="$FEATURES --enable-multibyte" # vim is *crippled* without this! | |
# (BTW 'big' implies this) | |
FEATURES="$FEATURES --enable-pythoninterp" # most of my plugins use this | |
FEATURES="$FEATURES --enable-rubyinterp" # Command-T wants this |
import subprocess | |
def pipeline(*commands): | |
"""Chain several commands into a pipeline. | |
E.g. to get the equivalent of | |
$ zcat foo | grep bar | less |
#!/usr/bin/python | |
"""Copy published precise PPA packages to lucid. | |
We build a few packages containing scripts (architecture: all), upload them to | |
the PPA targeting the current Ubuntu LTS (precise). But we also want them to | |
be available for the previous LTS (lucid). This script automates the copying | |
process I used to do manually over the web. | |
""" | |
import optparse |
import re | |
from zope.testing.renormalizing import RENormalizing | |
FLOAT_CHECKER = RENormalizing([ | |
(re.compile(r'-?\d+[.]\d+'), | |
lambda m: '%.6g' % float(m.group(0))), | |
]) | |
... DocTestSuite(..., checker=FLOAT_CHECKER) ... |
--- x220-high-temperature.lspci.txt 2013-07-09 15:09:49.935830871 +0200 | |
+++ x220-normal-temperature.lspci.txt 2013-07-10 12:43:18.789197038 +0200 | |
@@ -23,19 +23,20 @@ | |
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ | |
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- | |
Latency: 0 | |
- Interrupt: pin A routed to IRQ 47 | |
+ Interrupt: pin A routed to IRQ 42 | |
Region 0: Memory at f2525000 (64-bit, non-prefetchable) [size=16] | |
Capabilities: <access denied> |
mg@platonas: ~/tmp/vagrantbox $ vagrant ssh | |
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64) | |
* Documentation: https://help.ubuntu.com/ | |
Welcome to your Vagrant-built virtual machine. | |
Last login: Wed May 29 08:18:42 2013 from 10.0.2.2 | |
vagrant@precise64:~$ sudo ngrep . tcp and port 80 | |
interface: eth0 (10.0.2.0/255.255.255.0) | |
filter: (ip or ip6) and ( tcp and port 80 ) | |
match: . |
.tox/ | |
dist/ | |
*.egg-info/ | |
*.fs | |
*.fs.index | |
*.fs.lock | |
*.fs.tmp |
#!/bin/bash | |
if [ "${0##*/}" == "virtual-bootstrap-py3" ]; then | |
python=python3.3 | |
else | |
python=python2.7 | |
fi | |
if [ -n "$(netstat -tnl | grep ':3128 ')" ]; then | |
export http_proxy=http://localhost:3128 | |
echo "Using a local Squid proxy." | |
fi |