Skip to content

Instantly share code, notes, and snippets.

Matt Coneybeare coneybeare

Block or report user

Report or block coneybeare

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View AutoReconnectToVPN.applescript
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", ¬
View giantuser_signature.html
<body>
<br />
<br />
<br />
<style type='text/css'>
a{margin:0;padding:0;border:none;text-decoration:none;}
table,tr,td,a,span{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;}
</style>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
<meta name='format-detection' content='telephone=no' />
@coneybeare
coneybeare / GiantUser.html
Last active Jan 11, 2019
Sample HTML Signature Code
View GiantUser.html
<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 Aug 29, 2015
Sample HTML Signature
View giantuser.html
<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 />
View save_to_downloads.js
// 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 + ');' +
View css_to_cdn.rb
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 Dec 14, 2015
Imports posterous content and images into Jekyll/Octopress format.
View posterous.rb
# encoding: utf-8
require 'rubygems'
require 'jekyll'
require 'fileutils'
require 'net/http'
require 'uri'
require "json"
require 'mini_magick'
View gist:5032146
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
View gist:4957828
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
View gist:4957822
$ 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
You can’t perform that action at this time.