Skip to content

Instantly share code, notes, and snippets.

View aculich's full-sized avatar
😀
Having fun exploring repos for Computational Text Analysis with D-Lab CTAWG

Aaron Culich aculich

😀
Having fun exploring repos for Computational Text Analysis with D-Lab CTAWG
View GitHub Profile
# List of all downloaded files from system's Quarantine Manager sqlite db
echo "select LSQuarantineAgentName from LSQuarantineEvent where LSQuarantineAgentName not like 'Google Chrome%';" | sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2
# Set default mail app to GMail through command line without going through Mail.app setup process
defaults write com.apple.LaunchServices.plist LSHandlers -array-add '{LSHandlerRoleAll=com.google.gmailnotifier;LSHandlerURLScheme=mailto;}'
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'

Keybase proof

I hereby claim:

  • I am aculich on github.
  • I am aculich (https://keybase.io/aculich) on keybase.
  • I have a public key whose fingerprint is 0ECD 94E4 CA66 5EDE 7B0E 4EEA 433A DD5F B2DC 45FC

To claim this, I am signing this object:

@aculich
aculich / gist:fdd6d79b0f57da7ae07e
Created February 13, 2015 04:43
ring a bell 3 (by default) or more times
#!/bin/bash
times=${1-3}
for i in `seq $times`; do echo -e "\a"; sleep 0.3; done
@aculich
aculich / evernote_highlights.py
Created March 31, 2015 19:39
extract highlighted content from evernote exported .enex files
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# quick and dirty extraction script that should be replaced by proper XSLT templates
# sudo apt-get install -y python3-dateutil
from lxml import etree
import dateutil
import re
@aculich
aculich / AWS.js
Last active August 29, 2015 14:19 — forked from zircote/AWS.js
/**=
* User: zircote
* Date: 16/10/2013
* Time: 08:59
*/
var SERVICE_HOST = 'http://aws.amazon.com'
var data_sources = {
"linux-od": {
@aculich
aculich / WCEnumerator.hs
Created July 10, 2011 05:17 — forked from ivant/Makefile
wc using Data.Enumerator
{-# LANGUAGE ScopedTypeVariables, ViewPatterns, OverloadedStrings #-}
import Control.Applicative
import Control.Exception (SomeException)
import Control.Monad (when, mapM)
import Control.Monad.Trans (lift)
import Data.Char (ord)
import Data.Enumerator hiding (map, mapM, length, filter, foldl')
import Data.List (foldl')
import Data.Word (Word8, Word64)
import qualified Data.ByteString as SB
@aculich
aculich / fw-install
Created March 8, 2012 23:56
hello world bash script for fwknop install
#!/bin/bash
echo hello