Skip to content

Instantly share code, notes, and snippets.

View 2fd5's full-sized avatar

magicfriday 2fd5

  • Spirulena
  • Multiverse
View GitHub Profile
@2fd5
2fd5 / image_list.txt
Last active July 8, 2025 12:48
image list
https://upload.wikimedia.org/wikipedia/commons/a/aa/Wroclaw_-_Ostrow_Tumski.jpg
https://images-assets.nasa.gov/image/as17-146-22294/as17-146-22294~large.jpg
https://images-assets.nasa.gov/image/as11-40-5875/as11-40-5875~large.jpg
@2fd5
2fd5 / private_fork.md
Created August 11, 2022 12:14 — forked from 0xjac/private_fork.md
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 git@github.com:usi-systems/easytrace.git

@2fd5
2fd5 / parent-exec-shell.sh
Created February 22, 2021 18:27
detect parent shell, create alias and exec parent shell so that alias is available immediately
#!/usr/bin/env sh
echo "Running script"
shell_running_script=$(ps -p $$ | tail -n1 | awk '{print $NF}')
echo "Shell running this script : ${shell_running_script}"
# Another way to get PPID
#ppid=$(ps -o ppid= -p $$)