Skip to content

Instantly share code, notes, and snippets.

View BBlackwo's full-sized avatar

Benjamin B BBlackwo

View GitHub Profile
@BBlackwo
BBlackwo / hide-wtf-and-trending-on-twitter.js
Last active October 2, 2020 06:18
Tampermonkey script to hide the WtF (Who to Follow) and Trending modules on the side of Twitter
@BBlackwo
BBlackwo / index.js
Last active July 25, 2018 05:10 — forked from zkat/index.js
npx is cool
#!/usr/bin/env node
console.log('yay gist');
const { version, name } = require('./package.json');
console.log(version, name);
console.log(process.cwd());
console.log(__dirname);
@BBlackwo
BBlackwo / find-and-sed-create-index-js-files.sh
Last active January 24, 2018 04:51
find + sed to create `index.js` files
find . -type f -name '*.js' \
-not -name '*.specs.js' \
-not -name '*.spec.js' \
-not -name '*.fn.js' \
-not -name '*.page.js' \
-not -name 'index.js'|\
sed "s/^/import \'/g" |\
sed 's/.js$/\';/g' \
> index.js
@BBlackwo
BBlackwo / kraken.fish
Created March 1, 2017 08:05
Open GitKraken from the terminal
## Forked from https://gist.github.com/dersam/0ec781e8fe552521945671870344147b
## Also received help from https://twitter.com/gitkraken/status/691675309725368321
## Open GitKraken using the current repo directory.
## This code is for fish shell. The same thing can be done in bash
## by creating an alias with the command below.
## `1>/dev/null` directs logs from the terminal
## `&` allows use of the same terminal instance to do other things