Skip to content

Instantly share code, notes, and snippets.

View JNRowe's full-sized avatar

James Rowe JNRowe

View GitHub Profile
@JNRowe
JNRowe / pypackages-3.7.patch
Created December 6, 2018 02:21
kushaldas’s pypackages cpython branch mashed in to Python 3.7 for *easier* testing
diff --git i/Include/pystate.h w/Include/pystate.h
index 29d7148..7446df7 100644
--- i/Include/pystate.h
+++ w/Include/pystate.h
@@ -62,6 +62,8 @@ typedef struct {
wchar_t *home; /* PYTHONHOME environment variable,
see also Py_SetPythonHome(). */
+ wchar_t *pypackages_path; /* For __pypackages__ directory */
+

Keybase proof

I hereby claim:

  • I am JNRowe on github.
  • I am jnrowe (https://keybase.io/jnrowe) on keybase.
  • I have a public key whose fingerprint is 3ACF 2658 BC4D 35F6 E470 0DAF FDA3 C542 ABC6 8E07

To claim this, I am signing this object:

@JNRowe
JNRowe / rc.moon
Created August 30, 2013 11:28
awesomewm config snippet for Matt.
notify =
debug: (text, title, timeout=10 using nil) ->
if settings.debug and text
mytitle = "Debug"
if title
mytitle = "#{mytitle}: #{title}"
_notify_partial(title: mytitle, :text, :timeout),
start: (text) ->
_notify_partial(:text, icon: "actions/system-run"),
stop: (text) ->
@JNRowe
JNRowe / make-hubugs.sh
Created April 3, 2012 20:01 — forked from sorin-ionescu/make-hubugs.sh
Make a self contained hubugs
#!/bin/zsh
if (( ! $+commands[virtualenv] )); then
print "$0: no such command: virtualenv" >&2
return 1
fi
if (( ! $+commands[git] )); then
print "$0: no such command: git" >&2
return 1
@JNRowe
JNRowe / bare_template.patch
Created February 8, 2012 15:09
Bare hubugs template
diff --git i/hubugs/templates/default/view/issue.txt w/hubugs/templates/default/view/issue.txt
index 6f37ce8..18a9d85 100644
--- i/hubugs/templates/default/view/issue.txt
+++ w/hubugs/templates/default/view/issue.txt
@@ -1,35 +1,33 @@
-{%- set heading_colour = "green" -%}
-{%- set user_colour = "yellow" -%}
-{%- block header -%}
-{{ " Id" | colourise(heading_colour) }}: {{ bug.number }}
-{{ " Title" | colourise(heading_colour) }}: {{ bug.title }}
Ξ Desktop/test_bugs git:(master) ▶ curl http://github.com/api/v2/json/issues/show/JNRowe/issues-test/8 | jsonpp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 324 100 324 0 0 451 0 --:--:-- --:--:-- --:--:-- 1344
{
"issue": {
"body": "Test",
"closed_at": "2011/03/10 19:57:22 -0800",
"comments": 1,
"created_at": "2011/03/10 11:57:11 -0800",
>>> import wnck
>>> s = wnck.screen_get_default()
>>> s.force_update ()
>>> s.get_windows()
[<wnck.Window object at 0x10399b0 (WnckWindow at 0x10b8240)>,
<wnck.Window object at 0x1039cd0 (WnckWindow at 0x10b8ce0)>]
hpodder.db.txt: hpodder.db
$(info - Dumping hpodder podcasts list)
sqlite3 $< 'SELECT feedurl FROM podcasts' >$@
.sup/contacts.txt: .abook/addressbook
python sup_contacts.py $< >$@
#! /usr/bin/python -tt
"""Generate a sup contacts list from abook"""
import configobj
import os
import sys
def parse(file=None):
if not file:
file = os.path.expanduser("~/.abook/addressbook")