Skip to content

Instantly share code, notes, and snippets.

gawk -v SEP=', ' '{ i=0; split($0, arr, SEP); len=asort(arr);
while ( ++i<=len ){ printf("%s%s", i>1?SEP:"", arr[i]) };
print ""}' infile
@bigornoo
bigornoo / think.ofit
Last active October 11, 2021 20:08
pmset macOS
$ sudo pmset -b hibernatemode 25 -c hibernatemode 3
@bigornoo
bigornoo / trac2down.py
Created November 17, 2017 16:31 — forked from sgk/trac2down.py
Trac Wiki to Markdown converter
#!/usr/bin/python
# vim:set fileencoding=utf-8 sw=2 ai:
import sqlite3
import datetime
import re
SQL = '''
select
name, version, time, author, text