Skip to content

Instantly share code, notes, and snippets.

@seamustuohy
seamustuohy / Commotion-Chat logs
Created October 24, 2012 15:31
Commotion-Chat logs Grepped to -C 20 around "chat"
This file has been truncated, but you can view the full file.
Script started on Wed 24 Oct 2012 11:17:40 AM EDT
-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+ Elation Foundation -|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+
Today is Wed Oct 24 11:17:41 EDT 2012
Uptime for this computer is 2:29, 1
-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+ Now, Get to work! -|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+-|x+
]0;s2e@s2eWork: ~/CompileDir/commotion-openwrt/openwrts2e@s2eWork:~/CompileDir/commotion-openwrt/openwrt$ make V=99

Collecting package info: package/feeds/packages/id3lib
ERROR: please fix package/feeds/packages/id3lib/Makefile - see logs/package/feeds/packages/id3lib/dump.txt for details

```
Thu Jan 16 16:40:03 UTC 2014
--------------------------------------------------------------------
IP Routing Table: (route -n)
--------------------------------------------------------------------
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.138.149.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-lan
--------------------------------------------------------------------
@seamustuohy
seamustuohy / multigource.sh
Created April 23, 2014 19:05
Bash script to create a cross-repo gource vizualization
# Creates a Gource visualization from multiple repositories.
# This script requires gource and ffmpeg
# sudo apt-get install gource
# sudo apt-get install ffmpeg
# Usage: ./script <user> [repository name]...
# e.g ./multigource.sh elationfoundation commotion-client luci-commotion
function get_repos()
{

Original table

|hello|short|LONG TEXT BUT NOT SO LONG|
|-|
|1||LONG BUT SHORT REALLY| 2----------------------------------------4|
|this|has|more|col|than|any|other|

This is what it turns into when I press tab

@seamustuohy
seamustuohy / org-header-table
Created May 1, 2015 17:43
Creating a table with headers in org-mode from a python babel source code block using ```None``` object
* Results
#+RESULTS: header_test
* Code :noexport:
#+NAME: header_test
#+BEGIN_SRC python :var header=header_items :var rows=row_items :exports results :output table
hdr = []
tbl = []
@seamustuohy
seamustuohy / slow_heavy_watch.py
Created May 3, 2015 18:32
A file system monitor that SHOULD NOT BE USED. I just have it up here so I can fix it one day.
#!/usr/bin/env python
import sys
import time
import datetime
import subprocess
import csv
import tempfile
import os
from os.path import abspath, dirname
@seamustuohy
seamustuohy / notmuch-org-contacts.py
Created May 25, 2015 16:04
NotMuch and Org-Contacts
"""When you are initially starting to use org-contacts it can be tedious to add all of your existing contacts into the contacts database. Using notmuch’s [python bindings](https://notmuch-python.readthedocs.org/en/latest/database.html) you can quickly get an exhaustive list of contacts from an e-mail account that can be winnowed down to those you care about. Using some simple scripting with org-map-entries after the face can make adding tags, etc much easier."""
#!/usr/bin/env python
# imports
from notmuch import Database, Query
from email.Utils import parseaddr
import re
@seamustuohy
seamustuohy / user_input.org
Created May 27, 2015 18:50
User input in babel

#+NAME name

echo "I received $name as my input"
@seamustuohy
seamustuohy / trampgpg.sh
Created July 23, 2015 18:41
temporary travel GPG key generation script
#!/bin/bash
#==========================
# For writing to help file.
#==========================
write_help_header()
{
echo "## $1" >> $TMPDIR/README.md
}
@seamustuohy
seamustuohy / comment-org-bugs.org
Created August 10, 2015 12:37
org-mode 8.3.1 org comment bugs