Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
#!/bin/sh | |
# Given a linux zimage, extract the vmlinux file. Useful for getting symbols into gdb when debugging linux kernels | |
# Requires binwalk for extracting the slightly malformed xz data | |
set -e | |
file=$1 | |
# Get 2nd offset of 7zXZ |
# To use this custom JsonEncoder class, you have to create a __json__() named | |
# function in each sqlalchemy model class, which basically return a list of model | |
# class attributes to be parsed, otherwise all attributes are processed present | |
# in `dir(class_name)`. | |
# | |
# Model Example: | |
# class User(db.Model): | |
# id = db.Column(db.Integer, primary_key=True) | |
# name = db.Column(db.String(100)) | |
# email = db.Column(db.String(100)) |
Sometimes it is necessary (and desireable) to work on a git repository on multiple development machines. We want to be able to push and pull between repositories without having to use an intermediary bare repository, and for this to work symetrically in both repositories.
First clone we clone an existing repository:
git clone ssh://user@hostname:/path/to/repo
By default this will name the remote as origin, but let's assume we want to reserve that name for a master repository that commits will eventually get pushed to: