Skip to content

Instantly share code, notes, and snippets.

def deep_ls(path: str, max_depth=1, reverse=False, key=None, keep_hidden=False):
"""List all files in base path recursively.
List all files and folders in specified path and subfolders within maximum recursion depth.
Parameters
----------
path : str
The path of the folder from which files are listed
max_depth : int
@0xjac
0xjac / private_fork.md
Last active May 8, 2024 05:12
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

@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"