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
include "validations.conf" | |
collins_conf_dir = "/Users/bmatheny/Downloads/collins/conf" | |
# Secret key | |
# ~~~~~ | |
# The secret key is used to secure cryptographics functions. | |
# If you deploy your application to several instances be sure to use the same | |
# key! | |
application.secret="AbFgHx0eJx8lalkja812389uasdlkajsdlka98012398uasdlkasdklajsd81298" |
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
# Run this script to install ruby 1.9.2-p290 under rbenv | |
VERSION=1.9.2-p290 | |
brew update | |
brew install rbenv ruby-build rbenv-vars readline | |
if [ -n "${ZSH_VERSION:-}" ]; then | |
echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.zshrc | |
else | |
echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.bash_profile | |
fi |
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
% pry | |
[1] pry(main)> puts "Hello, world!" | |
Hello, world! | |
=> nil | |
[2] pry(main)> name = "Cecilia" | |
=> "Cecilia" | |
[3] pry(main)> puts "Hello, #{names}" | |
NameError: undefined local variable or method `names' for main:Object | |
from (pry):3:in `__pry__' | |
[4] pry(main)> wtf? |
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
package com.tumblr.fibr.service.filter | |
import com.tumblr.fibr.config.FilterConfig | |
import com.tumblr.fibr.tsdb.{TsdbRequest, TsdbResponse} | |
import com.google.common.cache.{Cache, CacheBuilder} | |
import com.twitter.finagle.Service | |
import com.twitter.util.Future | |
import java.util.concurrent.{Callable, TimeUnit} | |
/** |
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
-- previous track | |
on is_running(appName) | |
tell application "System Events" to (name of processes) contains appName | |
end is_running | |
if is_running("Spotify") then | |
tell application "Spotify" | |
previous track | |
end tell |
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
{ | |
"anytime" : [ | |
"I'm lucky to be your mirror!", | |
"The Force is strong with you", | |
"If I could high five you... I would!", | |
"On a scale from 1 to 10, you're an 15!", | |
"Being awesome is hard, but you'll manage", | |
"I could just hang here all day!", | |
"Looking good!", | |
"May the Force be with you", |
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 | |
# -------------------------------------------------------------------------------------------- | |
# Installs Ruby 2.6.8 using rbenv/ruby-build on the Raspberry Pi OS | |
# | |
# Run from the web: | |
# bash <(curl -sL https://gist.githubusercontent.com/bmatheny/f7cef71291d1ea3175b6d9d1bf312a3e/raw/install_ruby_rpi.sh) | |
# -------------------------------------------------------------------------------------------- | |
# Welcome message |
OlderNewer