git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| #!/usr/bin/env python | |
| #https://gist.github.com/bradmontgomery/2219997 | |
| """ | |
| Very simple HTTP server in python. | |
| Usage:: | |
| ./dummy-web-server.py [<port>] | |
| Send a GET request:: | |
| curl http://localhost |
| import binascii | |
| import struct | |
| class Punk(object): | |
| _END_CHUNK_TYPE = 'IEND' | |
| _PUNK_CHUNK_TYPE = 'puNk' | |
| _MAX_BYTES = 2147483647 | |
| _chunks = dict() |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb
| #!/usr/local/bin/python | |
| """Replacement for htpasswd""" | |
| # Original author: Eli Carter | |
| import os | |
| import sys | |
| import random | |
| from optparse import OptionParser | |
| # We need a crypt module, but Windows doesn't have one by default. Try to find |
| DOMAIN ?= mydomain.com | |
| COUNTRY := IT | |
| STATE := IT | |
| COMPANY := Evil Corp. | |
| # credits to: https://gist.github.com/fntlnz/cf14feb5a46b2eda428e000157447309 | |
| # usage: |
| #!/bin/bash | |
| set -e | |
| AAPT="/path/to/android-sdk/build-tools/23.0.3/aapt" | |
| DX="/path/to/android-sdk/build-tools/23.0.3/dx" | |
| ZIPALIGN="/path/to/android-sdk/build-tools/23.0.3/zipalign" | |
| APKSIGNER="/path/to/android-sdk/build-tools/26.0.1/apksigner" # /!\ version 26 | |
| PLATFORM="/path/to/android-sdk/platforms/android-19/android.jar" |
| Configure Raspberry Pi 3B+ as an AP |
| Configure Raspberry Pi 4B as an AP | |
| - use virtual interface wlan0_ap |