Skip to content

Instantly share code, notes, and snippets.


Zane Wolfgang Pickett sirwolfgang

View GitHub Profile
View test.json
"method": "POST",
"url": "",
"httpVersion": "HTTP/1.1",
"headers": [
{ "name": "Accept", "value": "application/json" },
{ "name": "Content-Type", "value": "application/json" }
"postData": {
"mimeType": "application/json",
curl > ~/.gitignore
git config --global core.excludesfile ~/.gitignore
View snippets.sql
SELECT pg_terminate_backend(
FROM pg_stat_activity
WHERE datname = current_database()
AND pid <> pg_backend_pid();
View before_singleton_action.rb
# frozen_string_literal: true
# @see
module BeforeSingletonAction
extend ActiveSupport::Concern
class_methods do
def singleton_method_added(method_name)
return if before_singleton_actions.include?(method_name) || before_singleton_action_methods.include?(method_name)
git config --global "Zane Wolfgang Pickett"
git config --global ""
git config --global color.ui true
git config --global core.editor nano
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=3600'
git config --global core.autocrlf input
View vcr.rb
RSpec.configure do |config|
# Add VCR to all tests
config.around(:each) do |example|
options = example.metadata[:vcr] || {}
if options[:record] == :skip
name = example
sirwolfgang / Gemfile
Last active Aug 29, 2015
Rails Default Gems
View Gemfile
source ''
gem 'rails', '4.2.0'
gem 'puma'
# databases
gem 'pg'
# javascript Backend
gem 'jbuilder'
sirwolfgang / Gemfile
Last active Aug 29, 2015
API with Rails
View Gemfile
gem 'jbuilder'
gem 'rack-cors'
View private.xml
<?xml version="1.0"?>
<regex>Codio IDE</regex>
<name>Command_L to Control_L</name>
View sidekiq.sql
SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE application_name LIKE 'sidekiq%';