Skip to content

Instantly share code, notes, and snippets.

View bongardino's full-sized avatar

Mike Bongardino bongardino

View GitHub Profile
set text item delimiters to linefeed
tell application "Google Chrome" to URL of tabs of windows as text
#!/usr/bin/env sh
# credit: https://github.com/doitintl/kube-no-trouble/blob/master/scripts/install.sh
# Set strict error checking
set -euf
LC_CTYPE=C
# Enable debug output if $DEBUG is set to true
[ "${DEBUG:="false"}" = "true" ] && set -x
@bongardino
bongardino / gist:e3572ea4983ec9c536c042367902707f
Created March 3, 2021 15:28
view chrome extension source. what is it reaaallly doing?
extension_id=jifpbeccnghkjeaalbbjmodiffmgedin # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc"
unzip -d "$extension_id-source" "$extension_id.zip"

Keybase proof

I hereby claim:

  • I am bongardino on github.
  • I am bongardino (https://keybase.io/bongardino) on keybase.
  • I have a public key ASCLzRZhx5-J4cn6Xo0efedLFLA97AWwM2k7XvnyQvYDNgo

To claim this, I am signing this object:

bip -l vault bastion | xargs -I {} bssh {} 'the command(s)'
@bongardino
bongardino / Find all, exclude Permission denied
Last active March 21, 2019 20:07
nix things I always google
# find all, minus permisson errors
find / -type f -iname "*rotate*" 2>/dev/null
# find the biggest files / directories
sudo du -a / 2>/dev/null | sort -n -r | head -n 20
@bongardino
bongardino / gist:e730a6bbb545ed852511605c6f16409a
Last active November 3, 2018 00:05
resolve $t_ // uninitialized constant Twitter::REST::Client::BASE_URL
Go to https://apps.twitter.com/
Ensure your app (whether newly created or otherwise) has Read, Write and Access direct messages permissions
Locally run gem install twurl
Run twurl authorize --consumer-key {YOUR APP'S CONSUMER KEY} --consumer-secret {YOUR APP'S CONSUMER SECRET}
Follow the steps it requests that you do
Copy ~/.twurlr to ~/.trc
Essentially copy the file generated by twurl
curl -LJO
ie
curl -LJO https://raw.githubusercontent.com/bongardino/warm_welcome/master/macos.sh
pyenv shell 2.7.15
pip install cython
pip install hidapi
pip uninstall hid
python vsbutil.py setkeys shift+h e l l o comma space w o r l d shift+1
https://github.com/gregcourville/VerySeriousButton-vsbutil