Skip to content

Instantly share code, notes, and snippets.

View anosatsuk124's full-sized avatar
💜
ℒℴνℯ

Satsuki Akiba anosatsuk124

💜
ℒℴνℯ
View GitHub Profile
@mietzen
mietzen / macos-bitwarden-cli-with-touch-id.md
Last active October 19, 2024 06:47
How to use use Bitwarden CLI with macOS Touch ID

How to use Bitwarden CLI with macOS Touch ID

If you want to use Bitwarden CLI for ssh have a look at: How to use use Bitwarden CLI for SSH-Keys in macOS

Wirtten and tested on macOS Ventura

Configure Touch ID for the sudo command

To allow Touch ID on your Mac to authenticate you for sudo access instead of a password you need to do the following.

@sheepla
sheepla / LinuxユーザーのためのWindowsカスタマイズガイド.md
Last active November 4, 2024 08:15
LinuxユーザーのためのWindowsカスタマイズガイド

LinuxユーザーのためのWindowsのおすすめツール・アプリケーション+個人的なカスタマイズガイド

これはなに?

普段はLinux(Arch Linux + i3)を使っているsheeplaが、Windowsでいい感じの環境を作るためにもがいた記録です。 「キーボード操作ですべてを完結させたい」「お気に入りのフォント・キーバインドを設定して生活したい」といったこだわりを捨てられない人におすすめです。 逆に、「安定した環境を使いたい」「Windowsのデフォルトの設定を壊したくない」「細々としたカスタマイズに時間を掛けたくない」人や商用のリッチなソフトウェアを多用する人にはあまり役に立たないかもしれません。

ターミナル

@raysan5
raysan5 / raylib_vs_sdl.md
Last active November 14, 2024 18:25
raylib vs SDL - A libraries comparison

raylib_vs_sdl

In the last years I've been asked multiple times about the comparison between raylib and SDL libraries. Unfortunately, my experience with SDL was quite limited so I couldn't provide a good comparison. In the last two years I've learned about SDL and used it to teach at University so I feel that now I can provide a good comparison between both.

Hope it helps future users to better understand this two libraries internals and functionality.

Table of Content

@udnp
udnp / diyhack-ibus-skk-config-issue-on-ubuntu-20.04.md
Last active December 4, 2021 18:07
IBus SKK の設定が Ubuntu で保存されない問題の DIY hack/Hack against the issue that it seems configurations about IBus SKK are not registered at all.

IBus SKK の設定が Ubuntu 20.04 LTS で保存されない問題の DIY hack

動機

誤入力を避けるために IBus SKK の設定で「初期入力モード」を「英数」にしたい.また「句読点の形式」を「.,」にしたい.

ibus-skk-config-gui-after

しかし,IBus SKK の設定画面で「初期入力モード」や「句読点の形式」を変更しても,動作として反映されてないような振舞いをし,次回ログイン時には設定画面上も設定がクリアされている.

ibus-skk-config-gui-before

# MIT LICENSE
# Authored by iFire#6518 and alexfreyre#1663
# This code ONLY apply to a mesh and simulations with ONLY the same vertex number
import bpy
#Converts a MeshCache or Cloth modifiers to ShapeKeys
frame = bpy.context.scene.frame_start
for frame in range(bpy.context.scene.frame_end + 1):
bpy.context.scene.frame_current = frame
@kom-bu
kom-bu / curryhoward2020.md
Last active September 16, 2023 05:56
TypeScriptでカリー=ハワード同型対応(?)

この記事はTSG Advent Calendar 2020の14日目の記事です。昨日の記事はJP3BGYさんのPXE BootとIntel DCIを用いたLinux Debug環境でした。

はじめに

カリー=ハワード同型対応ってかっこいいけど、何のことだかよくわからない。わたくし昆布の現時点での(偏った)理解を、疑似コードを交えて説明していきます。ほぼ備忘録です。

概要

直観主義論理(自然演繹)の命題とTypeScriptの型との間のカリー=ハワード同型対応を考えます。

前提

Wikipediaでは次のように書いてあります。

@Dids
Dids / IPA_Install_Apple_Silicon.md
Last active October 19, 2024 12:36
Installing IPAs on the M1

Installing IPAs on Apple Silicon (M1)

  1. Open Apple Configurator 2 and plug in your iPhone or iPad
  2. Click Add, login to the App Store and select the application you want to install
  3. Open up ~/Library/Group\ Containers/K36BKF7T3D.group.com.apple.configurator/Library/Caches/Assets and wait until the TemporaryItems directory appears
  4. Copy the application from the newly created temporary directory, but do note that it will disappear once Apple Configurator is done installing
  5. Double click the .ipa on your Apple Silicon (M1) device and install it
  6. Fix permissions on the installed application by running sudo xattr -rd com.apple.quarantine /Applications/<your_app>.app (if you skip this step, you're unable to start the application)

Note that it's easier if you already have the application installed, as Apple Configurator will prompt you about overwriting the existing installation, at which point the temporary file (the .ipa) will still exist, until you choose an action in the prompt.

@Gargron
Gargron / mastodon-e2e.md
Last active May 20, 2023 05:13
Mastodon E2EE implementation guide

Mastodon E2EE implementation guide

You need the crypto OAuth scope. Check if there is a way for you to use Olm for your programming language / platform. Using libsignal should be possible but has not been tested.

Step 1: Setting up the device/app

Use Olm to generate the device keypairs and a set of one-time keys. Decide on what the device will be called publicly (this can be changed any time). Also generate a random device ID, this can be a number or a string as long as it's securely random.

There are two device keypairs: The Curve25519 key that we call the identity key, and the Ed25519 key that we call the fingerprint key, which is used for signing and verifying that other keys belong to the same device.

@kawaz
kawaz / install-pam_tid-and-pam_reattach.sh
Last active September 20, 2024 06:18
macOSの sudo で TouchID が使えるようにする(tmux内の利用も対応)
#!/bin/bash
# Qiita記事 https://qiita.com/kawaz/items/0593163c1c5538a34f6f
set -e
set -o pipefail
# pam_tidの存在チェック(間違えてLinux環境などで実行されたら中断する)
[[ -f /usr/lib/pam/pam_tid.so.2 ]] || exit 1
[[ "${OSTYPE:0:6}" == "darwin" ]] || exit 1
# /etc/pam.d/sudo の修正