Skip to content

Instantly share code, notes, and snippets.

Avatar
🍕

Chad Lavimoniere chadlavi

🍕
View GitHub Profile
View keybase.md

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 Apr 2, 2017
js bookmarklet to updoot all posts on a page
View reddit_upvote_all.js
javascript:(function(){$('div#siteTable%20.thing%20.up').trigger('click');}());
@chadlavi
chadlavi / find_ssh.sh
Created Apr 2, 2017
bash one-liner to get IPs of all the machines on local network that have ssh running and open
View find_ssh.sh
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 Sep 10, 2021
shell script to work as middleware between Sketch and and git repo. syntax: 'upload.sh [filename] "optional commit message"'
View upload-sketch-to-git.sh
#!/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 Oct 16, 2020
a js script to embed youtube videos when a youtube url is present
View youtube-embedder.user.js
// ==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 Feb 12, 2018
hacker news open links in new tabs
View hackernews-open-link-new-tab.user.js
@chadlavi
chadlavi / techcrunch-open-new-tab.user.js
Last active Feb 12, 2018
open tech crunch links in new tabs
View techcrunch-open-new-tab.user.js
// ==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 Jul 19, 2019
open external links in new tab
View links-new-tab.user.js
View show-titles.user.js
// ==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
View image-hider.user.js
// ==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