Skip to content

Instantly share code, notes, and snippets.

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

Marcelo Veiga Neves mvneves

🏠
Working from home
  • PUCRS | Nubo
  • Porto Alegre, Brazil
  • 01:42 (UTC -03:00)
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/**\*
@magnetikonline
magnetikonline / README.md
Last active March 14, 2024 13:29
NSSM - the Non-Sucking Service Manager cheatsheet.
@pazdera
pazdera / gist:1098119
Created July 21, 2011 20:25
Singleton example in C++
/*
* Example of a singleton design pattern.
* Copyright (C) 2011 Radek Pazdera
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,