Skip to content

Instantly share code, notes, and snippets.

View kpfromer's full-sized avatar
🏠
Working from home

Kyle Pfromer kpfromer

🏠
Working from home
View GitHub Profile

Zip excluding specific directories

Exclude .git file and node_modules directory

$ zip -r9 [target_file] [source_file] -x *.git* node_modules/\*

Exclude .git file and files in node_modules directory, but keep node_modules directory

$ zip -r9 [target_file] [source_file] -x *.git* node_modules/**\*
@kpfromer
kpfromer / rPi3-ap-setup.sh
Created September 3, 2018 16:46 — forked from Lewiscowles1986/rPi3-ap-setup.sh
Raspberry Pi 3 access-point-setup
#!/bin/bash
#
# This version uses September 2017 august stretch image, please use this image
#
if [ "$EUID" -ne 0 ]
then echo "Must be root"
exit
fi