Skip to content

Instantly share code, notes, and snippets.

@fblanton
fblanton / Env Variables for NodeJS Apps.md
Last active February 28, 2024 19:31
Hiding NodeJS Secret Keys in .bash_profile

Hiding Secret Keys for your NodeJS app with Bash

GitHub is a great place to pubslish your code; and it is often required to post code there when learning to code. If you are writing a NodeJS app and being required to publish code to GitHub you should be careful of pushing any code that contains secret API keys. These keys could be scraped and used to write apps with your keys.

tl;dr

Don't have time to read all the stuff below. I get it. Add:

export KEY=value
export ANOTHER_KEY=anothervalue
@JamieMason
JamieMason / unfollow.js.md
Last active July 6, 2024 20:35
Unfollow everyone on twitter.com

Unfollow everyone on twitter.com

  1. Go to https://twitter.com/YOUR_USER_NAME/following
  2. Open the Developer Console. (COMMAND+ALT+I on Mac)
  3. Paste this into the Developer Console and run it
// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left)
// https://gist.github.com/JamieMason/7580315
//