Skip to content

Instantly share code, notes, and snippets.

View haydenbr's full-sized avatar

Hayden Braxton haydenbr

View GitHub Profile
@markshust
markshust / hosts
Last active February 12, 2021 22:20
Notion DNS servers in the event of an outage...
# Add the following records to your DNS config
## Mac: /etc/hosts
## Windows: C:\Windows\System32\drivers\etc\hosts
104.18.23.110 admin-stg.notion.so
104.18.23.110 aif.notion.so
104.18.23.110 analytics-iframe.notion.so
104.18.23.110 analytics.pgncs.notion.so
104.18.23.110 api.notion.so
104.18.23.110 api.pgncs.notion.so
104.18.23.110 dev.notion.so
@gubatron
gubatron / compiling_building_c_cpp_notes.md
Last active April 18, 2024 07:58
Things to remember when compiling and linking C/C++ programs

Things to remember when compiling/linking C/C++ software

by Angel Leon. March 17, 2015;

Last update on December 14, 2023

Updated on February 27, 2023

Updated August 29, 2019.

@niksumeiko
niksumeiko / git.migrate
Last active April 30, 2024 12:54
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.