Skip to content

Instantly share code, notes, and snippets.

View patnebe's full-sized avatar
🎯
Focusing

Okwudili Pat-Nebe patnebe

🎯
Focusing
  • London, United Kingdom
  • 19:19 (UTC)
  • X @patnebe
View GitHub Profile
@patnebe
patnebe / Algorithm_Fridays_Challenge_9_4_2021
Last active April 12, 2021 18:58
Algorithm Fridays Challenge One
Algorithm Fridays Code Snippet
@patnebe
patnebe / heroku-remote.md
Created July 14, 2020 13:59 — forked from randallreedjr/heroku-remote.md
Add a Heroku remote to an existing git repo

Working with git remotes on Heroku

Generally, you will add a git remote for your Heroku app during the Heroku app creation process, i.e. heroku create. However, if you are working on an existing app and want to add git remotes to enable manual deploys, the following commands may be useful.

Adding a new remote

Add a remote for your Staging app and deploy

Note that on Heroku, you must always use master as the destination branch on the remote. If you want to deploy a different branch, you can use the syntax local_branch:destination_branch seen below (in this example, we push the local staging branch to the master branch on heroku.

$ git remote add staging https://git.heroku.com/staging-app.git

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@patnebe
patnebe / 1.md
Created January 4, 2020 14:25 — forked from swyxio/1.md
Learn In Public - 7 opinions for your tech career

1. Learn in public

this essay has been updated on my personal site, together with a followup on how to get started

If there's a golden rule, it's this one, so I put it first. All the other rules are more or less elaborations of this rule #1.

You already know that you will never be done learning. But most people "learn in private", and lurk. They consume content without creating any themselves. Again, that's fine, but we're here to talk about being in the top quintile. What you do here is to have a habit of creating learning exhaust. Write blogs and tutorials and cheatsheets. Speak at meetups and conferences. Ask and answer things on Stackoverflow or Reddit. (Avoid the walled gardens like Slack and Discourse, they're not public). Make Youtube videos or Twitch streams. Start a newsletter. Draw cartoons (people loooove cartoons!). Whatever your thing is, make the thing you wish you had found when you were learni