Skip to content

Instantly share code, notes, and snippets.

.mouse, #preview{
position: absolute;
background-repeat: no-repeat;
height: 22px;
min-width: 15px;
z-index: 100;
}
.mouse{
background-image: url('../images/cursor.png');
<?php
/**
* Custom configuration bootsrtap file for ExpressionEngine
*
* Place config.php in your site root
* Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/config.php
* Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/database.php
* If you have moved your site root you'll need to update the require_once path
*
@jakemauer
jakemauer / music_key_applescripts.script
Created March 16, 2012 07:26
Keyboard music playback key Applescripts
if appIsRunning("spotify") then
tell application "Spotify"
playpause
end tell
else if appIsRunning("iTunes") then
tell application "iTunes"
playpause
end tell
end if
<?php
/**
* Custom configuration bootsrtap file for ExpressionEngine
*
* Place config.php in your site root
* Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/config.php
* Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/database.php
* If you have moved your site root you'll need to update the require_once path
*
@jakemauer
jakemauer / git-erase.sh
Created October 23, 2012 22:30
Erase file or directory from Git repository permanently
#!/bin/bash
set -o errexit
# Author: David Underhill
# Script to permanently delete files/folders from your git repository. To use
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2
if [ $# -eq 0 ]; then
exit 0
@jakemauer
jakemauer / gist:4356482
Last active April 5, 2024 21:23
An overview of mobile phones, service providers, and smartphones that I wrote for those overwhelmed by the whole thing.

Terminology:

Operating System (OS):

The software that runs the phone itself. PC's have Windows, Apple computers (macs) have OSX, Apple mobile devices have iOS, Android devices have Android.

Megabyte (MB) and Gigabyte (GB):

@jakemauer
jakemauer / icomoon_regex
Created April 17, 2013 22:41
Regex to reformat icomoon font CSS declarations into a more neutral list for use in SASS
.([\w-]+):before\h\{\n\hcontent:\h("[\\\w]+");\n\}\n
@jakemauer
jakemauer / .zshrc
Last active December 17, 2015 16:39
Output of installing ruby 1.9.3-p429, my .zshrc, and currently installed brews
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="j2fly"
# Example aliases
/Users/jake/.rvm/gems/ruby-1.9.3-p429@doc-center/bin:/Users/jake/.rvm/gems/ruby-1.9.3-p429@global/bin:/Users/jake/.rvm/rubies/ruby-1.9.3-p429/bin:/Users/jake/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/jake/grails/grails-2.0.4/bin:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home:/Users/jake/bin
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.25
- RUBY VERSION: 1.9.3 (2013-05-15 patchlevel 429) [x86_64-darwin12.3.0]
- INSTALLATION DIRECTORY: /Users/jake/.rvm/gems/ruby-1.9.3-p429@doc-center
- RUBY EXECUTABLE: /Users/jake/.rvm/rubies/ruby-1.9.3-p429/bin/ruby
- EXECUTABLE DIRECTORY: /Users/jake/.rvm/gems/ruby-1.9.3-p429@doc-center/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-12
OpenID::DiscoveryFailure: Failed to fetch identity URL http://test.appdirect.com/openid/id : Error encountered in redirect from http://test.appdirect.com/openid/id: Error connecting to SSL URL https://test.appdirect.com/openid/id: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
from /Users/jake/.rvm/gems/ruby-1.9.3-p429@doc-center/gems/ruby-openid-2.2.3/lib/openid/yadis/discovery.rb:79:in `rescue in discover'