Skip to content

Instantly share code, notes, and snippets.

View unstabler's full-sized avatar
๐Ÿง€
cheese rulez!

Gyuhwan Parkโ˜… unstabler

๐Ÿง€
cheese rulez!
View GitHub Profile
@css459
css459 / arch-linux-devterm-a06.md
Created January 22, 2022 21:23
Installing Arch Linux on ClockworkPi DevTerm A06 (WIP)

Installing Arch Linux on ClockworkPi DevTerm A06

Cole Smith

January 22, 2022

Introduction

This document will walk you through installing Arch Linux ARM on the DevTerm A06. At the time of writing, only Armbian is supported on the DevTerm.

@gokart23
gokart23 / run-arm-chroot-on-x86.md
Last active January 20, 2025 04:47
Run ARM chroot on x86 machine (both ArchLinux)

Steps

  1. Install qemu-user-static (yay -S qemu-user-static).
    • This might need you to install pcre-static and update PGP keys (follow the tips in the comments here).
  2. If not already present, install systemd-binfmt, the revamped version of binfmt-support tools
    • Your system has to support transparent Qemu user emulation, but fortunately, that is mostly enabled once the steps here have been followed.
  3. Check the status of the systemd-binfmt unit (systemctl status systemd-binfmt) and (re)start if needed (sudo systemctl restart systemd-binfmt)
    • This unit has ARM support by default, but check the current documentation to make install it if needed
  4. Mount the root partition of the ARM system into a folder (for e.g., sudo mount /dev/sdb2 arm_mountpoint)
  5. Copy the QEMU ARM static binary (/usr/bin/qemu-arm-static on my distro) to the mounted root directory's usr/bin
@RebelLion420
RebelLion420 / TermuxArchSetup2024.md
Last active April 29, 2025 13:35
How to set up Arch Linux in Termux on Android

NOTICE: This will take up about 3 GB of space on your device, before syncing any repos or projects.

Install Termux from the Play Store and launch it

Once it finishes unpacking:

pkg update

pkg upgrade -y

@momoseijin
momoseijin / Using S3 on Mastodon
Last active November 11, 2023 06:42
Using S3 on Mastodon
S3_ENABLED=true
S3_BUCKET=media.yourdomain.comใ€€โ†ใ€€่‡ชๅˆ†ใฎไฝœใฃใŸใƒใ‚ฑใƒƒใƒˆๅ(mediaใชใฉใ‚’ใคใ‘ใฆใ‚จใ‚คใƒชใ‚ขใ‚นใ‚’ไฝฟใ†ๅ ดๅˆใฏOptionalใ‚‚่จญๅฎšใ™ใ‚‹)
AWS_ACCESS_KEY_ID=ABCDEFGHIJKLMNOPQRSTใ€€โ†ใ€€่จญๅฎšใ•ใ‚ŒใŸใ‚ขใ‚ฏใ‚ปใ‚นใ‚ญใƒผ
AWS_SECRET_ACCESS_KEY=ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdใ€€โ†ใ€€่จญๅฎšใ•ใ‚ŒใŸใ‚ทใƒผใ‚ฏใƒฌใƒƒใƒˆใ‚ญใƒผ
S3_REGION=ap-northeast-1ใ€€โ†ใ€€ๆฑไบฌใƒชใƒผใ‚ธใƒงใƒณใชใ‚‰ใ“ใ‚Œ
S3_PROTOCOL=https
S3_ENDPOINT=https://s3-ap-northeast-1.amazonaws.comใ€€โ†ใ€€ๆฑไบฌใƒชใƒผใ‚ธใƒงใƒณใชใ‚‰ใ“ใ‚Œ
# Optional alias for S3 (e.g. to serve files on a custom domain, possibly using Cloudfront or Cloudflare)
S3_CLOUDFRONT_HOST=media.yourdomain.comใ€€โ†ใ“ใ“ใซ่‡ชๅˆ†ใฎ่จญๅฎšใ—ใŸ S3Bucket ใจ Cloudflare ใงๅˆใ‚ใ›ใŸ CNAME ๅ…ฅใ‚Œใ‚‹
@mosquito
mosquito / README.md
Last active April 13, 2025 18:03
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/[email protected]. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
@thenaterhood
thenaterhood / Read-only FS on Raspberry Pi.md
Last active May 1, 2025 22:45 — forked from yeokm1/Read-only FS on Arch Linux ARM.md
Set up a raspberry pi with ArchLinux or Raspbian with a Read-only root filesystem

Read-only FS on Raspberry Pi

Most embedded devices use a read-only root filesystem. This can make them more resilient to unexpected shutdowns that could otherwise cause data corruption. Depending on your application, you might consider your Pi to be an embedded system. This can also help with some issues that can come from SD card unreliability.

Full instructions and explanations are obtained from this link but you can run these commands directly. I modified some of the instructions for personal convenience.

Login with default username and password: (ArchLinux Arm: alarm, alarm, Raspbian: pi, raspberry)

Optionally enable root over SSH. The rest of these instructions assume you are in root.

