I hereby claim:
- I am imerica on github.
- I am imichael (https://keybase.io/imichael) on keybase.
- I have a public key ASAK1tg_-_AO3dIyv2usYyUeDQldYkHaLoP97ljTp7LgIgo
To claim this, I am signing this object:
from storages.backends.s3boto3 import S3Boto3Storage | |
from django.contrib.staticfiles.storage import ManifestFilesMixin | |
from tempfile import SpooledTemporaryFile | |
import os | |
class CustomStorage(ManifestFilesMixin, S3Boto3Storage): | |
""" Handles File Versioning + File Uploading to our CDN """ | |
def _save_content(self, obj, content, parameters): | |
""" Hack to work around I/O error in Boto """ |
# Example: `remove_old_images 30` // Deletes all Docker Images 30 days or older | |
function remove_old_images() { | |
if [ $# -eq 0 ] | |
then | |
echo "Pass in the number of days" | |
exit 0 | |
fi | |
docker images --format '{{.ID}} {{.CreatedAt}}' | \ | |
awk '{print $1 " " $2 }' | \ |
I hereby claim:
To claim this, I am signing this object:
-Xms2048m | |
-Xmx2048m | |
-XX:ReservedCodeCacheSize=2048m | |
-XX:+UseCompressedOops | |
-Dide.no.platform.update=true |
javascript:void((function(){var%20a=window.location.href.replace(/^http%5C:%5C/%5C/(.*)$/,"$1");location.href="http://www.google.com/search?q=cache:"+escape(a);})()) |
// ==UserScript== | |
// @name Facebook filter | |
// @namespace iMerica | |
// @description Hides Facebook posts you don't want to see. | |
// @include http://www.facebook.com/* | |
// @include https://www.facebook.com/* | |
// ==/UserScript== | |
// Install: | |
// Step 1: Install TamperMonkey |
Dir.glob("#{ENV['HOME']}/Library/Application Support/Viscosity/OpenVPN/*/config.conf").each do |file| | |
certificate_files = ['ca', 'cert', 'key', 'tls-auth'] | |
config_dir = File.dirname(file) | |
connection_name = nil | |
new_config = [] | |
File.read(file).lines.each do |line| | |
line.strip! | |
if line.start_with?('#viscosity name') |
This is the French press routine I've arrived at after experimenting for a while and talking to other coffee aficionados. Am I missing something? Comments welcome!
require 'date' | |
require 'koala' | |
class BirthdayLiker | |
FACEBOOK_TOKEN = ENV['FB_OAUTH_KEY'] | |
BIRTHDAY_WORDS = %w(birthday bday birfday birth born) | |
THANKS_OPTIONS = ['Thank you!', 'Thanks!', 'Appreciate it!'] | |
DATE_TIME_FORMAT = '%Y-%m-%d' | |
def initialize(birthdate, opts={}) |
#!/usr/bin/python | |
from AppKit import NSWorkspace | |
import time | |
t = range(1,100) | |
for i in t: | |
time.sleep(3) | |
activeAppName = NSWorkspace.sharedWorkspace().activeApplication()['NSApplicationName'] | |
print activeAppName |