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
@unstabler
unstabler / Read-only FS on Raspberry Pi.md
Created January 20, 2022 16:03 — forked from thenaterhood/Read-only FS on Raspberry Pi.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

@unstabler
unstabler / pandoc.css
Created November 7, 2019 02:18 — forked from killercup/pandoc.css
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
S3_ENABLED=true
S3_BUCKET=media.mydomain.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.mydomain.com ←ここに自分の設定した Cloudflare の CNAME 入れる
あ-----!!
あ、新記録
あぁあぁんあんあ
ああっ!! う~!! あっ!! ああっ!!
ああ~!!
あいいぎあが!あがががが~
あいうえ痛だだだ!!!
あいぎゃげへえ!! ぶげぎい ばぼぶべっべっ はぱあほえ!
あいてててっ、てはっ!
あいとわ!!!
@unstabler
unstabler / .env.production
Created September 19, 2017 06:59 — forked from esetomo/.env.production
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
@unstabler
unstabler / tmux-cheatsheet.markdown
Created September 30, 2015 01:43 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for Google TV

Consumer key: iAtYJ4HpUVfIUoNnif1DA