Skip to content

Instantly share code, notes, and snippets.

View lovettchris's full-sized avatar

Chris Lovett lovettchris

View GitHub Profile
@micjabbour
micjabbour / cred_read.py
Created August 8, 2020 12:40
A Python script to dump all stored credentials from Windows Credential Manager into standard output.
"""
A Python script to dump all stored credentials from Windows Credential Manager into standard
output. It uses ctypes to interface with functions from Win32 Security and Identity API in order to
retrieve credentials for the current user.
Start using:
python cred_read.py
"""
import ctypes
@0xjac
0xjac / private_fork.md
Last active December 5, 2025 18:37
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 [email protected]:usi-systems/easytrace.git

@sephiroth74
sephiroth74 / git pretty stat
Last active November 19, 2025 05:10
Show lines added/deleted and total commits per author in a period of time on all branches
git log --all --numstat --pretty="%H" --author="author" --since=1.year | awk 'NF==3 {plus+=$1; minus+=$2} NF==1 {total++} END {printf("lines added: +%d\nlines deleted: -%d\ntotal commits: %d\n", plus, minus, total)}'