Skip to content

Instantly share code, notes, and snippets.

View bongardino's full-sized avatar

Mike Bongardino bongardino

View GitHub Profile
@bongardino
bongardino / til.md
Last active June 28, 2018 02:44
daily introspection

TIL - Today I learned

6/17

You can chain `/*` after an `ls` to travrse child folders.

ex:
~ ❯ ls Movies/*
Movies/Final Cut Backups.localized:
Untitled
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
curl -LJO
ie
curl -LJO https://raw.githubusercontent.com/bongardino/warm_welcome/master/macos.sh
@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
@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
bip -l vault bastion | xargs -I {} bssh {} 'the command(s)'

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:

@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"
#!/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