Skip to content

Instantly share code, notes, and snippets.

View dbwodlf3's full-sized avatar
๐Ÿข
I may be slow to respond.

Cogi dbwodlf3

๐Ÿข
I may be slow to respond.
  • SWLAB
  • Republic of Korea
View GitHub Profile
@dbwodlf3
dbwodlf3 / BrainF.md
Created May 11, 2020 05:45
BrainF.md

Overview

์†Œ์Šค์ฝ”๋“œ์— ๋Œ€ํ•œ ์ž์„ธํ•œ ๋‚ด์šฉ๋“ค์€ ์–ด๋–ค ์›น์‚ฌ์ดํŠธ์— ์ž˜์ •๋ฆฌ๋˜์–ด ์žˆ๊ธฐ ๋ณด๋‹ค๋Š”,

์†Œ์Šค์ฝ”๋“œ ๋‚ด์— ์ฃผ์„์œผ๋กœ ์ž˜ ์ •๋ฆฌ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

๊ทธ๋ฆฌ๊ณ  ๊ทธ๋Ÿฐ ์ฃผ์„๋“ค์„ ๋ฐ”ํƒ•์œผ๋กœ ์›น์—์„œ ๋ณผ ์ˆ˜ ์žˆ๋Š” Doxygen ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

Doxygen ์‚ฌ์ดํŠธ

@dbwodlf3
dbwodlf3 / CMakelists.txt
Last active May 7, 2020 06:13
double linked list
cmake_minimum_required(VERSION 3.1)
project(toy)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_executable(toy
main.c
double.c
)
@dbwodlf3
dbwodlf3 / con_start.sh
Created April 27, 2020 07:23
binary_analysis_default. init script
#!/bin/bash
#host OS ์—์„œ Container ์‹คํ–‰ํ•  ๋•Œ.
@dbwodlf3
dbwodlf3 / 0.README.md
Last active April 10, 2020 04:34
DrRacket(Scheme, EOPL)

2020.04.10 ์ดˆ์•ˆ์ž‘์„ฑ


EOPL ์ฑ…์„ ํ•™์Šตํ•˜๋ฉด์„œ ์ ‘ํ•˜๊ฒŒ ๋˜๋Š” Scheme ์–ธ์–ด์— ๋Œ€ํ•œ ๊ธฐ์ดˆ์ ์ธ ์ง€์‹์„ ์ •๋ฆฌํ•˜๊ณ ์ž ๋ณธ ๊ธ€์„ ์ •๋ฆฌํ•˜์˜€์Šต๋‹ˆ๋‹ค. ๋ณธ ๊ธ€์€ DrRacket๊ณผ EOPL์„ ๊ธฐ์ค€์œผ๋กœ ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

@dbwodlf3
dbwodlf3 / 0_Error message.txt
Last active March 27, 2020 05:49
mcsema-dyninst-disass
$ mcsema-lift-4.0 --os linux --arch amd64 --cfg hello.cfg --output hello.bc
E0326 11:21:38.169576 45 Function.cpp:921] Function sub_4003d0_printf is empty!
E0326 11:21:38.174134 45 Function.cpp:353] Cannot find target of instruction at 400441; the static target 400443 is not associated with
a lifted subroutine, and it does not have a known call target.
E0326 11:21:38.174180 45 Function.cpp:376] Adding missing block 400443 in function sub_400420_deregister_tm_clones as a tail call to __
remill_error
E0326 11:21:38.176797 45 Function.cpp:353] Cannot find target of instruction at 400483; the static target 400485 is not associated with
a lifted subroutine, and it does not have a known call target.
E0326 11:21:38.176849 45 Function.cpp:376] Adding missing block 400485 in function sub_400450_register_tm_clones as a tail call to __re
@dbwodlf3
dbwodlf3 / CMakeLists.txt
Last active March 11, 2020 08:20
llvm_cookbook_ch2
cmake_minimum_required(VERSION 3.4.3)
project(toy)
SET(LLVM_DIR /llvm/lib/cmake/llvm)
find_package(LLVM REQUIRED CONFIG)
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
include_directories(${LLVM_INCLUDE_DIRS})
@dbwodlf3
dbwodlf3 / cmake-tutorial.md
Created March 5, 2020 13:39 — forked from luncliff/cmake-tutorial.md
CMake ํ• ๋•Œ ์ชผ์˜ค์˜ค๊ธˆ ๋„์›€์ด ๋˜๋Š” ๋ฌธ์„œ

CMake๋ฅผ ์™œ ์“ฐ๋Š”๊ฑฐ์ฃ ?
์ข‹์€ ํˆด์€ Visual Studio ๋ฟ์ž…๋‹ˆ๋‹ค. ๊ทธ ์ด์™ธ์—๋Š” ์ „๋ถ€ ์‚ฌ๋„(้‚ช้“)์ž…๋‹ˆ๋‹ค ์‚ฌ๋„! - ์ž‘์„ฑ์ž

์ฃผ์˜

  • ์ด ๋ฌธ์„œ๋Š” CMake๋ฅผ ์ฃผ๊ด€์ ์œผ๋กœ ์„œ์ˆ ํ•ฉ๋‹ˆ๋‹ค
  • ์ด ๋ฌธ์„œ๋ฅผ ํ†ตํ•ด CMake๋ฅผ ์‹œ์ž‘ํ•˜๊ธฐ์—” ์ ํ•ฉํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค
    https://cgold.readthedocs.io/en/latest/ 3.1 ์ฑ•ํ„ฐ๊นŒ์ง€ ๋”ฐ๋ผํ•ด๋ณธ ์ดํ›„ ๊ธฐ๋ณธ์‚ฌํ•ญ๋“ค์„ ์†์„ฑ์œผ๋กœ ์ตํžˆ๋Š” ๊ฒƒ์„ ๋•๊ธฐ์œ„ํ•œ ๋ณด์กฐ์ž๋ฃŒ๋กœ์จ ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@dbwodlf3
dbwodlf3 / user.js
Created December 8, 2019 12:48 — forked from EtienneR/user.js
XMLHttpRequest RESTful (GET, POST, PUT, DELETE)
// Get all users
var url = "http://localhost:8080/api/v1/users";
var xhr = new XMLHttpRequest()
xhr.open('GET', url, true)
xhr.onload = function () {
var users = JSON.parse(xhr.responseText);
if (xhr.readyState == 4 && xhr.status == "200") {
console.table(users);
} else {
console.error(users);
@dbwodlf3
dbwodlf3 / SimpleAssembler.py
Last active August 19, 2018 10:48
Simple 16bit CPU Assembler
import sys
#์ฃผ๋จน๊ตฌ๊ตฌ์‹.. ์ผ๋‹จ์€ ๋Œ์•„๊ฐ€๊ฒŒ ๋งŒ๋“ค์—ˆ๋‹ค.
#Token ์ •์˜ํ•˜๊ธฐ!
##Instruction Identifer
IID = {
"no":"0",
"alu+":"1",
"alu-":"2",
"alu*":"3",