Skip to content

Instantly share code, notes, and snippets.

@AtomicSmash
AtomicSmash / zip-exclude
Last active December 16, 2015 15:49
SSH - zip while exluding certain folders
zip -r backup.zip $target -x "folder/to/exclude*" "another/folder/to/exclude*"
@AtomicSmash
AtomicSmash / Big Dump
Last active December 16, 2015 05:19
Amazing script original written by Alexey Ozerov (alexey at ozerov dot de) http://www.ozerov.de/bigdump
<?php
error_reporting(E_ALL);
// BigDump ver. 0.35b from 2012-12-26
// Staggered import of an large MySQL Dump (like phpMyAdmin 2.x Dump)
// Even through the webservers with hard runtime limit and those in safe mode
// Works fine with Internet Explorer 7.0 and Firefox 2.x
// Author: Alexey Ozerov (alexey at ozerov dot de)
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #