Skip to content

Instantly share code, notes, and snippets.

@Gavinok
Gavinok / cloudSettings
Last active December 14, 2018 05:36
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-12-14T05:36:45.088Z","extensionVersion":"v3.2.3"}
@Gavinok
Gavinok / cloudSettings
Created October 2, 2018 18:59
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-10-02T18:59:01.884Z","extensionVersion":"v3.1.2"}
@Gavinok
Gavinok / surfingkeys.js
Last active December 19, 2018 19:43
this is my config for Surfingkeys chrome extension
// vim: filetype=c
map("K", "R");
map(" k", "R");
map("J", "E");
map(" j", "E");
map("H", "S");
map(" h", "S");
map(" l", "D");
map("L", "D");
map(">_F", "F");
@Gavinok
Gavinok / tmux.conf
Created December 29, 2018 20:03
Here is a copy of my tmux conf
#neovim curser support
set -ga terminal-overrides ',*:Ss=\eE[%p1%d q:Se=\eE[2 q'
# Our .tmux.conf file
# Setting the prefix from C-b to C-s
set -g prefix C-a
# Free the original Ctrl-b prefix keybinding
unbind C-b
#setting the delay between prefix and command
set -sg escape-time 1
@Gavinok
Gavinok / cVim.conf
Last active February 26, 2019 20:54
set cncpcompletion
set completeonopen
let barposition = "bottom"
let mapleader = " "
imap <C-o> editWithVim
map <C-f> scrollFullPageDown
map <C-b> scrollFullPageUp
map <C-d> scrollPageDown
map <C-u> scrollPageUp
map <C-j> scrollDown
String file contents
@Gavinok
Gavinok / .vimrc
Created December 2, 2019 07:50
Here is a minimal vimrc that I used to test the omni completion issue seen in vim-lsp issue #578
" install: curl https://raw.githubusercontent.com/prabirshrestha/vim-lsp/master/minimal.vimrc -o /tmp/minimal.vimrc
" uninstall: rm /tmp/plug.vim && rm -rf /tmp/plugged
" run vim/neovim with minimal.vimrc
" vim -u minimal.vimrc
" :PlugInstall
set nocompatible hidden laststatus=2
if !filereadable('/tmp/plug.vim')
silent !curl --insecure -fLo /tmp/plug.vim
@Gavinok
Gavinok / psave.sh
Last active October 30, 2022 15:04
A powersaving script targeted towards the thinkpad x200 on arch linux
#!/usr/bin/env sh
######################################################################
# @author : Gavin Jaeger-Freeborn ([email protected])
# @file : psave.sh
# @created : Thu 05 Dec 2019 01:03:47 PM MST
#
# @description : This is a simple script used for managing power.
# Simply set this as a cronjob (i have it run every 15
# minutes). This script is specific to my thinkpad x200, I
@Gavinok
Gavinok / Minimal Gist Support Using Hub
Last active May 1, 2020 19:35
Create a gist using githubs hub cli program
command! -range=% Gist silent execute <line1> . "," . <line2> . "w !hub gist create -c -"
@Gavinok
Gavinok / urlgrabber.sh
Last active July 6, 2020 23:34
Collect urls from all surf windows in the current view.
WINDOWS=$(xprop -root | grep '^_NET_CLIENT_LIST(WINDOW).*' |sed -e 's/^.*# //' -e 's/, /\n/g')
echo "$WINDOWS" | while read window; do
if xprop -id $window | grep 'Surf' > /dev/null; then
xprop -id $window | grep '_SURF_URI(STRING) = ' | cut -d'"' -f 2
fi
done