Skip to content

Instantly share code, notes, and snippets.

View hejm37's full-sized avatar

Jiamin hejm37

View GitHub Profile
import argparse
import subprocess
import os
import os.path as osp
import time
def scandir(dir_path, suffix=None):
for entry in os.scandir(dir_path):
if not entry.name.startswith('.') and entry.is_file():
import argparse
import subprocess
import json
# debug
# subprocess.call = print
def load_from_path(filepath, mode='r', **kwargs):
@hejm37
hejm37 / setup.sh
Created April 27, 2019 07:53 — forked from bradp/setup.sh
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install