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
#gb, | |
#gbqlw { | |
height: 42px !important; | |
} | |
#gbv, | |
#gbn, | |
#gbx1, | |
#gbx2 { | |
height: 41px !important; |
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 | |
import sys | |
import subprocess | |
import re | |
import logging | |
import argparse | |
# https://github.com/wooster/biplist (pip install biplist) | |
import biplist |
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 -e | |
getRepoRoot() | |
{ | |
local target=$1 | |
if [ -d "${target}" ] ; then | |
cd "${target}" | |
elif [ -f "${target}" ] ; then | |
cd "$(dirname ${target})" | |
fi |
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
defaults write ~/Library/Mail/Bundles/GrowlMail.mailbundle/Contents/Info.plist SupportedPluginCompatibilityUUIDs -array-add $(defaults read /System/Library/Frameworks/Message.framework/Versions/Current/Resources/Info.plist PluginCompatibilityUUID) | |
defaults write ~/Library/Mail/Bundles/GrowlMail.mailbundle/Contents/Info.plist SupportedPluginCompatibilityUUIDs -array-add $(defaults read /Applications/Mail.app/Contents/Info.plist PluginCompatibilityUUID) |
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 | |
''' | |
Script to download all PDF files for a particular version of Splunk documentation. | |
Requirements: | |
requests: http://docs.python-requests.org | |
beautifulsoup4: http://www.crummy.com/software/BeautifulSoup/ | |
(pip install -U requests beautifulsoup4) |
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
tar czvf ~/Desktop/iTunes-backup-$(date +%Y%m%d_%H%M%S).tgz -C / \ | |
/System/Library/PrivateFrameworks/CoreFP.framework \ | |
/Applications/iTunes.app \ | |
/Library/Documentation/Applications/iTunes \ | |
/Library/Documentation/iPod \ | |
/Library/Frameworks/iTunesLibrary.framework \ | |
/System/Library/PrivateFrameworks/iTunesAccess.framework |
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
(function() { | |
function addSectionNumber (elem, sectionNumber, parentSection, level) { | |
var sectionNumberStr = ''; | |
var sectionSpan; | |
if (level > 1) { | |
sectionNumberStr = parentSection + '.' + sectionNumber; | |
} else if (level > 0) { | |
sectionNumberStr = sectionNumber.toString(); | |
} |
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
import this |
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
# -*- coding: utf-8 -*- | |
# | |
# Copyright (c) 2013 Michael Rabbitt. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a | |
# copy of this software and associated documentation files (the | |
# "Software"), to deal in the Software without restriction, including | |
# without limitation the rights to use, copy, modify, merge, publish, | |
# distribute, sublicense, and/or sell copies of the Software, and to | |
# permit persons to whom the Software is furnished to do so, subject to |
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
class GitHubGist(Directive): | |
""" Embed GitHub Gist. | |
Usage: | |
.. gist:: GIST_ID | |
""" | |
required_arguments = 1 | |
optional_arguments = 1 |
OlderNewer