- [X] task 1
- [X] task 2
- [ ] task 3 (C-c C-c to toggle status of checkbox)
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/perl | |
use strict; | |
use warnings; | |
use IO::Socket::SSL; | |
use LWP::UserAgent; | |
my $ua = LWP::UserAgent->new(ssl_opts => { | |
verify_hostname => 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
(setq blb/confluence-page-sig "~/doc/confluence-rd-snippet.xml") | |
(defun blb/confluence-org-get-export () | |
(interactive) | |
(confluence-toggle-page-content-type) | |
(let ((export-buffer (get-buffer "*org CONFLUENCE Export*"))) | |
(buffer-swap-text export-buffer) | |
(kill-buffer export-buffer)) | |
(confluence-toggle-page-content-type) | |
(save-excursion | |
(goto-char (point-max)) |
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
$ModLoad imuxsock | |
$ModLoad imklog | |
# | |
# Set up queue to buffer messages if server goes down. | |
# | |
$WorkDirectory /var/spool/rsyslog | |
$ActionQueueType LinkedList | |
$ActionQueueFileName 192.168.0.42 | |
$ActionResumeRetryCount -1 |
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
import web | |
class MyGroupedDropdown (web.form.GroupedDropdown): | |
"""Subclass of GroupedDropdown that allows mixing option groups | |
with plain options, i.e. accepts tuples of strings as well as | |
tuples of tuples of strings. | |
>>> MyGroupedDropdown(name='example', args=(('Swedish Cars', | |
(('v', 'Volvo'), ('s', 'Saab'))), ('German Cars', (('m', 'Mercedes'), |
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 | |
"""Update PostgreSQL's table sequences after importing data from MySQL.""" | |
import sqlobject | |
import psycopg2 | |
uri = 'postgres://username:password@localhost/dbname' | |
connection = sqlobject.connectionForURI(uri) |
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
#!/bin/sh | |
git filter-branch --env-filter ' | |
cn="Rhubarb Sin" | |
cm="rhubarbsin@gmail.com" | |
an="Rhubarb Sin" | |
am="rhubarbsin@gmail.com" | |
export GIT_AUTHOR_NAME="$an" |
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 | |
"""Demonstrate use of underscore in foreign key "q" attribute with Outer.""" | |
from sqlobject import * | |
from sqlobject.sqlbuilder import * | |
class Foo(SQLObject): | |
bars = MultipleJoin('Bar') |
NewerOlder