Skip to content

Instantly share code, notes, and snippets.

View naliferopoulos's full-sized avatar
⚙️
Continuously integrating

Nick Aliferopoulos naliferopoulos

⚙️
Continuously integrating
View GitHub Profile
@naliferopoulos
naliferopoulos / git-unravel.sh
Created November 16, 2021 08:55
Unravel a git repository in multiple ones in a historical fashion
#! /bin/bash
# Example: ./unravel.sh myrepo
REPO=$1
BRANCH="master"
count=0
pushd $REPO
for commit in $(git rev-list $BRANCH | tail -r)
@naliferopoulos
naliferopoulos / kali.sh
Last active November 11, 2021 15:34
Kali Linux Persistent Docker Image
#!/bin/sh
# If this the first time this is run, please run the following command manually:
# docker run --name kali -u 0 --mount type=bind,source=$PWD,target=/host -it kalilinux/kali /bin/bash
docker rm kali 1>/dev/null 2>/dev/null
docker run --name kali -u 0 --mount type=bind,source=$PWD,target=/host -it infidel/kali /bin/bash
echo "Committing changes..."
docker commit kali infidel/kali:latest 1>/dev/null
docker stop kali 1>/dev/null