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 September 2, 2024 06:36
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 October 24, 2024 19:56
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 November 14, 2024 08:39
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 10, 2024 02:09 — 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 November 16, 2024 01:30
난해한 혀엉.... 언어

이 문서가 여기저기 알려짐에 따라, 이곳에 여러가지 댓글이 달리고 있습니다. 개인적으로는 댓글창을 없애버리고 싶지만 그럴 수 없는 터라, 댓글을 달기 전에 한번씩만 더 생각해주셨으면 합니다.

  • 개인적인 감상은 이곳이 아닌 다른 곳에 적어주세요.
  • 동성애 혐오적인 댓글을 달지 마세요.
  • 기타 "난해한 혀엉... 언어"와 관련없는 댓글을 달지 말아주세요.

위 사항들을 포함해 제 마음에 안 드는 댓글들은 임의로 삭제하고 있습니다. 양해 부탁드립니다.


@Dalgona
Dalgona / rem1_escaped.txt
Last active June 23, 2017 01:04
ZERO KARA!!!
\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▄