This gist was moved to its own repo to allow contributions: https://github.com/danguita/osx-for-developers. Feel free to pull request!
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
# monkey-patch Chef Git Provider | |
# to raise the default ShellOut timeout setting | |
# because this repo can take over 10min | |
# to clone from github.com | |
class ::Chef::Provider::Git | |
def clone # based on opscode/chef commit b86c5b06 | |
converge_by("clone from #{@new_resource.repository} into #{@new_resource.destination}") do | |
remote = @new_resource.remote | |
args = [] |
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 pruneCommittedDiffs(mailbox, dest_mailbox) | |
diff_set = mailbox:contain_subject('[Differential]') | |
committed_diff_set = diff_set:contain_field('X-Phabricator-Mail-Tags', '<differential-committed>') | |
for _, message in ipairs(committed_diff_set) do | |
mmbox, uid = table.unpack(message) | |
rev_key = string.gsub(mmbox[uid]:fetch_field('In-Reply-To'), 'In%-Reply%-To: ', '') | |
all_diff_msgs = diff_set:contain_field('In-Reply-To', rev_key) + diff_set:contain_field('Message-ID', rev_key) | |
all_diff_msgs:move_messages(dest_mailbox) | |
end | |
end |
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 AllowAmbiguousTypes, DeriveDataTypeable, TypeSynonymInstances, MultiParamTypeClasses #-} | |
-- a little messy, I know, but it's WIP | |
--------------------------------------------------------------------------- | |
-- Ethan Schoonover <es@ethanschoonover.com> @ethanschoonover -- | |
-- https://github.com/altercation -- | |
--------------------------------------------------------------------------- | |
-- current as of XMonad 0.12 |
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
# This file is sourced by /etc/init.d/sabnzbdplus | |
# | |
# When SABnzbd+ is started using the init script, the | |
# --daemon option is always used, and the program is | |
# started under the account of $USER, as set below. | |
# | |
# Each setting is marked either "required" or "optional"; | |
# leaving any required setting unconfigured will cause | |
# the service to not start. |
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
# Deep Thought is a computer that was created by the pan-dimensional, | |
# hyper-intelligent species of beings (whose three-dimensional | |
# protrusions into our universe are ordinary white mice) to come up | |
# with the Answer to The Ultimate Question of Life, the Universe, | |
# and Everything. Deep Thought is the size of a small city. | |
class Worker | |
MUTEX = Mutex.new | |
@@mutex = Mutex.new |
See it in action (disabled vs enabled)
Apply the userscript using greasemonkey or similar to urls like https://phabricator.wikimedia.org/notification/query/unread/
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 ruby | |
# | |
# Before we start, make sure you have Essex support in Fog | |
# | |
# Essex support has not been merged into upstream Fog so you'll need | |
# a custom ruby fog build to run through the examples | |
# | |
require 'fog' | |
require 'pp' | |
require 'highline/import' |
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
./configure \ | |
--prefix=/usr \ | |
--mandir=/usr/share/man \ | |
--infodir=/usr/share/info \ | |
--sysconfdir=/private/etc \ | |
--with-apxs2=/usr/sbin/apxs \ | |
--enable-cli \ | |
--with-config-file-path=/etc \ | |
--with-libxml-dir=/usr \ | |
--with-openssl=/usr \ |
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 -ex | |
SITE_PATH="${HOME}/site" | |
GERRIT_WAR="/path/to/gerrit.war" | |
# Because Gerrit's "daemon --init" can't take init options we will do this | |
# separately. Feature request filed: | |
# https://bugs.chromium.org/p/gerrit/issues/detail?id=9004 | |
# Init site (provision). Note that the GERRIT_WAR may be a different version |
OlderNewer