Skip to content

Instantly share code, notes, and snippets.


Mayne mayneyao

View GitHub Profile
mayneyao /
Created August 4, 2019 15:49 — forked from PurpleBooth/
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


mayneyao / github.bash
Created March 5, 2019 07:46 — forked from igrigorik/github.bash
Open GitHub URL for current directory/repo...
View github.bash
alias gh="open \`git remote -v | grep | grep fetch | head -1 | cut -f2 | cut -d' ' -f1 | sed -e's/:/\//' -e 's/git@/http:\/\//'\`"
mayneyao /
Created April 13, 2018 04:15 — forked from aunyks/
Hash a large file in Python
import hashlib as hash
# Specify how many bytes of the file you want to open at a time
sha = hash.sha256()
with open('kali.iso', 'rb') as kali_file:
file_buffer =
while len(file_buffer) > 0: