- 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
#!/usr/bin/env awk -f | |
NR > 1 { | |
for (i = 1; i <= header_count; i++) { | |
print headers[i], $i | |
} | |
} | |
NR == 1 { | |
header_count = split($0, headers) |
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
from openpyxl import load_workbook | |
workbook = load_workbook(filename='./tmp/book.xlsx', read_only=True) | |
range = workbook.defined_names['a_named_range'] | |
for sheet_title, sheet_coords in range.destinations: | |
sheet = workbook[sheet_title] | |
for row in sheet[sheet_coords]: | |
print "\t".join(str(cell.value) for cell in row) |
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
PS1=[\d/\t] \h:\W \u$ |
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} \ |
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
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
#!/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
#!/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 |
NewerOlder