Skip to content

Instantly share code, notes, and snippets.

View naveen's full-sized avatar

naveen naveen

View GitHub Profile
@naveen
naveen / twitter-followings-archive
Last active February 20, 2022 16:53
push all currently following into twitter list (backup / archive) using t tool and twurl
# push all currently following into twitter list (backup / archive) using t tool and twurl
#
# a temp hack, as the t tool should do both but i can't get [t followings | xargs t list add following-`date "+%Y-%m-%d"`] to work
# get list of usernames
t followings > followings.txt
# break into 100 username chunks, comma-separated
twurl -d 'screen_name=twitter,twittersupport&list_id=NNNNNN' /1.1/lists/members/create_all.json
@naveen
naveen / scrubs
Last active December 2, 2021 05:50
Scrubs: Your monthly notice to go through and disconnect unused applications across various services.
Your monthly notice to go through and disconnect unused applications across various services.
Twitter: https://twitter.com/settings/applications
Dropbox: https://www.dropbox.com/account/connected_apps
Facebook: https://www.facebook.com/settings?tab=applications
Google Apps: https://security.google.com/settings/security/permissions?pli=1
Google Ads: http://www.google.com/ads/preferences
Google Account: https://security.google.com/settings/security/secureaccount
Foursquare: https://foursquare.com/settings/connections
Instagram: https://instagram.com/accounts/manage_access
@naveen
naveen / zoom.sh
Created June 18, 2020 20:33
shows the "Always open links to this application" checkbox so that links to apps, e.g. Zoom, don't keep bugging you
> defaults read com.google.Chrome ExternalProtocolDialogShowAlwaysOpenCheckbox
2020-06-18 13:28:27.183 defaults[80133:1281571]
The domain/default pair of (com.google.Chrome, ExternalProtocolDialogShowAlwaysOpenCheckbox) does not exist
> defaults write com.google.Chrome ExternalProtocolDialogShowAlwaysOpenCheckbox -bool true
> #restart zoom
3Box is a social profiles network for web3. This post links my 3Box profile to my Github account!
✅ did:muport:QmU9xE5GR2rrXisyqUYLLB7sKMfuBnfU6ksbHeNASH8TKa ✅
Create your profile today to start building social connection and trust online. https://3box.io/
@naveen
naveen / dns
Created September 6, 2018 20:58
cloudflare DNS servers – https://1.1.1.1/
1.1.1.1
1.0.0.1
Verifying my Blockstack ID is secured with the address 19vh8acTXVtxE8NhRi5HxJkXaVoCgpajxx https://explorer.blockstack.org/address/19vh8acTXVtxE8NhRi5HxJkXaVoCgpajxx
@naveen
naveen / good-brews
Last active January 24, 2017 03:43
brews to remember on a new install (or when you're on a machine that is basic...so basic)
brew install nginx
brew install httpie
brew install tmux
brew install tig
brew install ack
brew install iftop mongodb pcre pv gettext nginx parallel pkg-config
@naveen
naveen / group-genstrings.sh
Created December 4, 2013 16:04
To genstrings, grouped by filename (Using https://github.com/samwize/localized)
python -c "import urllib2; exec urllib2.urlopen('https://raw.github.com/samwize/localized/master/genstrings.py').read()" > Localizable.strings
@naveen
naveen / genstrings-r.sh
Created December 3, 2013 20:55
recurse *.m for strings
find . -name \*.m | xargs genstrings
@naveen
naveen / an-nginx-https-config
Last active December 18, 2015 09:18
nginx http+https (www.* and api.*)
Generate Certificates
To generate private (dummy) certificates you can perform the following list of openssl commands.
First change directory to where you want to create the certificate and private key, for example:
$ cd /usr/local/nginx/conf
Now create the server private key:
$ openssl genrsa -out server.key 2048
You can also create a private key with a passphrase, but you will need to enter it every time you start nginx: