Skip to content

Instantly share code, notes, and snippets.

testing, can these be downloaded? deleted? Edited, yes. Does anyone else see the download link?
OK, I see the delete link at the bottom. So yes, they can be deleted.
*.pbxproj -crlf -diff -merge
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joemaller
joemaller / kill-dashlane.sh
Created October 2, 2015 12:41
I think this stops Dashlane from hijacking Chrome
launchctl list | grep dashlane
launchctl stop com.dashlane.DashlaneAgent
launchctl remove com.dashlane.DashlaneAgent
@joemaller
joemaller / wp-config-db-sample.php
Created July 6, 2012 15:40
Git-safe WordPress config
<?php
/**
* Make a copy of this file named wp-config-db.php
* wp-config-db SHOULD NOT be version controled, add it to gitignore
* Use this to store database access information so the main
* wp-config.php file can be modified and version controlled.
*/
/**
* Debug block, set WP_DEBUG to false to disable this on the live site
@joemaller
joemaller / gist:3715084
Created September 13, 2012 15:27
shell one-liner to rename @2x files so they work with compass sprites
ruby -e 'Dir.glob("*@2x.*").each { |f| %x[ git mv #{f} #{f.gsub("@", "_")} ] }'
@joemaller
joemaller / gist:3940259
Created October 23, 2012 17:37
MediaElement.js: Enable smoothing in Flash fallback
// Add to the options object when initializing MediaElement.js players for high-quality scaling
// found in source file mediaelement-and-player.js:1192, adds "smoothing=true" to flashvars
enablePluginSmoothing: true
#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal
'use strict';
var through2 = require('through2');
var should = require('should');
require('mocha');
var failStream = function() {
return through2.obj(function(chunk, encoding, callback) {
this.push({})
this.emit('error', new Error('failStream has failed'));
callback()
@joemaller
joemaller / rbenv_bootstrap.sh
Created January 14, 2013 05:01
A little script for boostrapping a basic ruby rbenv environment. The script installs rbenv and ruby-build from Homebrew, activates a new rbenv and then installs the rbenv-rhash and compass gems.
#!/usr/bin/env bash
# This script bootstraps a basic ruby rbenv environment using Homebrew
#
# Should be executed in the current shell by calling from source (or dot):
# $ source ./.rbenv
# $ . ./.rbenv
RUBY_VERSION='1.9.3-p362'