Skip to content

Instantly share code, notes, and snippets.

@Th3Whit3Wolf
Th3Whit3Wolf / Arch Secure Laptop Install.md
Last active May 4, 2025 09:37
My install instruction for a secure Arch Linux (sway) laptop workstation

What's Cool

  • Encrypted root partition
    • AES-256 bit cipher
    • Argon2id variant for PBKDF
    • Sha3-512 bit hash
  • rEFInd bootloader
    • With dreary theme
    • Optimal Settings (optimized for aesthetics, and boot time)
  • Boot into backups thanks to refind-btrfs
@mafredri
mafredri / smb.conf
Last active October 20, 2025 01:54
Samba config for Open PS2 Loader (PlayStation 2)
# This setup works pretty well for OPL with a network link that travels through
# two UniFi switches and connects to a Samba server running inside Docker. The
# host OS is Debian with a ZFS filesystem and the container OS is also Debian.
# Latest Samba (4.11+).
[global]
# ======================
# General Samba settings
# ======================
log level = 1
@imba-tjd
imba-tjd / .Cloud.md
Last active October 26, 2025 00:59
☁️ 一些免费的云资源

  • IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装。PaaS提供语言环境和框架(可以自己选)。SaaS只能使用开发好的软件(卖软件本身,如税务会计、表格文字处理)。BaaS一般类似于非关系数据库,但各家不通用
  • 云服务的特点:零前期成本 & 按需付费 & 弹性(类似于租,可随时多加、退掉;但没有残值)、高可用(放在机房中,不同AZ间水电隔离)

其他人的集合

@yf-hk
yf-hk / debian-setup.sh
Last active June 1, 2025 14:00
Debian setup
#!/bin/sh
apt update
apt dist-upgrade -y
apt purge vim-tiny -y
apt install curl build-essential cmake pkg-config git zsh fonts-powerline apt-transport-https dirmngr sudo htop vim xz-utils net-tools socat -y
apt autoclean -y
userdel games
userdel lp
userdel news
userdel irc
@LordH3lmchen
LordH3lmchen / termux-url-opener
Last active August 19, 2025 08:09
termux-url-opener
#!/data/data/com.termux/files/usr/bin/bash
#
# This is a termux-url-opener script to do diffrent tasks on my Android phone
#
#
#
# How to use this script
#############################
#
# Install git
@Neo-Oli
Neo-Oli / lighttpd.conf
Created December 20, 2016 20:43
lighttpd -D -f ~/.lighttpd/lighttpd.con
server.document-root = "/data/data/com.termux/files/home/www"
server.upload-dirs = ("/data/data/com.termux/files/home/.lighttpd/upload")
server.port = 8080
#load modules
server.modules = (
"mod_redirect",
"mod_auth",
#"mod_cgi",
"mod_accesslog",
@manuhabitela
manuhabitela / keymap_leimi.c
Last active September 16, 2020 23:44
Layout GH60 RevCHN - spaceFN, ctrl on capslock, ISO missing key on fn layer
#include "keymap_common.h"
/* following https://gist.github.com/Leimi/bca49d02e48c018ce4c8 to flash firmware on GH60 RevCHN */
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* layer0: 60% qwerty with custom modifiers
* ESC instead of GRV, FN1 instead of LGUI, LGUI instead of LCTL, LCTL instead of CAPS, SPACEFN instead of SPACE */
KEYMAP_ANSI(
ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, \
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, \
@ccwang002
ccwang002 / 0_Background.md
Last active August 29, 2025 07:38
Lab Coding Instructions for Beginners

[TOC]

Lab Guide for Coding Beginners

亮亮(@ccwang002)| Mar, 2015 | CC 3.0 BY license

如果內容有誤,你可以用任何管道發訊息轟炸我,或用底下的 gist comment 留言。

學習方式

每個檔案都會是一個主題,主題底下會列出一些資源。資源的最後會有一個學習目標,方便讓你評估自己學到什麼程度。學習目標會給一個明確的任務,我盡量讓它能跟(宅宅的)日常生活結合。通常只要完成前一、二個目標就行了,這也不是功課所以不一定要給我看。如果你不介意給我看,我會分享我主觀的建議,但大部份的任務是沒有絕對的正確答案。只要能解決問題都是好方法。