Skip to content

Instantly share code, notes, and snippets.

@jamesgecko
jamesgecko / apps.json
Last active January 16, 2024 02:28
Setup
{
"$schema" : "https://aka.ms/winget-packages.schema.2.0.json",
"CreationDate" : "2023-09-18T19:34:01.333-00:00",
"Sources" :
[
{
"Packages" :
[
{ "PackageIdentifier" : "AgileBits.1Password" },
{ "PackageIdentifier" : "7zip.7zip" },
@jamesgecko
jamesgecko / good-rss-readers.md
Created October 29, 2021 17:21
Good RSS Readers
@jamesgecko
jamesgecko / update.sh
Created May 6, 2021 01:08
How to share a git repo with multiple users on the same system
# Read this for more info: https://medium.com/@tahteche/how-git-treats-changes-in-file-permissions-f71874ca239d
chmod -R ugo+rw repo-folder
chmod -R a+X repo-folder
cd repo-folder
git config --local core.fileMode false
@jamesgecko
jamesgecko / code-climate-dark-mode.css
Last active April 26, 2022 19:39
CodeClimate extension dark mode
@media (prefers-color-scheme: dark) {
.cc-alert {
color: var(--color-scale-black);
}
.cc-issue-description {
color: var(--color-scale-black);
}
.cc-ext .cc-issue .ellipsis-expander {
@jamesgecko
jamesgecko / routes
Created July 11, 2019 19:38
Faster way to search Rails routes from the CLI
#! /usr/bin/env ruby
# Setup:
# Put this script in your path and make it executable.
# gem install nokogiri
#
# Usage:
# $ routes | grep index
require 'rubygems'
@jamesgecko
jamesgecko / Links in markdown.md
Last active December 21, 2018 21:52 — forked from jesstelford/Links in markdown.md
Putting links in code blocks on GitHub
@jamesgecko
jamesgecko / Copy TargetProcess link
Created September 4, 2018 14:44
For use in Violentmonkey
#!/usr/bin/env ruby
lookup = {
a: 'a', b: 'b', c: 'c', d: 'd', e: 'e', f: 'f', g: 'g', h: 'h',
i: 'i', j: 'j', k: 'k', l: 'l', m: 'm', n: 'n', o: 'o', p: 'p',
q: 'q', r: 'r', s: 's', t: 't', u: 'u', v: 'v', w: 'w', x: 'x',
y: 'y', z: 'z', A: 'A', B: 'B', C: 'C', D: 'D', E: 'E', F: 'F',
G: 'G', H: 'H', I: 'I', J: 'J', K: 'K', L: 'L', M: 'M', N: 'N',
O: 'O', P: 'P', Q: 'Q', R: 'R', S: 'S', T: 'T', U: 'U', V: 'V',
W: 'W', X: 'X', Y: 'Y', Z: 'Z'
@jamesgecko
jamesgecko / init.lua
Created August 10, 2017 17:25
hammerspoon config
-- Tap caps lock for esc, use caps lock with another key for ctrl.
send_escape = false
last_mods = {}
control_key_handler = function()
send_escape = false
end
control_key_timer = hs.timer.delayed.new(0.15, control_key_handler)
@jamesgecko
jamesgecko / Vagrantfile
Created December 9, 2016 18:07
A Vagrantfile suitable for running Rails applications
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
sudo apt-get -y update
sudo apt-get -y install curl git-core python-software-properties ruby-dev libpq-dev build-essential nginx libsqlite3-0 libsqlite3-dev libxml2 libxml2-dev libxslt1-dev nodejs postgresql postgresql-contrib imagemagick autoconf bison libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc