Skip to content

Instantly share code, notes, and snippets.

View Linell's full-sized avatar
🧙

Linell Bonnette Linell

🧙
View GitHub Profile
@Linell
Linell / ImageMagick 6.9.7-3 Homebrew Formula.md
Last active January 9, 2018 16:52 — forked from afaur/ImageMagick 6.9.7-3 Homebrew Formula.md
Homebrew Formula for ImageMagick 6.9.7-3

Homebrew Formula patching old ImageMagick release 6.9.7-3

Install

$ brew install https://gist.githubusercontent.com/afaur/15fbb18b28e2140ec3fda8b098262e55/raw/b733366d08da64f87bc889eebf173f4e50e394bc/imagemagick.rb

Tested

@Linell
Linell / Procfile
Created February 7, 2018 15:35
Sidekiq Web UI
web: bundle exec puma -t 4:16 config.ru -p $PORT
worker: bundle exec sidekiq -r ./app.rb
filetype plugin on
filetype plugin indent on
syntax on
filetype indent on
set autoindent
set autoread
set backspace=2
set clipboard=unnamed
set cursorline
@Linell
Linell / question.rb
Created September 4, 2019 14:49
Is there a better version of this code?
# Original code. The problem here is that if there's an existing
# Bar object for the user then we end up with two objects. That's
# a valid case though -- we just don't want it here. I want it to
# result in the user having one confirmed Bar object.
foo = Bar.create_or_raise(
user: user,
entity: entity,
status: :confirmed,
role: :owner
)
set-option -g status-keys vi
set-window-option -g mode-keys vi
set -g mouse on
set-option -g history-limit 10000
set -s escape-time 0
set -g aggressive-resize on
unbind ^X
" Plugin Setup
call plug#begin('~/.config/nvim/plugged')
Plug 'airblade/vim-gitgutter'
Plug 'cloudhead/neovim-fuzzy'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'junegunn/vim-easy-align'
Plug 'mattn/gist-vim'
Plug 'mattn/webapi-vim'
Plug 'mihaifm/bufstop'
# Type(<scope>): <subject>
# <body>
# <footer>
# Type should be one of the following:
# * feat (new feature)
# * fix (bug fix)
# * docs (changes to documentation)
{
"body": "{\"temperature\":\"72.00\",\"pressure\":\"1234.45\",\"rh\":\"12.34\"}",
"resource": "/{proxy+}",
"requestContext": {
"resourceId": "123456",
"apiId": "1234567890",
"resourcePath": "/{proxy+}",
"httpMethod": "POST",
"requestId": "c6af9ac6-7b61-11e6-9a41-93e8deadbeef",
"accountId": "123456789012",