$ git branch -m master main
$ git push origin main
- Change "Default Branch" in Settings->Branches on github. https:github.com/your/repo/settings/branches.
- Accept any warnings about changing the default branch.
- If you have any branch protection rules that affect the
master
branch, delete them. $ git push origin :master
- If you had any branch protection rules affecting the
master
branch, recreate them on themain
branch. - Look through your repo for references to
master
and replace withmain
as necesary.- Examples of this include URLs to a file in the REPO that are not relative
- If you get a warning "Your branch is based on 'origin/master', but the upstream is gone." then use the command it recommends:
git branch --unset-upstream
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<!-- Using this pre-ES6 fork of Dracula https://github.com/grigoryk/dracula-js-fork --> | |
<script type="text/javascript" src="dracula-js-fork/raphael-min.js"></script> | |
<script type="text/javascript" src="dracula-js-fork/dracula_graph.js"></script> | |
<script type="text/javascript" src="dracula-js-fork/dracula_algorithms.js"></script> | |
<script type="text/javascript" src="dracula-js-fork/dracula_graffle.js"></script> | |
<script type="text/javascript" src="dracula-js-fork/seedrandom.js"></script> | |
<script> | |
function drawGraph() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on https://twitter.com/stokfredrik/status/1185580290108018694 | |
# Turns into a bash function to ease use further | |
# Relies on: | |
# - https://github.com/tomnomnom/unfurl | |
# - https://github.com/michenriksen/aquatone | |
# - https://cli.shodan.io/ | |
# Put this function in your .bash_profile or .bashrc file and then source it and you can use it like so: | |
# $ prowl elasticsearch | |
function prowl { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, request, Response | |
import requests | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): | |
url = requests.args.get("url") | |
r = requests.get(url) | |
return Response(r) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from flask import Flask, request, Response | |
app = Flask(__name__) | |
@app.route('/', defaults={'path': ''}, methods=['GET', 'POST']) | |
@app.route('/<path:path>', methods=['GET', 'POST']) | |
def catch_all(path): | |
if request.form: |
I hereby claim:
- I am 0xdade on github.
- I am dade (https://keybase.io/dade) on keybase.
- I have a public key ASDoG6G5j-BprfJi_lqfeOzU-n5EYAOLuucR6uECqM6yXwo
To claim this, I am signing this object:
NewerOlder