Skip to content

Instantly share code, notes, and snippets.

View neanias's full-sized avatar

William Mathewson neanias

View GitHub Profile
Artist Track Album
Bikini Body Young Dad Young Dad
The Cool Greenhouse Dirty Glasses The Cool Greenhouse
Dog Beep! Beep! Honk! Honk! Beep! Beep! Honk! Honk!
Fat White Family Feet Serfs Up!
Sworn Virgins The Male Man The Male Man
Warmduscher Wild Flowers At The Hotspot
Grim Streaker Typical MIND
Yard Act Witness (Can I Get A?) The Overload
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>ssh-add--apple-load-keychain</string>
<key>ProgramArguments</key>
<array>
<string>ssh-add</string>
<string>--apple-load-keychain</string>

Project Documentation template

It can help to begin with a section giving a 100mi view of what the project actually is at its core. What the problem might be or what the solution is.

Useful Links

  • Google Drive space
  • Dev Slack channel
  • Epic in Trello
# Don't let ripgrep vomit really long lines to my terminal, and show a preview.
--max-columns=150
--max-columns-preview
# Add Rails type for searching just Rails files
--type-add
rails:*.{gemspec,rb,erb,rbapi}
--type-add
rails:.irbrc
--type-add
@neanias
neanias / init.vim
Created September 30, 2021 16:10
Partial work laptop nvim config
set nocompatible " be iMproved, required
lua << EOF
local execute = vim.api.nvim_command
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path})

Pierogi

Dough

Ingredients

  • 0.5kg plain flour
  • 1 large egg
  • 1 egg yolk
  • 1 glass of hot water
@neanias
neanias / README.md
Last active July 3, 2020 11:54
General purpose vimrc for Ruby & Rails editing

General purprose vimrc

Designed for Ruby & Rails editing

Installation

There are 2 options for this:

1. Clone the repo

@neanias
neanias / mettle_practice_managed_report.rb
Last active March 26, 2020 15:03
Production script for generating a CSV of practice managed Mettle-resold companies. Pending Looker report.
switch_to_slave_db
require "csv"
headers = ["Name", "Email", "Subdomain", "Bank Account ID", "Practice Name"]
mettle = Reseller.find_by_name("mettle")
csv_string = CSV.generate(headers: headers, write_headers: true) do |csv|
Company.where(reseller: mettle).where.not(account_manager: nil).each do |c|
# Create a lambda that adds its 2 params
adder = ->(x, y) { x + y }
# Curry it to pre-populate the first param with 2. This effectively turns
# add_two into ->(2, y) { 2 + y }
add_two = adder.curry[2]
# Call add_two with some other args
add_two.call(3)
# => 5

One of my all time favourite albums. Nominally about a break-up. The song Don't Know How To Keep Loving You is capturing a very real fear into music and it is phenomenal.

Fantastic band, both their EPs this year were really good