Skip to content

Instantly share code, notes, and snippets.

View prodeveloper0's full-sized avatar
🐱
Meow

Samuel Lee prodeveloper0

🐱
Meow
  • Sounth Korea
View GitHub Profile
@prodeveloper0
prodeveloper0 / cmake-tutorial.md
Created March 13, 2020 07:40 — forked from luncliff/cmake-tutorial.md
CMake 할때 쪼오오금 도움이 되는 문서

CMake를 왜 쓰는거죠?
좋은 툴은 Visual Studio 뿐입니다. 그 이외에는 전부 사도(邪道)입니다 사도! - 작성자

주의

  • 이 문서는 CMake를 주관적으로 서술합니다
  • 이 문서를 통해 CMake를 시작하기엔 적합하지 않습니다
    https://cgold.readthedocs.io/en/latest/ 3.1 챕터까지 따라해본 이후 기본사항들을 속성으로 익히는 것을 돕기위한 보조자료로써 작성되었습니다
@prodeveloper0
prodeveloper0 / ParallelsHanEng.ahk
Created April 23, 2019 14:35
AutoHotkey Korean Key Remmaper for Parallels
#NoTrayIcon
; HanEng Mapper for Hangul PS/2 Keyboard(103/106 Keys)
Shift & Alt::Send {vk15sc138} ; Shift + Alt to HanEng (Parallels Default)
RAlt::Send {vk15sc138} ; Right Alt to HanEng (RemoteDesktop Recommanded)
F16::Send {vk15sc138} ; F16 to HanEng (Karabiner Recommanded)
@prodeveloper0
prodeveloper0 / git-clearHistory
Created February 22, 2019 12:17 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git
@prodeveloper0
prodeveloper0 / GetCompiledTime.cpp
Last active February 7, 2019 08:20
Get compiled time and date from current EXE program for Win32
#include <stdio.h>
#include <time.h>
#include <Windows.h>
#include <tchar.h>
DWORD GetCompiltedTime()
{
TCHAR szFilename[MAX_PATH];
IMAGE_DOS_HEADER idh;
IMAGE_NT_HEADERS inh;
@prodeveloper0
prodeveloper0 / Config.hpp
Created December 5, 2018 14:58
Simple INI Parser for C++11
#pragma once
//////////////////////////////
// Simple INI Parser
// Written by Samuel Lee(pr0ximo, prodeveloper0)
//
//
// Usage:
// sample.ini
// [Pri]
// ; This is my information
@prodeveloper0
prodeveloper0 / meow.js
Created October 1, 2018 13:25
Catdrip.Net Redirector for DevDogdripper
// Cat needs express and more express
// Meow!
var express = require('express');
var app = express();
var server = app.listen(80, function() {
console.log('meow.js has started on port 80');
});
@prodeveloper0
prodeveloper0 / cpuid.cpp
Created January 4, 2018 04:29
How to get x86 compatible processor vendor and brand string using cpuid instruction
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef char MSGBUF[64];
int GetCpuBrandString(MSGBUF dst)
{
unsigned long ul;
unsigned long uls[12] = {0x00};
@prodeveloper0
prodeveloper0 / usbwdd.cpp
Created December 5, 2017 05:39
USB Watchdog for Linux
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <termios.h>
#include <fcntl.h>
#include <errno.h>
#define USBWD_SYN ((unsigned char)0x80)
#define USBWD_ACK ((unsigned char)0x81)
@prodeveloper0
prodeveloper0 / medine4vbefi.sh
Created March 8, 2017 14:00
우분투 VirtualBox에서 NVRAM초기화로 EFI Shell만뜰때 해결법
# at boot: fs0:\efi\ubuntu\grubx64.efi (Enter)
sudo mount /dev/sda1 /mnt
sudo sh -c "echo '\EFI\ubuntu\grubx64.efi' > /mnt/startup.nsh"
sudo umount /mnt
@prodeveloper0
prodeveloper0 / matrix.hpp
Created February 2, 2017 05:31
Image Container for C++
#include <iostream>
#include <vector>
#include <assert.h>
using namespace std;
typedef unsigned short uattr;
typedef unsigned char uchar;
typedef uchar Vec3b[3];