#Mac OS X
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
# 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;}' |
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/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' |
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:
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 | |
times=${1-3} | |
for i in `seq $times`; do echo -e "\a"; sleep 0.3; done |
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 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 |
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
/**= | |
* User: zircote | |
* Date: 16/10/2013 | |
* Time: 08:59 | |
*/ | |
var SERVICE_HOST = 'http://aws.amazon.com' | |
var data_sources = { | |
"linux-od": { |
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
{-# 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 |
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 | |
echo hello |
OlderNewer