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
on idle | |
# Change these to your VPN's IP Address, and the VPN's name in your Mac's Network System Prefernces panel. | |
set vpnIPAddress to "111.222.333.444" | |
set vpnServiceName to "AlgoVPN" | |
set myIP to "127.0.0.1" | |
set shellScriptCommands to {¬ | |
"dig +short myip.opendns.com @resolver1.opendns.com", ¬ | |
"dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'\"' '{ print $2}'", ¬ | |
"curl ifconfig.me", ¬ |
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
<body> | |
<br /> | |
<br /> | |
<br /> | |
<style type='text/css'> | |
a { | |
margin: 0; | |
padding: 0; | |
border: none; | |
text-decoration: none; |
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
<style type="text/css"> | |
a.link{margin:0;padding:0;border:none;text-decoration:none;} | |
</style> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="format-detection" content="telephone=no"> | |
<br /> | |
<br /> |
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
<style type="text/css"> | |
a.link{margin:0;padding:0;border:none;text-decoration:none;} | |
</style> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="format-detection" content="telephone=no"> | |
<br /> | |
<br /> |
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
// Problems: http://stackoverflow.com/questions/14033588/javascript-click-method-only-works-once-in-chrome-extension | |
function _anchorDownloader(url, filename) { | |
var timeout = 500; | |
return 'javascript:\'<!doctype html><html>'+ | |
'<head></head>' + | |
'<script>' + | |
'function initDownload() {'+ | |
'var el = document.getElementById("anchor");'+ | |
'el.click();' + | |
'setTimeout(function() { window.close(); }, ' + timeout + ');' + |
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
s3_access = "" | |
s3_secret = "" | |
s3_bucket = "" | |
cdn_path = "http://cloudfront.your.server.com" | |
desc "Swaps the local style.css file for a cdn hosted one" | |
task :css_to_cdn do | |
puts "## Checking AWS Credentials..." | |
unless s3_access && s3_secret | |
puts "\n## ERROR: Please setup up both s3_access and s3_secret" |
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
# encoding: utf-8 | |
require 'rubygems' | |
require 'jekyll' | |
require 'fileutils' | |
require 'net/http' | |
require 'uri' | |
require "json" | |
require 'mini_magick' |
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
root@ip-10-191-191-214:~# /usr/bin/gem install mysql -q --no-rdoc --no-ri -v "2.7" -- --build-flags --with-mysql-config | |
Building native extensions. This could take a while... | |
ERROR: Error installing mysql: | |
ERROR: Failed to build gem native extension. | |
/root/.rbenv/versions/1.9.3-p385/bin/ruby extconf.rb --build-flags --with-mysql-config | |
checking for mysql_ssl_set()... yes | |
checking for mysql.h... yes | |
extconf.rb:35: Use RbConfig instead of obsolete and deprecated Config. | |
creating Makefile |
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
GIT | |
remote: git://github.com/ctran/annotate_models.git | |
revision: 8bd159c7a484093fde84beaa9e6398f25ddacf09 | |
specs: | |
annotate (2.6.0.beta1) | |
activerecord (>= 2.3.0) | |
rake (>= 0.8.7) | |
GIT | |
remote: git://github.com/jumph4x/rails-canonical.git |
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
$ gem env | |
RubyGems Environment: | |
- RUBYGEMS VERSION: 1.8.25 | |
- RUBY VERSION: 1.9.3 (2013-02-06 patchlevel 385) [x86_64-darwin12.2.1] | |
- INSTALLATION DIRECTORY: /Users/REDACTED/.rvm/gems/ruby-1.9.3-p385@REDACTED | |
- RUBY EXECUTABLE: /Users/REDACTED/.rvm/rubies/ruby-1.9.3-p385/bin/ruby | |
- EXECUTABLE DIRECTORY: /Users/REDACTED/.rvm/gems/ruby-1.9.3-p385@REDACTED/bin | |
- RUBYGEMS PLATFORMS: | |
- ruby | |
- x86_64-darwin-12 |
NewerOlder