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
apply plugin: 'groovy' | |
sourceCompatibility = 1.5 | |
version = '0.1-SNAPSHOT' | |
repositories { | |
mavenRepo(urls: 'http://repository.codehaus.org/') | |
mavenCentral() | |
} |
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 logging | |
import math | |
import mimetypes | |
from multiprocessing import Pool | |
import os | |
from boto.s3.connection import S3Connection | |
from filechunkio import FileChunkIO | |
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 |
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 subprocess import call, Popen, PIPE | |
from getpass import getpass | |
import sys | |
def keychain_wrapper(func): | |
@wraps(func) | |
def wrapper(service_name, username): | |
p = Popen(['security', 'find-internet-password', '-g', '-s', service_name, '-a', username], | |
shell=False, stdout=PIPE, stderr=PIPE) | |
rc = p.wait() |
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
--- a/git-svn.perl | |
+++ b/git-svn.perl | |
@@ -5436,7 +5436,7 @@ BEGIN { | |
} | |
sub _auth_providers () { | |
- [ | |
+ my @rv = ( | |
SVN::Client::get_simple_provider(), | |
SVN::Client::get_ssl_server_trust_file_provider(), |
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
module Vagrant | |
module Provisioners | |
class Fabric < Base | |
class Config < Vagrant::Config::Base | |
attr_accessor :fabfile_path | |
attr_accessor :fabric_path | |
attr_accessor :python_path | |
attr_writer :tasks | |
def _default_fabfile_path |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require "./fabric_provisioner.rb" | |
Vagrant::Config.run do |config| | |
# snip | |
config.vm.provision Vagrant::Provisioners::Fabric do |fab| |
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
### Based on: https://gist.github.com/b0644f5ed1d94bd32805 | |
### This version strips unicode characters from the downloaded script | |
### to work around the currently limited unicode support of the editor | |
### module. | |
# This script downloads and opens a Gist from a URL in the clipboard. | |
# It's meant to be put in the editor's actions menu. | |
# | |
# It works with "raw" and "web" gist URLs, but not with gists that | |
# contain multiple files or non-Python files. |
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 os, cmd, sys, re, glob, os.path, shutil, zipfile, tarfile, gzip | |
# Credits | |
# | |
# The python code here was written by pudquick@github | |
# | |
# License | |
# | |
# This code is released under a standard MIT license. | |
# |
OlderNewer