nano /etc/ssh/sshd_config

@TheComputerGuy96
TheComputerGuy96 / lpmorplaylpm
Created April 30, 2017 16:55
Modified /system/bin/lpm and /system/bin/playlpm file to boot a Samsung device into Android if charger is inserted
#!/system/bin/sh
# Run "chmod 755 /system/bin/playlpm; chown 0:2000 /system/bin/playlpm || chmod 0:2000 /system/bin/lpm; chown 0:2000 /system/bin/lpm" with root access after creating this file
/system/bin/reboot
@esetomo
esetomo / .env.production
Created April 29, 2017 16:52
MastodonใงConoHaใ•ใ‚“ใฎใ‚ชใƒ–ใ‚ธใ‚งใ‚ฏใƒˆใ‚นใƒˆใƒฌใƒผใ‚ธใ‚’ไฝฟใ†่จญๅฎš
SWIFT_ENABLED=true
SWIFT_USERNAME=gncuใชใ‚“ใจใ‹
SWIFT_TENANT=gnctใชใ‚“ใจใ‹
SWIFT_PASSWORD=[APIใƒ‘ใ‚นใƒฏใƒผใƒ‰]
SWIFT_AUTH_URL=https://identity.tyo1.conoha.io/v2.0/tokens
SWIFT_CONTAINER=mayodon
SWIFT_OBJECT_URL=https://media.s-tomo.jp/mayodon
@xnuk
xnuk / hyeong.md
Last active April 23, 2025 10:14
๋‚œํ•ดํ•œ ํ˜€์—‰.... ์–ธ์–ด

๋‚œํ•ดํ•œ ํ˜€์—‰... ์–ธ์–ด v0.4.5

  • โ€ฆ(U+2026), โ‹ฏ(U+22EF), โ‹ฎ(U+22EE)๋Š” ๋ชจ๋‘ .(U+002E)๊ฐ€ 3๋ฒˆ ์—ฐ์†์œผ๋กœ ๋‚˜์—ด๋œ ๊ฒƒ๊ณผ ๊ฐ™์€ ๊ฒƒ์œผ๋กœ ๋ด…๋‹ˆ๋‹ค.
  • "ํ•œ๊ธ€ ์Œ์ ˆ ๋ฌธ์ž"๋Š” ๊ฐ€(U+AC00) ์ด์ƒ ํžฃ(U+D7A3) ์ดํ•˜์˜ ์œ ๋‹ˆ์ฝ”๋“œ ๋ฌธ์ž๋“ค์„ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค.

์Šคํƒ

@Dalgona
Dalgona / rem1_escaped.txt
Last active June 23, 2017 01:04
๏ผบ๏ผฅ๏ผฒ๏ผฏใ€€๏ผซ๏ผก๏ผฒ๏ผก๏ผ๏ผ๏ผ
\x1b[48;5;216m \x1b[48;5;223m\x1b[38;5;216mโ–„โ–„ \x1b[48;5;216m\x1b[38;5;223mโ–„ \x1b[48;5;222m\x1b[38;5;216mโ–„\x1b[48;5;228m\x1b[38;5;222mโ–„ \x1b[48;5;229m\x1b[38;5;228mโ–„\x1b[38;5;186mโ–„โ–„โ–„\x1b[48;5;186m\x1b[38;5;144mโ–„\x1b[48;5;101m\x1b[38;5;242mโ–„\x1b[48;5;110m\x1b[38;5;153mโ–„\x1b[48;5;153m \x1b[38;5;110mโ–„ \x1b[38;5;110mโ–„\x1b[48;5;195m\x1b[38;5;153mโ–„\x1b[48;5;110m\x1b[38;5;153mโ–„\x1b[48;5;241m\x1b[38;5;243mโ–„\x1b[48;5;102m \x1b[48;5;244m\x1b[38;5;243mโ–„\x1b[48;5;242m\x1b[38;5;241mโ–„\x1b[48;5;240m\x1b[38;5;241mโ–„\x1b[48;5;241m\x1b[38;5;102mโ–„\x1b[48;5;246m\x1b[38;5;242mโ–„\x1b[48;5;153m\x1b[38;5;110mโ–„\x1b[48;5;244m\x1b[38;5;110mโ–„\x1b[48;5;101m\x1b[38;5;241mโ–„\x1b[48;5;185m\x1b[38;5;144mโ–„\x1b[48;5;228m \x1b[38;5;222mโ–„\x1b[48;5;222m\x1b[38;5;223mโ–„โ–„\x1b[48;5;223m \x1b[38;5;216mโ–„\x1b[48;5;216m \x1b[0m
\x1b[48;5;216m \x1b[48;5;223m\x1b[38;5;216mโ–„โ–„ \x1b[48;5;216m\x1b[38;5;223mโ–„โ–„ \x1b[48;5;222m\x1b[38;5;216mโ–„\x1b[48;5;228m\x1b[38;5;222mโ–„โ–„ \x1b[48;5;186m\x1b[38;5;144mโ–„