Skip to content

Instantly share code, notes, and snippets.

Avatar

Lin, Yong Xiang r888800009

View GitHub Profile
View git.md

首次設定

配置全域

git config --global user.name "name"
git config --global user.email "user@example.com"

設定遠程

  1. 設定ssh金鑰(設定到ssh_config)
View dev-tools.md

開發工具

記憶體除錯工具

  • valgrind
@r888800009
r888800009 / iterm-colors-to-vscode.js
Last active Nov 4, 2021 — forked from 2xAA/iterm-colors-to-vscode.js
Convert iTerm2 "itermcolors" file to VSCode terminal color scheme
View iterm-colors-to-vscode.js
/* Generate colors using https://github.com/andreyvit/plist-to-json */
const col = [] // run your .itermcolors file through the above parser and replace the array with the output
function componentToHex(c) {
const hex = c.toString(16)
return hex.length === 1 ? `0${hex}` : hex
}
const mapping = {
'terminal.background':'Background Color',
View pass-crack-cheat-sheet.md

Cheat Sheet For Password Crackers

This list was posted over at Unix-Ninja. I take no credit for these. Posting these here for my own convenience.

Extracting Data

Extract md5 hashes

# egrep -oE '(^|[^a-fA-F0-9])[a-fA-F0-9]{32}([^a-fA-F0-9]|$)' *.txt | egrep -o '[a-fA-F0-9]{32}' > md5-hashes.txt
# egrep -oE '(^|[^a-fA-F0-9])[a-fA-F0-9]{32}([^a-fA-F0-9]|$)' *.txt | egrep -o '[a-fA-F0-9]{32}' > md5-hashes.txt
@r888800009
r888800009 / steps.asciidoc
Created Dec 18, 2021 — forked from robjens/steps.asciidoc
Grsec Arch Long Term Support Hacking
View steps.asciidoc

ArchLinux linux-grsec-lts

Prerequisites

Up-to-date OS

Always ensure you have the latest set of software (Arch is a rolling release system in case you didn’t know).

# In my case, enable `rw` mount of `/boot` or, if linux updates, will fail due to `ro` mode preventing write to disk partition
View elf_format_cheatsheet.md

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation

@r888800009
r888800009 / _service.md
Created Apr 18, 2022 — forked from naholyr/_service.md
Sample /etc/init.d script
View _service.md

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)