Skip to content

Instantly share code, notes, and snippets.

@0xjac
0xjac / private_fork.md
Last active May 2, 2024 09:55
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@shreyansb
shreyansb / golang_errors.py
Created January 13, 2013 21:38
#golang style errors in python. like it so far.
@app.route("/<user_id>/facebook_id", methods=["PUT"])
def put_facebook_id(user_id):
fb_d, err = get_facebook_data_from_cookie(request)
if err:
return json_error(err)
else:
# save and return success
pass
def get_facebook_data_from_cookie(request):