This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
klazz = SoftwareMember | |
klazz .connection.execute("ALTER TABLE #{klazz .table_name} AUTO_INCREMENT = 1000") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# initializers/active_admin.rb | |
module ActiveAdmin | |
class OrderClause | |
alias_method :initialize_old, :initialize | |
alias_method :valid_old?, :valid? | |
alias_method :to_sql_old, :to_sql | |
def initialize(clause) | |
if clause.class == String | |
initialize_old(clause) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +katzmopolitan is my Bitcoin username. You can send me #bitcoin here: https://onename.io/katzmopolitan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQENBFRY6TUBCADgzqFSpV15H77BC574fnzYNl7rFEerbyeK1JIwnkCRvssS/S8ZzGNwgYUn | |
eMZFT3t9euYAzTx0WgHwhdDUZpRPXsYIfzjz44bXPd4yhJtes12twpj4ZD9RBmbDLnnVpPY1 | |
ZVvk6EICKsy3FuwaQ1t/SxwWJ/w/aVHzTmlvxHuLYsp418Ik+5S+EAg/zB0ME/V89BUNiC/w | |
tEisE2EZj6JZSXeQrs7YQhZxe5E5HNewBdEvpigvlFUS/Q3aObeFe1lj5M1sGn6Cmrzs8GXy | |
Q/qWzVuRqjiVy7229Tm2+yARLm87KbbyRWVjdj43ykM1NcDwl/GEau57o6QNuwKUl1KrABEB | |
AAG0HklseWEgS2F0eiA8aWx5YWthdHpAZ21haWwuY29tPokBMgQQAQgAJgUCVFjpNwYLCQgH | |
AwIJEFLp7GBMMJSGBBUIAgoDFgIBAhsDAh4BAACvwAf/dv8j/OfJ1IjxQrFvRXv/BxTBZ8UD | |
99igTFHM8KuYhK/AluOKQZMR34yUNVyGPvO6Iz3+jDeES8d3PoVOOD8y7VKtqwkooXLjFb4m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aws-sdk-core' | |
deployments = opsworks.describe_commands(deployment_id: deployment_id) | |
region = "us-east-1" | |
opsworks = Aws::OpsWorks::Client.new(region: region) | |
deployments = opsworks.describe_commands(deployment_id: deployment_id) | |
deployments[0].collect(&:log_url).compact |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os,sys | |
print os.path.realpath(sys.argv[1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/http' | |
require 'uri' | |
class Admin::MouseflowController < ApplicationController | |
#these are optional if you using authentication and ssl | |
skip_before_filter :authenticate_login! | |
def ssl_required? | |
false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = YOUR_NAME | |
email = YOU_EMAIL | |
[credential] | |
helper = osxkeychain | |
[core] | |
excludesfile = /Users/[YOURNAME]/.gitignore_global | |
quotepath = false | |
[help] | |
autocorrect = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ `git symbolic-ref HEAD` == "refs/heads/master" ]] | |
then | |
if [[ ! -f /tmp/master_commit ]] | |
then | |
echo "*************************" | |
echo "CANNOT COMMIT TO MASTER!" | |
echo "To override this behavior" | |
echo "touch /tmp/master_commit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var msf_script = document.createElement('script'); | |
msf_script.type = 'text/javascript'; | |
msf_script.src = | |
('https:' == document.location.protocol ? 'https://' : 'http://') + | |
'cdn.mouseflow.com/projects/ba141427-dfd0-4d3a-acbe-37df41b6c8e0.js'; | |
var s = document.getElementsByTagName('script')[0]; | |
s.parentNode.insertBefore(msf_script, s); | |
})(); |
OlderNewer