Skip to content

Instantly share code, notes, and snippets.

View jaymcgavren's full-sized avatar

Jay McGavren jaymcgavren

View GitHub Profile
# Add to config file for https://github.com/jigish/slate
bind f11 shell '/usr/local/bin/tmux send-keys -t 0 C-p'
bind f12 shell '/usr/local/bin/tmux send-keys -t 0 C-n'
@jaymcgavren
jaymcgavren / ditch_intercom.txt
Created June 5, 2017 03:39
Template for a reply to paste into Intercom messages encouraging site to stop using Intercom.
Hi, [SENDER],
[ACKNOWLEDGE MESSAGE]
I'm writing about a totally different topic, though. It looks like your site is using Intercom, or some similar service. I don't know if you're as frustrated as I am with all the popups that intrude on everyone's daily work. But Intercom is just adding to the problem. It doesn't matter what the message is - odds are that it's not relevant to whatever task one is trying to carry out at the moment. The messages are a distraction.
Your product is great. But Intercom really hinders its usability. I hope you and your company will consider removing it from your site.
Sincerely,
[YOUR NAME]
#!/usr/bin/env sh
# Create a new history file with simple, common commands removed
grep -v -E '^(exit|cd ..|git pull|git push|git status|git diff|git log|git checkout master|emacs .|rspec|rails c|bundle install|ls|rvm info|rails s|rake db:migrate|open .|tmux)\s*$' ~/.bash_history >> ~/.bash_history_cleaned
# Find top candidates for a 'grep -v' command of your own:
sort ~/.bash_history_cleaned | uniq --count | sort -n | tail -n 25
@jaymcgavren
jaymcgavren / 2016.txt
Last active April 2, 2017 04:32
Jay's Spotify Playlists
Progress: |==================================================================================================================================================================================================================================================================|
1. Fushigi Man -- Himuro Yoshiteru -- Fushigi Man EP
2. Letting Go -- Ketsa -- Mind Music Matter
3. Easily -- Grimes -- Art Angels
4. Favriel -- Grimes -- Halfaxa
5. Bootprint -- Himuro Yoshiteru -- Fushigi Man EP
6. Mighty feat. JFTH -- Caravan Palace -- <I°_°I>
7. Takhos -- Himuro Yoshiteru -- Fushigi Man EP
body {
background-color: #edeff0;
font-family: "Helvetica", Arial, sans-serif;
padding: 40px;
text-align: center;
color: #333;
font-size: 18px;
}
h1 {
git clone http://github.com/mame/optcarrot.git && cd optcarrot && brew install sdl2 && rvm use 2.3.1@optcarrot --ruby-version --create && bundle install && bin/optcarrot --video=sdl2 --audio=sdl2 --input=sdl2 examples/Lan_Master.nes
@jaymcgavren
jaymcgavren / log.txt
Last active October 25, 2016 18:47
Setup and use of a custom "git amend" command to quickly alter the last commit. Tweaked from https://hackernoon.com/lesser-known-git-commands-151a1918a60
$ git config --global alias.amend 'commit --amend --no-edit'
$ git add .ruby-gemset
$ git commit -m "Set up rvm."
[master (root-commit) 53e0270] Set up rvm.
1 file changed, 1 insertion(+)
create mode 100644 .ruby-gemset
$ git add .ruby-version
$ git amend
[master b52d508] Set up rvm.
Date: Tue Oct 25 11:21:48 2016 -0700
https://www.youtube.com/watch?v=WoDxS1MXg5Y
@jaymcgavren
jaymcgavren / home_dir_homebrew.sh
Last active July 27, 2022 23:56
Install Homebrew to your home directory. Great for running Homebrew as a guest user on a Mac.
git clone https://github.com/Homebrew/brew.git
export PATH=${HOME}/brew/bin:${PATH}
> User: decrease_width_left.jsx --- Default: Opt+Shift+Cmd+.
> User: decrease_width_right.jsx --- Default: Opt+Shift+Cmd+,
> User: increase_width_left.jsx --- Default: Shift+Cmd+,
> User: increase_width_right.jsx --- Default: Shift+Cmd+.
> Delete one character to the right --- Text: Del, Text: Shift+Del, Text: Ctrl+D
> Delete one word to the left --- Text: Opt+Delete
> Move down one line --- Text: Down Arrow, Text: Ctrl+N
> Move to beginning of story --- Text: Opt+Shift+,
> Move to end of story --- Text: Opt+Shift+.
> Move to the end of the line --- Text: End, Text: Cmd+Right Arrow, Text: Ctrl+E