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
log "Deciding what to do with CrashPlan…" | |
set isCrashPlanRunning to false | |
try | |
set pid to do shell script "sudo launchctl list | grep com.crashplan.engine" ¬ | |
user name "@{admin_user}" password "@{admin_password}" ¬ | |
with administrator privileges | |
set isCrashPlanRunning to true | |
end try |
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
require 'cgi' | |
require 'open-uri' | |
# Require the ActiveSupport::Cache module | |
require 'active_support/cache' | |
module Fiftyfive | |
module Liquid | |
class GistTag < ::Liquid::Tag | |
def initialize(tag_name, gist_ref, tokens) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>net.damacy.releasemem</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/Users/george/.bin/releasemem.py</string> | |
</array> |
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 | |
# Usage: | |
# | |
# ssl_setup [--self] <name> <csr_config> | |
# | |
# This script is used to generate key and CSR for use HTTPS in Nginx. | |
# | |
# --self Generate self-signed certificate in addition to key and CSR. | |
# name Output files will be named as <name>.key and <name>.csr. |
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
from datetime import datetime | |
import Queue | |
import re | |
import threading | |
import urllib2 | |
from scene import * | |
OUTPUT_TEMPLATE = u"""\ | |
Number of threads: {} |
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
# Source: https://gist.github.com/4702275 | |
# | |
# All-purpose gist tool for Pythonista. | |
# | |
# When run directly, this script sets up four other scripts that call various | |
# functions within this file. Each of these sub-scripts are meant for use as | |
# action menu items. They are: | |
# | |
# Set Gist ID.py - Set the gist id that the current file should be | |
# associated with. |
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 | |
from datetime import timedelta, tzinfo | |
from shlex import split | |
from subprocess import Popen, PIPE | |
import os | |
import plistlib | |
ZERO = timedelta(0) | |
NOT_ENABLED = u'Not enabled.' |
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 platform | |
import epo_ops | |
registered_client = epo_ops.RegisteredClient( | |
key='h07O7iAKj3stHFjGCAZSgFhPHIwDmTqE', | |
secret='QjzSphsngYD55em0' | |
) |
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 | |
# -*- coding: utf-8 -*- | |
from random import sample | |
# people grouped together cannot gift to each other | |
people = [ | |
('Sue', 'Sam'), | |
('Heather', 'Matt'), | |
('Noelle', 'George'), |
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
HOMEBREW_VERSION: 1.2.0-50-g3e4547f5 | |
ORIGIN: https://github.com/Homebrew/brew | |
HEAD: 3e4547f52e7ebec633f8bfefc8a396d944edf908 | |
Last commit: 52 minutes ago | |
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core | |
Core tap HEAD: 9c4f788f512c3fdb9f83dace59b2194a778c13bd | |
Core tap last commit: 12 hours ago | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_REPOSITORY: /usr/local/Homebrew | |
HOMEBREW_CELLAR: /usr/local/Cellar |
OlderNewer