Skip to content

Instantly share code, notes, and snippets.

View cwonrails's full-sized avatar

Chris Watson cwonrails

View GitHub Profile
@dhh
dhh / Gemfile
Created June 24, 2020 22:23
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
@tatianamac
tatianamac / tatiana-mac-speaker-rider.md
Last active March 24, 2024 12:22
Tatiana Mac's Speaker Rider

Speaker Rider

by Tatiana Mac

Last updated 14 April 2021

What is a speaker rider?

As speaking comes with immense privilege, I have crafted a speaker rider to set expectations and boundaries around my engagement. I am grateful to all the conference organisers who have brilliantly hosted me. I would love to continue to exercise this privilege to speak at conferences, and use this privilege to make the landscape more accessible and beneficial to tech's most historically excluded and marginalised communities.

Considerations

😫 I provide a lot of explanations for those of you who never had to consider these things. Most thoughtful conferences I've attended check most of these boxes intrinsically, particularly when conference runners are experienced speakers. They get it.

@tjpalanca
tjpalanca / .crostini-setup
Last active February 3, 2023 00:17
Crostini Setup
These scripts set up Crostini on my Pixelbook
@rothgar
rothgar / install.sh
Created April 4, 2018 17:07
Code on Chromebook
#!/bin/sh
# Follow instructions here to enable dev mode and start VM
# https://github.com/lstoll/cros-crostini/blob/master/README.md
sudo apt-get update
sudo apt-get install -y libasound2 libxss1 wget
wget -qO- https://go.microsoft.com/fwlink/?LinkID=620884 | tar xvz
# Launch code
@themanifold
themanifold / node-prune.sh
Last active October 1, 2022 02:47
Pruning useless node_modules with bash userland tools (find etc)
#!/usr/bin/env bash
find node_modules \( -name '__tests__' -o \
-name 'test' -o \
-name 'tests' -o \
-name 'powered-test' -o \
-name 'docs' -o \
-name 'doc' -o \
-name '.idea' -o \
-name '.vscode' -o \
-name 'website' -o \
@tj
tj / output
Last active October 18, 2018 04:12
#!/bin/sh
eval `go build -work -a 2>&1` && find $WORK -type f -name "*.a" | xargs -I{} du -hxs "{}" | gsort -rh | sed -e s:${WORK}/::g

Setup

Static files and 404 pages.

{{ mkdir "build" }}
{{ copy "static/*" "build" }}
{{ render "404" | write "build/404.html" }}
@cwonrails
cwonrails / changelog.md
Created July 28, 2017 00:36 — forked from kevinansfield/changelog.md
Full 1.0.0 Changelog
  • c18d97e91 Version bump to 1.0.0 - Kevin Ansfield
  • 44c3a522e Updated Ghost-Admin to 1.0.0 - Kevin Ansfield
  • 0a0ffe7e9 Version bump to 1.0.0 - Kevin Ansfield
  • 954d85d49 Upgrading Casper to 2.0.0 - Kevin Ansfield
  • 7b7c25b5f 🐛 fix duplicate posts bug, more intelligent autosave when transitioning (#800) - Kevin Ansfield
  • 9d9d040d7 🐛 fix loss of editor focus on new post autosave (#798) - Kevin Ansfield
  • ffa1b59a4 🎨 show "locked" badge in team list (#794) - Kevin Ansfield
  • d2a1763d3 🎨 update markdown help modal shortcuts - Kevin Ansfield
  • [f176171c0](ht
@kevinansfield
kevinansfield / changelog.md
Created July 26, 2017 10:09
Full 1.0.0 Changelog
  • c18d97e91 Version bump to 1.0.0 - Kevin Ansfield
  • 44c3a522e Updated Ghost-Admin to 1.0.0 - Kevin Ansfield
  • 0a0ffe7e9 Version bump to 1.0.0 - Kevin Ansfield
  • 954d85d49 Upgrading Casper to 2.0.0 - Kevin Ansfield
  • 7b7c25b5f 🐛 fix duplicate posts bug, more intelligent autosave when transitioning (#800) - Kevin Ansfield
  • 9d9d040d7 🐛 fix loss of editor focus on new post autosave (#798) - Kevin Ansfield
  • ffa1b59a4 🎨 show "locked" badge in team list (#794) - Kevin Ansfield
  • d2a1763d3 🎨 update markdown help modal shortcuts - Kevin Ansfield
  • [f176171c0](ht
#!/usr/bin/python
# Credit to frogor for the objc
from Foundation import NSBundle
import json
import objc
import os
import plistlib
import subprocess