THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| I now use google-drive-ocamlfuse (https://github.com/astrada/google-drive-ocamlfuse). | |
| For installation instructions see - http://www.webupd8.org/2013/09/mount-google-drive-in-linux-with-google.html | |
| If you want my grive-sync inotifywait script, see the previous revision of this gist. |
| bit = require "bit" | |
| ev = require "ev" | |
| ltn12 = require "ltn12" | |
| socket = require "socket" | |
| -- make protect and newtry coroutine friendly | |
| socket.protect = (fn) -> fn | |
| socket.newtry = (finalizer) -> | |
| (...) -> |
| --- | |
| # This has been tested with ansible 1.3 with these commands: | |
| # ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=false" | |
| # ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=true" | |
| # ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts" | |
| # NB: The type of the variable is crucial! | |
| - name: Ansible Conditionals Examples | |
| hosts: $hosts | |
| vars_files: |
| # http://www.ansibleworks.com/docs/modules.html#digital-ocean | |
| # Create a new Droplet | |
| # Will return the droplet details including the droplet id (used for idempotence) | |
| - name: launch DO droplet | |
| hosts: local | |
| gather_facts: False | |
| tasks: | |
| - name: pwd |
| #!/usr/bin/python2 | |
| # rtorrent_xmlrpc | |
| # (c) 2011 Roger Que <[email protected]> | |
| # (c) 2013 Noah K. Tilton <[email protected]> | |
| # | |
| # Python module for interacting with rtorrent's XML-RPC interface | |
| # directly over SCGI, instead of through an HTTP server intermediary. | |
| # Inspired by Glenn Washburn's xmlrpc2scgi.py [1], but subclasses the | |
| # built-in xmlrpclib classes so that it is compatible with features |
| /** | |
| * Imperavi Redactor Plugin for Embedding Tweets | |
| * for version >= 9.1 | |
| * | |
| * @author Ilya Chekalskiy <[email protected]> | |
| * @version 0.2.2 | |
| */ | |
| if (typeof RedactorPlugins === 'undefined') var RedactorPlugins = {}; | |
| RedactorPlugins.tweets = { |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| # Install `dnsmasq` and configure for *.test domains | |
| $ brew install dnsmasq | |
| $ vim /usr/local/etc/dnsmasq.conf | |
| # Reload configuration and clear cache | |
| $ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist | |
| $ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist | |
| $ dscacheutil -flushcache |
| # This gist is compatible with Ansible 1.x . | |
| # For Ansible 2.x , please check out: | |
| # - https://gist.github.com/dmsimard/cd706de198c85a8255f6 | |
| # - https://github.com/n0ts/ansible-human_log | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # |