I hereby claim:
- I am rduplain on github.
- I am rduplain (https://keybase.io/rduplain) on keybase.
- I have a public key ASBpT-VcyhSXJu1CXyxN0b1TgOZANozAJFVXKVeZSPaxjQo
To claim this, I am signing this object:
[supervisord] | |
nodaemon=true | |
[supervisorctl] | |
serverurl=unix://supervisor.sock | |
[unix_http_server] | |
file=supervisor.sock | |
[rpcinterface:supervisor] |
#!/bin/sh | |
# Watch xscreensaver and react to status changes. | |
# | |
# Replaced my previous perl-based recipe with this: | |
# http://semicomplete.googlecode.com/svn/tools/xscreensaver-watch.sh | |
# | |
# Include somewhere in X session startup with: | |
# | |
# xscreensaver-watch & |
# Edit this file then run `update-haproxy haproxy-servers.cfg`. | |
# Alternatively, use a shell pipeline to build server list `... | update-haproxy`. | |
server demo1 127.0.0.1:8001 check cookie demo1 weight 100 | |
server demo2 127.0.0.1:8002 check cookie demo2 weight 100 | |
server demo3 127.0.0.1:8003 check cookie demo3 weight 0 | |
server demo4 127.0.0.1:8004 check cookie demo3 weight 0 |
#!/bin/sh | |
# PROVIDE: vpn | |
# REQUIRE: LOGIN | |
# KEYWORD: shutdown | |
# | |
# vpn: connect to VPN, start another service once VPN is connected. | |
# | |
# Uses OpenVPN and assumes the configuration does not need any authentication | |
# beyond the given .conf file. Consider an approach using `expect` if needed: | |
# |
#!/bin/sh | |
# Use grub to boot .iso files directly from /boot/iso. | |
# | |
# This file lives at /etc/grub.d/25_iso and is executable. | |
# | |
# Open .iso files to inspect internal /boot files for grub config hints. | |
# /boot is on the third partition of a gpt-partitioned USB drive. | |
ISO_PART_UUID="0a5086cd-8fdf-4ae0-a248-67411ebbbb18" # UUID of /boot `blkid`. | |
ISO_PART_NUMBER=3 |
"Plot a PNG using matplotlib in a web request, using Flask." | |
# Install dependencies, preferably in a virtualenv: | |
# | |
# pip install flask matplotlib | |
# | |
# Run the development server: | |
# | |
# python app.py | |
# |
# Key project interactions, but not all dependencies are resolved by make. | |
help: | |
@heroku help | |
run: | |
python manage.py runserver | |
shell: | |
python manage.py shell |
#!/usr/bin/env hy | |
;; match.hy - Getting started with hy (hylang.org), a simple example. | |
;; | |
;; As executable, `chmod +x match.hy`: | |
;; | |
;; $ ./match.hy '(.*), (.*)!' 'Hello, world!' | |
;; ('Hello', 'world') | |
;; | |
;; Developed on hy master 14c412c (after 0.11.1) on Python 3.5. | |
;; |
import code | |
def get_module_docstring(filepath): | |
"Get module-level docstring of Python module at filepath, e.g. 'path/to/file.py'." | |
co = compile(open(filepath).read(), filepath, 'exec') | |
if co.co_consts and isinstance(co.co_consts[0], basestring): | |
docstring = co.co_consts[0] | |
else: | |
docstring = None | |
return docstring |
I hereby claim:
To claim this, I am signing this object: