I hereby claim:
- I am michaeldwan on github.
- I am michaeldwan (https://keybase.io/michaeldwan) on keybase.
- I have a public key whose fingerprint is 9445 1A1E 4C2C AB40 38FA 12F9 B6CE EAA6 0F99 C686
To claim this, I am signing this object:
class MongoMigrationGenerator < Rails::Generators::NamedBase | |
source_root File.expand_path('../templates', __FILE__) | |
def create_mongo_migration_file | |
version = Time.now.utc.strftime("%Y%m%d%H%M%S") | |
template "migration.rb", "db/mongo_migrations/#{version}_#{file_name}.rb" | |
end | |
end |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.beanstalkd</string> | |
<key>KeepAlive</key> | |
<true/> | |
<key>ProgramArguments</key> | |
<array> |
module Memstat | |
extend self | |
MAC = RUBY_PLATFORM =~ /darwin/ | |
def log | |
"memory=#{real_mem_size} ruby_objects=#{num_objects}" | |
end | |
def real_mem_size |
NSData *data = [NSKeyedArchiver archivedDataWithRootObject:entry]; | |
NSLog(@"%@", data); | |
NSLog(@"Uncompressed: %d", [data length]); | |
double start; | |
start = [NSDate timeIntervalSinceReferenceDate]; | |
for (int x = 0; x < 50000; x++) { |
#!/bin/bash | |
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE") | |
buildNumber=$(($buildNumber + 1)) | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE" |
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
I hereby claim:
To claim this, I am signing this object:
FROM alpine | |
RUN apk add supervisor redis | |
RUN mkdir -p /var/log/supervisor /usr/local/var/db/redis/ | |
COPY config/redis.conf /usr/local/etc/redis/redis.conf | |
COPY config/supervisord.conf /etc/supervisord.conf | |
COPY ./entrypoint.sh /usr/local/bin/ |