Skip to content

Instantly share code, notes, and snippets.

View neanias's full-sized avatar

William Mathewson neanias

View GitHub Profile
@neanias
neanias / fresh_setup
Last active February 26, 2024 17:11
[UNMAINTAINED] Portable neovim setup
#!/bin/bash
cd ~
echo "Linking .nvimrc into home directory (~)"
if [ -z "$XDG_CONFIG_HOME" ]; then
export XDG_CONFIG_HOME=~/.config
fi
if [ ! -d $XDG_CONFIG_HOME/nvim ]; then
echo "Creating $XDG_CONFIG_HOME/nvim..."
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})
running=$(pidof spotify)
if [ "$running" != "" ]; then
artist=$(playerctl metadata artist)
song=$(playerctl metadata title | cut -c 1-60)
echo -n "$artist · $song"
fi

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|