Skip to content

Instantly share code, notes, and snippets.

View nitheeshkm's full-sized avatar
🎯
Focusing

Nitheesh Manjunath nitheeshkm

🎯
Focusing
View GitHub Profile
@nitheeshkm
nitheeshkm / private_fork.md
Created April 22, 2023 01:42 — 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

@nitheeshkm
nitheeshkm / handle-ctrl-c.py
Created March 1, 2021 18:51
Handle CTRL+C in Python
#!/usr/bin/env python
import signal
import sys
def signal_handler(signal, frame):
sys.exit(0)
signal.signal(signal.SIGINT, signal_handler)