Item 1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Item the second. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
A third item.
New Paragraph under 3.
The fourth one. Lorem ipsum dolor sit amet
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
create function python_exception_bug() | |
returns void as $$ | |
raise plpy.spiexceptions.InvalidParameterValue() | |
$$ language 'plpython3u'; | |
create function python_exception_sql() | |
returns text as $$ | |
begin | |
select python_exception_bug(); | |
return 'cannot happen'; |
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
(defun huwigs-build-ipregistry (clean) | |
"Build the IP Registry UI project. | |
Argument CLEAN if prefix arg is given, clean and then build." | |
(interactive "P") | |
(let ((default-directory *ipregistry-project-directory*) | |
(command (if clean | |
"/home/huwigs/bin/mvn -B clean pmd:check tomcat6:run" | |
"/home/huwigs/bin/mvn -DskipTests=true tomcat6:run")) | |
(tags-revert-without-query t)) |
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 itertools | |
import sys | |
def spinner(granularity): | |
"""Wraps a function in an ASCII spinner display loop. granularity | |
represents the number of times the function should be called | |
before moving the spinner.""" | |
spinner_chars = itertools.cycle("\|/-") | |
def make_spinner(f): | |
calls = 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
#!/usr/bin/gawk -f | |
BEGIN { | |
if (!table) { | |
print "usage: generate_insert_statements.awk -v table=TARGET_TABLE_NAME [datafiles ...]" > "/dev/stderr" | |
failed = 1 | |
exit 1 | |
} | |
FS = FS ? FS : "\t" | |
freq = freq ? freq : 100 |
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/bash | |
man -t $@ | open -a /Applications/Preview.app -f |
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
using terms from application "Mail" | |
on perform mail action with messages theMessages for rule theRule | |
set credentials to do shell script "security find-internet-password -g -s github.com 2>&1 | awk ' | |
/^password:/ { | |
sub(\".*password: \\\"\", \"\") | |
sub(\"\\\".*\", \"\") | |
password = $0 | |
} | |
/acct/ { |
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
2014-10-13 00:14:57 UTC LOG: database system was interrupted; last known up at 2014-10-13 00:14:52 UTC | |
2014-10-13 00:14:57 UTC LOG: creating missing WAL directory "pg_xlog/archive_status" | |
2014-10-13 00:14:57 UTC LOG: entering standby mode | |
2014-10-13 00:14:57 UTC LOG: restored log file "000000010000000000000002" from archive | |
2014-10-13 00:14:57 UTC LOG: redo starts at 0/2000028 | |
2014-10-13 00:14:57 UTC LOG: consistent recovery state reached at 0/20000F0 | |
2014-10-13 00:14:57 UTC LOG: database system is ready to accept read only connections | |
cp: cannot stat ‘/data/wal_archive/000000010000000000000003’: No such file or directory | |
2014-10-13 00:14:57 UTC LOG: started streaming WAL from primary at 0/3000000 on timeline 1 | |
2014-10-13 00:14:57 UTC LOG: incomplete startup packet |
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
# To use this wrapper, | |
# $ . ./mfa_wrap.sh | |
# $ mfa_wrap 123456 'aws s3 ls' | |
mfa_wrap() { | |
MFA_TOKEN="$1" | |
shift | |
SHELL_CMD=$(aws sts get-session-token \ | |
--serial-number="${AWS_MFA_SERIAL?AWS_MFA_SERIAL must be set}" \ | |
--token-code=${MFA_TOKEN} \ |
OlderNewer