Skip to content

Instantly share code, notes, and snippets.

View cattyhouse's full-sized avatar
😇
I may be slow to respond.

Justin cattyhouse

😇
I may be slow to respond.
  • N/A
  • Jupiter
View GitHub Profile
@cattyhouse
cattyhouse / build-cpio
Created January 19, 2024 03:01 — forked from krasCGQ/build-cpio
Scripts to build static-PIE binary of the following; only works on Alpine Linux and other Musl libc based Distros, as some may segfault when done with Glibc.
#!/usr/bin/env dash
#
# SPDX-License-Identifier: Unlicense
#
CC=clang
LD=ld.lld
STRIP=llvm-strip
# -fuse-ld= tells compiler to use specific linker above
@cattyhouse
cattyhouse / 0-go-os-arch.md
Created September 26, 2022 18:45 — forked from asukakenji/0-go-os-arch.md
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix
android
@cattyhouse
cattyhouse / ArchOracleCloud.md
Created September 22, 2022 17:39 — forked from amishmm/ArchOracleCloud.md
Install Arch Linux on Oracle Cloud (Free Tier)

Requirement

  • Console / Cloud Shell access (via https://cloud.oracle.com)
  • Go to the instance page and under Resources -> Console connection -> Launch Cloud Shell connection

Steps

  1. In Ubuntu OR any other Free tier Linux OS
# Download Alpine Linux and install it on disk
cd /
wget https://dl-cdn.alpinelinux.org/alpine/v3.16/releases/x86_64/alpine-virt-3.16.2-x86_64.iso
@cattyhouse
cattyhouse / vim-cheatsheet.md
Created August 31, 2022 12:29 — forked from azadkuh/vim-cheatsheet.md
vim / vimdiff cheatsheet - essential commands

Vim cheat sheet

Starting Vim

vim [file1] [file2] ...

@cattyhouse
cattyhouse / Backup Archlinux and Restore to another machine
Last active November 3, 2017 01:46
Backup Archlinux and Restore to another machine
## Backup the current vps 备份当前vps
1. Clean Arch system 清理系统
pacman -Scc
2. Create an excluded file to exclude certain dirs 建立一个需要排除的目录的文件,这些文件不必要备份,新系统会自动生成
cat /root/backup/exclude.txt
/tmp/*
/root/backup/*
/proc
/dev