Skip to content

Instantly share code, notes, and snippets.

View kawaz's full-sized avatar
Working from home

Yoshiaki Kawazu kawaz

Working from home
View GitHub Profile
kawaz / select-finder-items.swift
Created February 8, 2023 06:47
import AppKit
let urls = CommandLine.arguments.dropFirst(1).map { URL(fileURLWithPath: $0) }
voluntas /
Last active January 15, 2024 11:34
2022 年の夏休みに Zig で QUIC を実装してオープンソースとして公開するお手伝い

2022 年の夏休みに Zig で QUIC を実装してオープンソースとして公開するお手伝い



mugi-uno /
Last active October 10, 2022 11:26


昨今の社会情勢の影響もありリモートワークを導入する企業・チームが増えてきましたが、 一口に「リモートワーク」といってもさまざまなスタイルがあります。




kawaz /
Last active January 21, 2020 22:03
OOM-Killer が発動したら自動でリブートさせるやつを設定するやつ(コピペ実行で摘要できます)
echo '# OOM-Killer が発動したら自動でリブートさせるやつを設定するやつ'
echo '#'
echo vm.overcommit_memory = 1
echo vm.panic_on_oom = 1
echo kernel.panic = 1
) > /etc/sysctl.d/99-custom-autoreboot-on-oom-killer
sysctl -p /etc/sysctl.d/99-custom-autoreboot-on-oom-killer
# SWAP止めちゃう
dreampuf / main.go
Last active December 28, 2023 06:46
Golang SSHAgent Usage Example
package main
Golang SSHAgent Usage
import (
sandren /
Last active April 26, 2024 12:37
Tailwind CSS best practices

Tailwind CSS best practices

Utility classes

  1. When writing a string of multiple utility classes, always do so in an order with meaning. The "Concentric CSS" approach works well with utility classes (i.e,. 1. positioning/visibility 2. box model 3. borders 4. backgrounds 5. typography 6. other visual adjustments). Once you establish a familiar pattern of ordering, parsing through long strings of utility classes will become much, much faster so a little more effort up front goes a long way!

  2. Always use fewer utility classes when possible. For example, use mx-2 instead of ml-2 mr-2 and don't be afraid to use the simpler p-4 lg:pt-8 instead of the longer, more complicated pt-4 lg:pt-8 pr-4 pb-4 pl-4.

  3. Prefix all utility classes that will only apply at a certain breakpoint with that breakpoint's prefix. For example, use block lg:flex lg:flex-col lg:justify-center instead of block lg:flex flex-col justify-center to make it very clear that the flexbox utilities are only applicable at the

mono0926 /
Last active June 13, 2024 07:37
[転載] gitにおけるコミットログ/メッセージ例文集100
kawaz /
Last active March 7, 2016 18:52
shutdown -r nowをする前後に実行してipやmount状況やlisten状況の差分が無いかざっと確認する。


curl -sL | bash


curl -sL | bash /dev/stdin /tmp/hogehoge
voluntas / shiguredo.rst
Last active June 6, 2024 02:04
STAR-ZERO / gist:5928936
Last active March 15, 2023 03:53



image_list=("画像1" "画像2") # 絶対パス
bg() {
    if [ -z "$BUFFER" ]; then
        if test $image_index -eq 2; then