Skip to content

Instantly share code, notes, and snippets.

View tomhockett's full-sized avatar
🐺
In Yellowstone

Tom Hockett tomhockett

🐺
In Yellowstone
View GitHub Profile
@tomhockett
tomhockett / scratch
Last active August 19, 2023 18:29
Bash Scratchpad
#!/bin/bash
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo " ---------------------------------------"
echo "Usage: scratch <file_type>"
echo " scratch open [last|folder]"
echo " scratch trash [last|all]"
echo " scratch list"
echo " scratch list <file_type>"
echo " ---------------------------------------"
@tomhockett
tomhockett / .ideavimrc
Last active July 27, 2021 17:21
Current .ideavimrc
" === RubyMine Setup ===
" ideavim emulated plugins
set commentary
set highlightedyank
set ideajoin
set ideamarks
set multiple-cursors
set noerrorbell
set surround
set textobj-entire
@tomhockett
tomhockett / vimium_gruvbox_dark.css
Created February 15, 2021 16:05
Vimium Gruvbox dark theme
div > .vimiumHintMarker {
padding: 2px 3px;
background-color: #282828;
border: 0;
border-radius: 2px;
box-shadow: 0em 0.1em 0.6em 0.1em rgba(0, 0, 0, 0.4);
background-image: none;
}
div > .vimiumHintMarker span {
@tomhockett
tomhockett / vimium_mappings.txt
Last active February 15, 2021 16:06
Vimium keybindings
# navigating history and scrolling ({h,H} and {l,L} are swapped by default
map h goBack
map l goForward
map H scrollLeft
map L scrollRight
# open link in new tab (F by default, but e is 1 less keystroke)
map e LinkHints.activateModeToOpenInNewTab
# open link in new tab and switch to it
map w LinkHints.activateModeToOpenInNewForegroundTab
# self explanatory, i do this often
@tomhockett
tomhockett / arux.yml
Created December 22, 2020 00:09
Tmuxinator Arux Startup
#This utilitizes a tool called tmuxinator: https://github.com/tmuxinator/tmuxinator
# Install the latest version of tmux with `brew install tmux`
# Install tmuxinator with `gem install tmuxinator`
# Copy this file to ~/.config/tmuxinator/arux.yml
# Proxy requires your computer's password, so set an environment variable called PASSWORD containing it:
# export PASSWORD="yourpassword"
# Get everything up and running with `tmuxinator start arux`
name: arux
root: ~/Arux
@tomhockett
tomhockett / monokai_pro.json
Created July 3, 2019 00:37
[Monokai Pro] Color profile for iTerm2 #iTerm2
{
"Link Color" : {
"Red Component" : 0.023000000044703484,
"Color Space" : "Calibrated",
"Blue Component" : 0.67799997329711914,
"Alpha Component" : 1,
"Green Component" : 0.27000001072883606
},
"Tags" : [
@tomhockett
tomhockett / md_cheatsheet.md
Last active December 23, 2023 04:43
[Markdown Cheatsheet] A cheatsheet on Markdown in Markdown #markdown #cheatsheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
@tomhockett
tomhockett / Rakefile
Last active July 2, 2019 17:54
[Personal Rakefile] Rakefile for personal use
# Deletes all files in the ./temp directory.
namespace :admin do
desc 'Interactivly delete all files in /temp'
task :clean_tmp do
Dir['/tmp/*'].each do |f|
next unless File.file?(f)
print "Delete #{f}? "
answer = $stdin.gets
case answer