Skip to content

Instantly share code, notes, and snippets.

View frankyueh's full-sized avatar

Frank Yueh frankyueh

View GitHub Profile
@frankyueh
frankyueh / tail_cp.cpp
Created October 10, 2018 08:53
tail_cp
#include <fstream>
#include <iterator>
#include <algorithm>
#include <cstdlib>
int main(int argc, char *argv[])
{
std::ifstream in(argv[1], std::ios::ate);
std::ofstream out(argv[2]);
@frankyueh
frankyueh / cpp_for_quick_benchmark.cc
Last active January 8, 2018 11:12
function pointer is not better than virtual function
#include <cstring>
namespace w_virtual {
class LogWriterAdaptor
{
public:
typedef char char_t;
LogWriterAdaptor() {}
@frankyueh
frankyueh / KillTmmonThread.cpp
Last active May 26, 2024 08:24
Find Tmmon hooked thread and kill it (CPU usage too high...) (Use task manager to execute it as System previlege)
// KillTmmonThread.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
#include <windows.h>
#include <tlhelp32.h>
#include <tchar.h>
#include <Shlwapi.h>
@frankyueh
frankyueh / Install_Setup StartSSL for Apache Server (OpenSSL).md
Created May 9, 2015 13:50
Install_Setup StartSSL for Apache Server (OpenSSL).md

Install/Setup StartSSL for Apache Server (OpenSSL)

This instruction is about how to make and request StartSSL https://www.startssl.com/ ,and also document some common issue may occur while the process. There must needs done with the registration on StartSSL before read these instructions.


[toc]

@frankyueh
frankyueh / Code Sign - 程式碼數位簽章
Created March 6, 2015 08:42
Code Sign - 程式碼數位簽章
# Code Sign - 程式碼數位簽章
##數位簽章基本架構
1. 產生數位簽章
>`數位簽章 = 簽章( SHA1(程式), 私鑰 )`
2. 簽章過的程式格式
> `簽章的程式 = 程式 + 憑證[公鑰] + 數位簽章`
@frankyueh
frankyueh / Setup StartSSL on Apache Server (OpenSSL)
Created February 1, 2015 18:59
Setup StartSSL on Apache Server (OpenSSL)
Setup StartSSL on Apache Server (OpenSSL)
=====================================
This is a note about how to make a certificate request for StartSSL https://www.startssl.com/ and setup correctly for Apache Server.
----------
[toc]