Skip to content

Instantly share code, notes, and snippets.

View yeephycho's full-sized avatar
🤔

yeephycho yeephycho

🤔
View GitHub Profile
@yeephycho
yeephycho / useful_linux_commands.sh
Last active March 21, 2018 07:56
compress folder command
#!/usr/bin/env bash
# tar command
# tar compress folder
tar -zcvf archive-name.tar.gz directory-name
# tar extract file
tar -zxvf archive-name.tar.gz -C /tmp
@yeephycho
yeephycho / tar_commands.sh
Created March 21, 2018 07:35
compress folder command
#!/usr/bin/env bash
# tar compress folder
tar czf output_archive_file.tar.gz directory_name
@yeephycho
yeephycho / Generate_Image_Filename_List.py
Created January 24, 2017 08:16
Find all *.jpg images under a folder in python
import os
from glob import glob
filename_list = glob(os.path.join("./image_folder", "*.jpg"))
for filename in filename_list:
print filename