This post is modified from Rclone – VPS Backup to Google Drive. I correct some bugs in the original code and added the function to backup Gogs database
Ago I still used to store backup VPS using tools Duplicity or Rsync . However, now there was a new, more effective methods, saving more (Free), which is backed up to the Cloud with Rclone.
Rclone is a tool for data synchronization similar Rsync but is focused on developing the functions connected to the cloud storage service.
Read More →
Ok, this is the problem:
if we need higher version of library in CentOS, how should we get it if it’s not in any repository?
So, after a long time study, I found the only way is to compile it by myself. Actually, it’s not a big problem. But the thing is libpcre is a widely used package in CentOS. By running yum remove libpcre, you will realize that.
Read More →
Source: tombkeeper
Original link: http://www.bkjia.com/aqgjrj/499358.html
Code
#include int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { if(OpenClipboard(NULL)) { HGLOBAL clipbuffer; char * buffer; EmptyClipboard(); clipbuffer = GlobalAlloc(GMEM_DDESHARE, lstrlen(lpCmdLine)+1); buffer = (char*)GlobalLock(clipbuffer); strcpy(buffer, lpCmdLine); GlobalUnlock(clipbuffer); SetClipboardData(CF_TEXT,clipbuffer); CloseClipboard(); return 0; } else { return -1; } }