#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
{-# 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
#!/usr/bin/env python | |
# This code is licensed according to the main package that it depends on: | |
# http://pypi.python.org/pypi/ssh | |
# License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) | |
# http://www.gnu.org/licenses/lgpl.html | |
import sys, os, os.path | |
import select | |
import SocketServer |
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 |
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
localhost$ ssh -v -M -S/tmp/controlmaster-remotehost remotehost | |
OpenSSH_6.0p1 Debian-3ubuntu1, OpenSSL 1.0.1c 10 May 2012 | |
... | |
Authenticated to remotehost.lxc ([10.0.3.167]:22). | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
foo | bar | baz | |
---|---|---|---|
a | 1 | ||
b | 2 | ||
c | |||
4 | |||
e | 5 |
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' |
OlderNewer