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
brew install mysql openssl zstd | |
gem install mysql2 -v '0.5.4' -- --with-mysql-config=$(brew --prefix mysql)/bin/mysql_config --with-ldflags="-L$(brew --prefix zstd)/lib -L$(brew --prefix openssl)/lib" --with-cppflags=-I$(brew --prefix openssl)/include |
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" | |
require "digest" | |
require "json" | |
api_key = "YOUR_API_KEY" | |
api_secret = "YOUR_API_SECRET" | |
api_header_time = Time.now.to_i.to_s | |
hash = Digest::SHA1.hexdigest("#{api_key}#{api_secret}#{api_header_time}") |
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
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
alias ls="ls -GFh" | |
alias be="bundle exec" | |
export PATH=/usr/local/bin:/usr/local/heroku/bin:$HOME/.rbenv/bin:$PATH | |
eval "$(rbenv init -)" |
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
# For this to work, you'll need to change: | |
# :application | |
# :repository | |
# :deploy_to | |
# :user | |
# :app, :web, :db | |
set :application, "example.com" | |
set :repository, "[email protected]:you/example.git" | |
set :branch, "master" |
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
sub vcl_hit { | |
if (obj.ttl >= 0s) { | |
# normal hit | |
return (deliver); | |
} | |
# We have no fresh fish. Lets look at the stale ones. | |
if (std.healthy(req.backend_hint)) { | |
# Backend is healthy. Limit age to 10s. | |
if (obj.ttl + 10s > 0s) { | |
set req.http.grace = "normal(limited)"; |
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
Show hidden characters
{ | |
"always_show_minimap_viewport": true, | |
"auto_indent": true, | |
"auto_match_enabled": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Base16 Color Schemes/base16-default.dark.tmTheme", | |
"detect_indentation": false, | |
"draw_minimap_border": true, | |
"draw_white_space": "selection", | |
"ensure_newline_at_eof_on_save": true, |
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
about | |
abuse | |
account | |
accounts | |
admin | |
administrator | |
administrators | |
admins | |
anonymous | |
api |
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
for i in "$@" ; do /Users/jsnell/ffmpeg -i "$i" -map 0:0 -acodec pcm_s161e -ac 1 -out_sample_rate 44100 "${i%.*}.wav" ; | |
done |
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 'mp3info' | |
# some test data, replace it with your own data | |
title = "After Dark #388: After Back to Work" | |
subtitle = "Merlin & Dan talk after Back to Work episode 104." | |
artist = "Dan Benjamin on 5by5.tv" | |
album = "After Dark" | |
genre = "Podcast" | |
track = 338 | |
year = 2013 |
NewerOlder