Skip to content

Instantly share code, notes, and snippets.

Avatar

William Mathewson neanias

  • Edinburgh, UK
View GitHub Profile
View ehfm_proposed_track_list.md
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
View ssh-add--apple-use-keychain.plist
<?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>
View project_documentation_template.md

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
View .ripgreprc
# 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 Sep 30, 2021
Partial work laptop nvim config
View init.vim
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})
View pierogi.md

Pierogi

Dough

Ingredients

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

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 Mar 26, 2020
Production script for generating a CSV of practice managed Mettle-resold companies. Pending Looker report.
View mettle_practice_managed_report.rb
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|
View currying.rb
# 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
View Music 2019.md

Julia Jacklin - Crushing

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.

Dry Cleaning

Fantastic band, both their EPs this year were really good

Squid - Town Centre