Skip to content

Instantly share code, notes, and snippets.

View chadlavi's full-sized avatar
👨‍💻
Working

Chad Lavimoniere chadlavi

👨‍💻
Working
View GitHub Profile

Keybase proof

I hereby claim:

  • I am chadlavi on github.
  • I am chadlavi (https://keybase.io/chadlavi) on keybase.
  • I have a public key whose fingerprint is AAF5 8032 7735 D90F 8F2C 37B2 B0EB ED41 A393 6440

To claim this, I am signing this object:

@chadlavi
chadlavi / reddit_upvote_all.js
Last active April 2, 2017 03:10
js bookmarklet to updoot all posts on a page
javascript:(function(){$('div#siteTable%20.thing%20.up').trigger('click');}());
@chadlavi
chadlavi / find_ssh.sh
Created April 2, 2017 03:12
bash one-liner to get IPs of all the machines on local network that have ssh running and open
nmap -sV -p 22 192.168.0.1-254 | grep 'open\s*ssh' -B 3 | grep 192 | awk '{print $NF}'
@chadlavi
chadlavi / upload-sketch-to-git.sh
Last active September 10, 2021 10:51
shell script to work as middleware between Sketch and and git repo. syntax: 'upload.sh [filename] "optional commit message"'
#!/bin/sh
# some parts of this forked from https://github.com/blended/sketch-collaboration
# cf. https://github.com/chadlavi/sketch-collaboration
if [ ! `command -v jq` ]; then
echo "you need to install jq. If you use Homebrew, try 'brew install jq'"
exit 1
fi
if [ -z "$1 ]; then
@chadlavi
chadlavi / youtube-embedder.user.js
Last active October 16, 2020 23:19
a js script to embed youtube videos when a youtube url is present
// ==UserScript==
// @name youtube embedder
// @version 2.0.3
// @namespace https://gist.github.com/chadlavi/27c08ea6648d375c3f5de3ec7f43a015
// @downloadURL https://gist.github.com/chadlavi/27c08ea6648d375c3f5de3ec7f43a015/raw/youtube-embedder.user.js
// @updateURL https://gist.github.com/chadlavi/27c08ea6648d375c3f5de3ec7f43a015/raw/youtube-embedder.user.js
// @description embed youtube videos when a url is present
// @author Chad Lavimoniere
// @exclude http*://*youtube.com*
// @exclude http*://*facebook.com*
@chadlavi
chadlavi / hackernews-open-link-new-tab.user.js
Last active February 12, 2018 02:00
hacker news open links in new tabs
@chadlavi
chadlavi / techcrunch-open-new-tab.user.js
Last active February 12, 2018 01:58
open tech crunch links in new tabs
// ==UserScript==
// @name techcrunch open article in new tab
// @namespace https://gist.github.com/chadlavi/f5ca94ccd1aafed21d1e1e250dc954e0
// @downloadURL https://gist.github.com/chadlavi/f5ca94ccd1aafed21d1e1e250dc954e0/raw/techcrunch-open-new-tab.user.js
// @updateURL https://gist.github.com/chadlavi/f5ca94ccd1aafed21d1e1e250dc954e0/raw/techcrunch-open-new-tab.user.js
// @version 1.2
// @description Open tech crunch articles in new tabs
// @author You
// @match *techcrunch.com/*
// @grant none
@chadlavi
chadlavi / links-new-tab.user.js
Last active July 19, 2019 13:52
open external links in new tab
// ==UserScript==
// @name show titles
// @namespace https://gist.github.com/chadlavi/d4e0cf8af2d4f40bd0704fa61138acf0/raw/show-titles.user.js
// @downloadURL https://gist.github.com/chadlavi/d4e0cf8af2d4f40bd0704fa61138acf0/raw/show-titles.user.js
// @updateURL
// @version 1.1
// @description show the titles of older and newer entries
// @author Chad Lavimoniere
// @include http://6.f*.org/file/view/*
// @grant none
// ==UserScript==
// @name image hider
// @namespace https://gist.github.com/chadlavi/fae974f20b5d7567fbf6a94931a0e2d7
// @downloadURL https://gist.github.com/chadlavi/fae974f20b5d7567fbf6a94931a0e2d7/raw/image-hider.user.js
// @updateURL https://gist.github.com/chadlavi/fae974f20b5d7567fbf6a94931a0e2d7/raw/image-hider.user.js
// @version 1.26
// @description hide images until you want them
// @include https://6.f*.org/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js
// @copyright 2018, Chad Lavimoniere