Skip to content

Instantly share code, notes, and snippets.

View miooochi's full-sized avatar
🧬
Linux DNA.

kev miooochi

🧬
Linux DNA.
  • /dev/null
View GitHub Profile
@miooochi
miooochi / nvim-lua.md
Last active February 7, 2022 14:11
Neovim Configuration

Neovim Setup

Neovim 0.5.0+ New Features

  • all the IDE-like goodies:
    • LSP completion, go to def, hover and rename
    • treesitter syntax highlighting
    • ctrlp-like fuzzy finding
  • embedded terminals
@miooochi
miooochi / buildah-cmd.md
Last active August 28, 2023 11:09
buildah-cmd

Buildah Commands

Introduction

Buildah is a container image builder tool, that produces OCI-compliant images. It is distributed as a single binary and is written in Go. Buildah is available as a package in most of modern Linux distributions, just follow official installation instructions.

Buildah can only be used to manipulate images. It's job is to build container images and push them to registries. There is no daemon involved. Neither does Buildah require root privileges to build images. This makes Buildah especially handy as part of a CI/CD pipeline -- you can easily run Buildah inside a container without granting this container any root rights.

System Requirements

@miooochi
miooochi / buildkit.md
Last active February 7, 2022 16:18
Around Buildkit

Around Buildkit

Cache

To show local build cache (/var/lib/buildkit)

sudo buildctl du -v
@miooochi
miooochi / vmware_2_proxmox.md
Last active February 12, 2022 02:59
VMware to Proxmox

Use OVF Tool to package vm disk remotely

ovftool vi://root:@<esxi ip>/<vm name> <local_dir>/<vmname>.ova
# e.g
# ./ovftool vi://root:@10.10.10.4/archlinux /mnt/pve/pool-cache/template/archlinux.ova

Import OVF to VM

@miooochi
miooochi / archlinux_installation.txt
Last active March 19, 2023 15:41
Install Archlinux OS GUIDE (BIOS)
============================
---
References
- https://www.cio.com/article/238607/how-to-install-arch-linux-on-your-pc.html
- https://arch.icekylin.online/
- https://zhuanlan.zhihu.com/p/112536524
- https://zhuanlan.zhihu.com/p/568211941
[NORMAL INSTALLATION]
---
PVE delte local-lvm partition
Reference: https://post.smzdm.com/p/awkv4pq4/
lvremove pve/data
lvextend -l +100%FREE -r pve/root
Datacenter >> remove `local-lvm` partition >> edit `local` >> select all options
@miooochi
miooochi / keybase.md
Created April 15, 2022 16:12
Keybase proof

Keybase proof

I hereby claim:

  • I am yqlbu on github.
  • I am kevinyu211 (https://keybase.io/kevinyu211) on keybase.
  • I have a public key whose fingerprint is B08F E264 4F9F C450 AF42 5FF5 B94F 394B 7288 4017

To claim this, I am signing this object:

docker run -t --rm --name gitlab-runner-register -v ~/.gitlab-runner:/etc/gitlab-runner gitlab/gitlab-runner \
 register \
--non-interactive \
--executor="docker" \
--docker-image alpine:latest \
--url "https://gitlab.com/" \
--registration-token "{{YOUR_TOKEN_HERE}}" \
--description "A docker runner" \
# PVE 直通硬盤
---
安裝 lshw
$ apt-get install lshw -y
查詢硬盤信息
$ lshw -class disk -class storage