Skip to content

Instantly share code, notes, and snippets.

View LBeckX's full-sized avatar
💭
Either we find a way or we make one.

Lukas M. BeckX LBeckX

💭
Either we find a way or we make one.
View GitHub Profile
@ADoebeling
ADoebeling / 1601_cmsBackup.sh
Last active September 15, 2015 13:06
Backup eines CMS
# How to backup a CMS
#
# @Author: Andreas Doebeling <ad@1601.com>
# @Copyright: 1601.communication gmbh
# @Link: http://www.1601.com
# Switch to customer-folder
cd /$PATH/
# Check the current mySQL-Config
// compile this like g++ go2.c -lgdi32 [if you're using mingw]
#include <windows.h>
#include <stdio.h>
// Helper function to retrieve current position of file pointer:
inline int GetFilePointer(HANDLE FileHandle){
return SetFilePointer(FileHandle, 0, 0, FILE_CURRENT);
}
//---------------------------------------------------------------------------