Skip to content

Instantly share code, notes, and snippets.

<body>
<br />
<br />
<br />
<style type='text/css'>
a {
margin: 0;
padding: 0;
border: none;
text-decoration: none;
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", ¬
@coneybeare
coneybeare / GiantUser.html
Last active March 22, 2023 12:26
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 />
//
// UACellBackgroundView.m
// Ambiance
//
// Created by Matt Coneybeare on 1/31/10.
// Copyright 2010 Urban Apps LLC. All rights reserved.
//
#define TABLE_CELL_BACKGROUND { 1, 1, 1, 1, 0.866, 0.866, 0.866, 1} // #FFFFFF and #DDDDDD
#define kDefaultMargin 10
// 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 + ');' +
@coneybeare
coneybeare / filter.rb
Created October 2, 2012 15:14
A script for Transmission that runs after a completed download. It scans for downloaded television shows then attempts to place them in the correct organizational directory on the local machine, removing the torrent as well.
#!/usr/bin/env ruby
require 'fileutils'
# SETUP
# Details about the local transmission service
transmission_remote_location = "/usr/sbin/transmission-remote"
transmission_server_port = "mini.local:9091"
# The place where downloaded but unsorted tv show torrents land
downloads_television_directory = "/Volumes/Drobo/Downloads/Television/"
@coneybeare
coneybeare / gist:1101665
Created July 23, 2011 17:35
sample html signature
<br />
<br />
<div id="sig" style="min-width: 960px; min-height: 82px; line-height: 18px; margin: 6px 0; padding: 8px; border-top: 1px #999999 dotted; border-bottom: 1px #999999 dotted; font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif; font-size: 12px; color: #999999; " >
<a href="http://urbanapps.com" title="urbanapps.com"><img src="http://.../images/logo_noshad_80.png" alt="Urban Apps" style="float: left; padding: 2px 6px 0 0; border: none;"></a>
<div style="padding: 6px 0 0 0">
<span style="font-size:14px"><strong style="color: #333333">Matt Coneybeare</strong>, Founder</span><br />
<strong><a href="http://urbanapps.com" title="urbanapps.com" style="color: #666666; text-decoration: none; border-bottom: 1px #cccccc dotted;">Urban Apps, LLC</a></strong><br />
PO Box 765, Centereach, New York, 11720, U.S.A. | Telephone: 347.688.7226 | Fax: 631.615.6716<br />
<a href="http://twitter.com/urbanapps"><img src="http://.../images/social/twitter_16.png" alt="Twitter" style="float: left; m
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