Skip to content

Instantly share code, notes, and snippets.

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", ¬
<body>
<br />
<br />
<br />
<style type='text/css'>
a {
margin: 0;
padding: 0;
border: none;
text-decoration: none;
@coneybeare
coneybeare / GiantUser.html
Last active June 3, 2024 10:55
Sample HTML Signature Code
<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 />
@coneybeare
coneybeare / giantuser.html
Last active August 29, 2015 14:04
Sample HTML Signature
<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 />
// 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 + ');' +
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"
@coneybeare
coneybeare / posterous.rb
Last active December 14, 2015 12:19
Imports posterous content and images into Jekyll/Octopress format.
# encoding: utf-8
require 'rubygems'
require 'jekyll'
require 'fileutils'
require 'net/http'
require 'uri'
require "json"
require 'mini_magick'
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
@coneybeare
coneybeare / gist:4957828
Created February 15, 2013 00:59
gemfile.lock
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
@coneybeare
coneybeare / gist:4957822
Created February 15, 2013 00:58
gem env
$ 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