Skip to content

Instantly share code, notes, and snippets.

View yasunori0418's full-sized avatar

yasunori yasunori0418

View GitHub Profile
@tomohiro
tomohiro / gist:367907
Created April 16, 2010 01:56
Windows なんて
10:41 <@naoto> windows版にもつかないかなー
10:47 <@Tomohiro> Windows 使ってる男の人なんて...
10:49 <@naoto> ともちゃんめ
10:50 <@ayaka> なおとさんWindows使ってるんだ
10:50 <@naoto> ちがうよ! ぜんぜんちがうよ!
10:50 <@ayaka> 最近知り合う人みんな「Windowsは窓から投げ捨てろ!」って言うから
10:50 <@naoto> 仕事ではwindows使わされてるだけで。普通はMacです。
10:51 <@naoto> Windowsとか窓から投げ捨てるべき
@deris
deris / vim_keymapping.md
Created May 2, 2013 10:01
vimで使うキーの機能使用頻度と打ちやすさの整理

vimで使うキーの機能使用頻度と打ちやすさの整理

vimで使うキーの機能使用頻度と打ちやすさを整理してみました。 今回整理したのはnormalモードについてだけです。 機能の使用頻度と打ちやすさは、完全に個人の見解です。 キーボードによっても打ちやすさは変わると思います。

すべてのキーを網羅しているわけではありません。

@844196
844196 / gist:849cd820e2c3ce916486
Last active March 19, 2024 15:52
非淫夢民向けミュート正規表現パターン
[こそ]れ?マジ?[\??]
まず(.*?)さ[あぁ]?(?:、|(?:\.|・){2,})(.*?)(?:、|(?:\.|・){2,})?ある?んだけど(?:、|(?:\.|・){2,})(.*)
(.+)↑(.+)↓
やっぱ[あぁ]?(?:、|(?:\.|・){2,})?(.*?)(?:くん|君)?の(.*?)を(?:、|(?:\.|・){2,})?(.*?)
[\((].*?[\))]ないです
[\((](王者の風格|すっとぼけ|サイコパス|ガンギマリ|せっかち|ねっとり|思考停止|諸行無常|ドン引き|意味深|名推理|使命感|震え声|棒読み|半ギレ|淫夢|悟空|威圧|偏見|激寒|呆れ|恍惚|戒め|無知|妥協|提案|驚愕|池沼|正論|絶望|良心|哲学|便乗|困惑|脅迫|小声|適当|レ|素|[至名迷]言|大[嘘破]|[難幻]聴|[憤激]怒|届かぬ[思想]い|(?:察し|冊子)|(?:声だけ)?迫真|無(?:邪気|関心)|語録(?:無視)?|(?:ゲス|真)顏|(?:更|さら)なる高みへ|(?:.*?並(?:みの)?感想?|KONAMI|粉みかん))[\))]?
\?{,3}「.*?」
.*?、どうぞ
申(?:し訳ないが)?.*?は?[NN][GG]?
じゃないですかね[\.・]{2,}

なぜ Vim はいきなり文字を入力できないのか

2017-07-20 Fablic.vim #2

@syuilo
syuilo / misskey-keyboard-shortcuts.md
Last active October 28, 2023 12:39
Misskeyキーボードショートカットまとめ

Misskeyキーボードショートカットまとめ

グローバル

これらのショートカットは基本的にどこでも使えます。

P, N新規投稿Post, New, Note
ショートカット効果由来
@LambdaNote
LambdaNote / writing.md
Last active March 5, 2024 01:29
記事の書き方

記事の書き方

記事の執筆には、Markdown形式を利用してください。 Markdownにはさまざまな流派がありますが、GitHub Flavored Markdown(https://github.github.com/gfm/ )をベースとした書式を採用します。

書籍を執筆するための形式として考えると、Markdownには不足している機能が多々あります。 しかし、次のような利点があるので、Markdownを採用することにします。

  • 最低限の構造しかないので、見た目でごまかせる余地が少ない
  • 原稿を著者自身が再利用してもらいやすくしたい
@huntrar
huntrar / full-disk-encryption-arch-uefi.md
Last active July 13, 2024 08:35
Arch Linux Full-Disk Encryption Installation Guide [Encrypted Boot, UEFI, NVMe, Evil Maid]

Arch Linux Full-Disk Encryption Installation Guide

This guide provides instructions for an Arch Linux installation featuring full-disk encryption via LVM on LUKS and an encrypted boot partition (GRUB) for UEFI systems.

Following the main installation are further instructions to harden against Evil Maid attacks via UEFI Secure Boot custom key enrollment and self-signed kernel and bootloader.

Preface

You will find most of this information pulled from the Arch Wiki and other resources linked thereof.

Note: The system was installed on an NVMe SSD, substitute /dev/nvme0nX with /dev/sdX or your device as needed.

@RebelLion420
RebelLion420 / TermuxArchSetup2020.md
Last active June 30, 2024 03:57
How to set up Arch Linux in Termux on Android

So, to get started you need to get the base OS installed using the instructions from the official docs .

$ pkg update

$ pkg install bsdtar wget proot tergent tmux openssh

Tmux is a multiplexer that lets you run multiple persistent windows and sessions on a single terminal. I had trouble getting it working in the Arch proot, so a workaround is configuring tmux from your host Termux and then creating a tmux session and starting the chroot from there. For more information on using tmux read this article, and to learn how to customize the appearance and behaviors more try this one as well as looking at the tmux-plugins Github organization for community-built add-ons.

$ termux-setup-storage

@andrebrait
andrebrait / keychron_linux.md
Last active July 18, 2024 17:38
Keychron keyboards on Linux + Bluetooth fixes

Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.

Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.

Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.

Make Fn + F-keys work (NOT FOR QMK-BASED BOARDS)

Older Keychron keyboards (those not based on QMK) use the hid_apple driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.