Skip to content

Instantly share code, notes, and snippets.

View partydrone's full-sized avatar

Andrew Porter partydrone

View GitHub Profile
2020-02-18T17:59:07.5982925Z ##[group]Run paambaati/codeclimate-action@v2.4.0
2020-02-18T17:59:07.5983142Z with:
2020-02-18T17:59:07.5983312Z coverageCommand: bundle exec rake
2020-02-18T17:59:07.5983694Z coverageLocations: coverage/.resultset.json:simplecov
2020-02-18T17:59:07.5984047Z debug: true
2020-02-18T17:59:07.5984219Z env:
2020-02-18T17:59:07.5984809Z DATABASE_URL: postgresql://postgres:postgres@localhost:5432/oneohone?encoding=unicode&pool=5&timeout=5000
2020-02-18T17:59:07.5985358Z RAILS_RESQUE_REDIS: redis://localhost:6379/
2020-02-18T17:59:07.5985556Z REDIS_URL: redis://localhost:6379/
2020-02-18T17:59:07.5986502Z AWS_ACCESS_KEY_101: ***
@partydrone
partydrone / Camera
Created September 25, 2018 20:09
World of Warcraft OPie Rings
oetohH7 0N9zCPC wAction 06Cam06 off9wma cro932w Action0 6Cam06o n9wmacr o93232w Camera9 134wCTR L0AC914 4.
@partydrone
partydrone / template.rb
Created July 16, 2017 04:32
Rails 5.1 template
##
# Authentication & Authorization
gem 'omniauth-facebook'
gem 'omniauth-google-oauth2'
# gem 'omniauth-identity'
gem 'omniauth-twitter'
gem 'pundit'
gem 'rolify'
##
@partydrone
partydrone / MyMedia.lua
Last active November 30, 2023 21:38
My default Simple ElvUI profile for World of Warcraft
----------------------------------------------------------------------------
-- Copy this section of the file to a file called MyMedia.lua, and enter
-- your media's information, using the examples shown below.
----------------------------------------------------------------------------
local LSM = LibStub("LibSharedMedia-3.0")
-- START of the section that you should be editing
--
-- NB: any line beginning with "--" is ignored - so the lines
@partydrone
partydrone / install_email_signature.bat
Created April 21, 2016 21:11
Install an HTML email signature in Outlook 2016 on Windows 10.
move email_signature.html %APPDATA%/Microsoft/Signatures/default.htm
del install_email_signature.bat
@partydrone
partydrone / .aliases.local
Last active July 3, 2019 02:22
Local additions and customizations for thoughtbot/laptop script
alias back="cd ~-"
alias h="history"
alias ll="ls -aFGl"
alias up="cd .."
# Redefine commands to add options
alias cp="cp -i"
alias df="df -h"
alias du="du -h"
alias mv="mv -i"
@partydrone
partydrone / Gemfile
Last active July 16, 2017 04:19
Rails database.yml configuration for multiple git branches
group :development, :test do
gem "git"
end
@partydrone
partydrone / Default (OS X).sublime-keymap
Last active December 22, 2015 14:19
Sublime Text 3 configuration
[
{ "keys": ["ctrl+shift+."], "command": "erb", "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.ruby, text.haml, source.yaml, source.css, source.scss, source.js, source.coffee" }
]
}
]
@partydrone
partydrone / base_controller.rb
Created September 27, 2012 16:38
Cucumber tests fail for controller that doesn't inherit from ApplicationController
module Admin
class BaseController < ApplicationController
filter_access_to :index
def index
end
end
end
@partydrone
partydrone / sessions_controller.rb
Created April 18, 2012 08:35
How do I test a third-party API with Rspec?
Failures:
1) SessionsController fetches a user from Active Directory
Failure/Error: post :create, username: "brubble", password: "secret"
NoMethodError:
undefined method `amount' for nil:NilClass
# ./app/models/user.rb:128:in `set_account_balance'
# ./app/models/user.rb:110:in `create_user_with_adauth'
# ./app/models/user.rb:97:in `return_and_create_with_adauth'
# ./app/controllers/sessions_controller.rb:11:in `create'