This file contains hidden or 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
| # Setting up dnsmasq for Local Web Development Testing on any Device | |
| Please note, these instructions are for OS X Lion. | |
| First, you need to get the IP address of your machine on your local network. In OS X, the easiest place to find this is in System Preferences > Network. If you're using DHCP on your local network, you will want to make sure your computer requests the same IP address when it renews it's IP address lease. I recommend configuring the DCHP Reservation settings on your router to accomplish this. Otherwise, you can specify a manual address in your network settings: | |
| 1. Go to *System Preferences > Network* | |
| 1. Click *Advanced...* |
This file contains hidden or 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
| # Small utility which uses the homepage and nokogori to get a description from the formula's homepage. | |
| # | |
| # As written in the homebrew wiki: | |
| # > Homebrew doesn’t have a description field because the homepage is always up to date, | |
| # > and Homebrew is not. Thus it’s less maintenance for us. To satisfy the description | |
| # > we’re going to invent a new packaging microformat and persuade everyone to publish | |
| # > it on their homepage. | |
| # | |
| # Too bad no packaging microformat has yet been invented, but brew-more just first looks for a | |
| # `<meta name="description">` tag, then for an `a#project_summary_link` tag (which is used in |
This file contains hidden or 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
| # | |
| # adds 'brew refresh' as an external command, which essentially does | |
| # 'brew update' followed by 'brew outdated' | |
| # | |
| require 'update' | |
| def outdated | |
| outdated_brews.each do |keg, name, version| | |
| if $stdout.tty? and not ARGV.flag? '--quiet' | |
| versions = keg.cd{ Dir['*'] }.join(', ') |
This file contains hidden or 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 -w | |
| # brew-services(1) - Easily start and stop formulas via launchctl | |
| # =============================================================== | |
| # | |
| # ## SYNOPSIS | |
| # | |
| # [<sudo>] `brew services` `list`<br> | |
| # [<sudo>] `brew services` `restart` <formula><br> | |
| # [<sudo>] `brew services` `start` <formula> [<plist>]<br> |
This file contains hidden or 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 | |
| echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
| read inputline | |
| name=$inputline | |
| echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
| read inputline | |
| url=$inputline |
This file contains hidden or 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"?> | |
| <xsl:stylesheet version="1.0" | |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
| xmlns:ttml="http://www.w3.org/ns/ttml" | |
| xmlns:tts="http://www.w3.org/2006/04/ttaf1#styling"> | |
| <xsl:output | |
| method="text" | |
| indent = "no" | |
| encoding="UTF-8"/> |
This file contains hidden or 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 org.gradle.api.DefaultTask | |
| import org.gradle.api.Project | |
| import org.gradle.api.plugins.BasePlugin | |
| /** | |
| * apply this plugin after doing all dependency and repo stuff. It will create two idea 'libraries' per subproject | |
| * and add them to your .iml files | |
| * | |
| * Forked from https://gist.github.com/360092 | |
| * |
This file contains hidden or 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 -wKU | |
| # Adapted from Brett Terpstra’s original “Markdown to Evernote” service (http://brettterpstra.com/a-better-os-x-system-service-for-evernote-notes-with-multimarkdown/) | |
| # Martin Kopischke 2011 – License: Creative Commons Attribution Share-Alike (CC BY-SA) 3.0 Unported (http://creativecommons.org/licenses/by-sa/3.0/) | |
| # Changes: – create only one Evernote note per (Multi)Markdown input passed (instead of one per line) | |
| # – do not choke on shell escape characters (use Tempfile instead of shell pipe for osascript) | |
| # – default to MultiMarkdown 3 executable (instead of MMD 2 Perl script) | |
| # – make smart typography processing optional (set SMARTY to 'false' to bypass processing; | |
| # note smart typography cannot be disabled in MMD 3.0 and 3.0.1 | |
| # – handle both smart typography processing scripts (ie. SmartyPants.pl) |
This file contains hidden or 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
| keystore = "/etc/java-6-sun/security/cacerts" | |
| keystore_pass = "foobar" | |
| # you'll need foo.cert et. al. in files/default | |
| certs = %w{foo bar bang} | |
| certs.each do |cert| | |
| cookbook_file "#{Chef::Config[:file_cache_path]}/#{cert}.cert" do | |
| source "#{cert}.cert" | |
| end |
This file contains hidden or 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
| # | |
| # pushoverbooted service | |
| # | |
| # Sends a PushOver notification when the box has finished booting. To | |
| # install, place this file in /etc/init/ You can test the service by | |
| # running 'start pushoverbooted' | |
| # | |
| # You will need to replace TOKEN with the value you get upon following the | |
| # registration process for a pushover application detailed at: | |
| # https://pushover.net/api#registration |