전체 글
-
dismember: 메모리 탐색기컴퓨터/Go language 2022. 7. 6. 16:07
GitHub - liamg/dismember: Scan memory for secrets and more. Maybe eventually a full /proc toolkit. :knife: Scan memory for secrets and more. Maybe eventually a full /proc toolkit. - GitHub - liamg/dismember: Scan memory for secrets and more. Maybe eventually a full /proc toolkit. github.com 리눅스 계열 OS에선 /proc/pid/something에 이런저런 메모리 정보들이 저장된다. 로그인을 한다고 했을 때 여러가지 사이트 정보 네이버 비밀번호 ./dismember grep '..
-
Wails: Go언어를 이용해 크로스 플랫폼 앱 만들기컴퓨터/Go language 2022. 6. 26. 12:38
Wails The Wails Project | Wails Build beautiful cross-platform applications using Go wails.io 소개 Wails는 Go언어를 이용하여 크로스 플랫폼 앱을 만들게 도와준다. (MacOS/Windows/Linux) 프런트엔드는 Svelete, React 등을 사용해서 할 수 있고, wails는 Go언어로 빌드나 함수 -> JS를 도와준다. 설치는 쉬우니 공식 사이트를 확인하면 된다. @공식 문서 만들면서 배운 것 Svelte랑 프런트엔드 쪽은 많이 안 해봐서 쉬운 것부터 시작했다. 대학교 공지 홈페이지에서 각 카테고리별로 Go언어로 파싱하고 앱에 뿌리는 것이다. Go언어 Struct -> TypeScript 우선 Go언어로 짠 struc..
-
Rust: actix-rs에서 HTML tera 엔진 렌더링컴퓨터/Rust 2022. 6. 24. 11:24
actix-rs Actix Web | A powerful, pragmatic, and extremely fast web framework for Rust. Request Routing The built-in Actix Web request router can be used with or without macros attached to handlers, and always provides flexible and composable methods of creating routing tables. Includes support for matching dynamic path segments, path prefix actix.rs 소개 이 글에선 Python django 처럼 HTML 엔진을 이용해서 코드를 HT..
-
Rust: Cross compile for Raspberry PI컴퓨터/Rust 2022. 6. 24. 10:24
라즈베리파이에서 러스트를 빌드하는 데는 굉장히 오래 걸릴 수가 있다. 그래서 호스트 OS 환경 (ex 윈도우)에서 라즈베리 파이용 크로스 컴파일하는 법이다. 우선, WSL 설치가 필요하다. 셋업 우선 타겟 버전 Rust 라이브러리를 받아야 한다. (GNU 컴파일러와 같이 링커 CC 설치했다고 가정) rustup target add armv7-unknown-linux-gnueabihf 프로젝트 최상위 폴더에 .cargo 를 만들고 안에 config.toml 파일을 만든다. 파일 안에 다음과 같이 추가한다. (파이 2/3/4 용) .cargo/config.toml [build] # Pi 2/3/4 [target.armv7-unknown-linux-gnueabihf] linker = "arm-linux-gnu..
-
Rust fleet (cargo 대체 빌드 툴)컴퓨터/Rust 2022. 5. 4. 22:36
fleet.rs GitHub - dimensionhq/fleet: 🚀 The blazing fast build tool for Rust. 🚀 The blazing fast build tool for Rust. Contribute to dimensionhq/fleet development by creating an account on GitHub. github.com 소개 기본 cargo와 비교했을 때 5배까지 빠를 수 있다는 fleet 빌드 툴 nigtly에서만 사용 가능하며 Rust ecosystem에 있는 (sccache, lld, zld, ramdisks 등을 이용해) 기본 툴들을 최적화함 외부 라이브러리 의존도가 높으면 그렇게 차이는 없는 듯 설치법 cargo install --git https:..
-
wsl에서 OneDrive 폴더 연결컴퓨터 2022. 4. 25. 11:16
ln -s /mnt/c/Users/me/OneDrive/ here cd here 후 폴더 내용물 확인 하드 링크이므로 클라우드에서 파일이 변경되면 자동으로 같이 변경됨 로컬에서 폴더 업로드 (-r 옵션) scp -r -i "mypem.pem" [업로드할 로컬 폴더] [ec2-user계정명]@[ec2 instance의 public DNS]:~/[경로] EC2에서 폴더 다운로드 scp -r -i "mypem.pem" [ec2-user계정명]@[ec2 instance의 public DNS]:~/[경로] [다운로드 받을 로컬 폴더 경로]
-
Golang: Struct memory 최적화 (구조체 크기)컴퓨터/Go language 2022. 1. 29. 00:27
The Go Programming Language Download Go Binary distributions available for Linux, macOS, Windows, and more. // You can edit this code! // Click here and start typing. package main import "fmt" func main() { fmt.Println("Hello, 世界") } Hello, World! Conway's Game of Life Fibonacci golang.org Struct 같은 primitive 타입 attributes 같지만 크기는 다른 두 구조체 type ComputerBig struct { // 48 bytes IsPowerOn bool Nam..
-
Elixir 언어: bitstring컴퓨터 2022. 1. 24. 23:34
Elixir 언어 elixir-lang.github.com Website for Elixir elixir-lang.org 소개 패킷에서 bits/bytes 처리 좀 공부하다가 아래처럼 bit shift/wise 할 수 있는데 가독성이 좀 떨어지긴 하는 것 같다. // Moderately readable bitwise and a[1]= bitfield[1] & 0b0000_0100 > 1; // Moderately readable bit shifting bits_0 += ((self.id[0] > 1) as u8) is_binary data true iex> is_bitstring data true iex> data2 = iex> is_bitstring data2 true iex> is_binary dat..