Skip to content

Instantly share code, notes, and snippets.

Avatar
😇

Yuichi Goto yasaichi

😇
  • Tokyo, Japan
View GitHub Profile
@thangchung
thangchung / history-lima-installation.md
Created Sep 17, 2021 — forked from toricls/lima-on-m1-mac-installation-guide.md
Using Lima to run containers with containerd and nerdctl (without Docker Desktop) on M1 Macs
View history-lima-installation.md

Used M1 Mac mini 2020 with macOS Big Sur Version 11.5.2.

1. Install Patched QEMU

According to the GitHub issue comment in Lima's GitHub repository, Lima requires a patched QEMU on M1 Macs.

Note that the followings are customized steps by @toricls based on the original steps and the script. Be sure to check the original files when you try it on your own.

Install QEMU on Silicon based Apple Macs

@toricls
toricls / lima-on-m1-mac-installation-guide.md
Last active May 11, 2022
Using Lima to run containers with containerd and nerdctl (without Docker Desktop) on M1 Macs
View lima-on-m1-mac-installation-guide.md

Lima (Linux virtual machines, on macOS) installation guide for M1 Mac.

Sep. 27th 2021 UPDATED

Now we can install patched version of QEMU via Homebrew (thank you everyone for the info!). Here is the updated instruction with it:

Used M1 Mac mini 2020 with macOS Big Sur Version 11.6.

1. Install QEMU & Lima

@azu
azu / TypeScriptの設定の良し悪し.md
Last active May 15, 2022
TypeScriptの設定の良し悪し
View TypeScriptの設定の良し悪し.md

tsconfig.json の設定についてのメモ書きです。

Node.jsのバージョンごとの設定

target は 変換後のコードのECMAScriptバージョンを指定する たとえば、Node.js 14はES2020をサポートしている。そのため、Node.js 14向けのコード(サーバなど)ならtarget: "ES2020"を指定することで、余計なTranspileが省かれててコードサイズや実行時間が最適化される。

@ybiquitous
ybiquitous / secretlint.yml
Last active May 13, 2021
Secretlint out of the box via GitHub Actions
View secretlint.yml
# https://github.com/secretlint/secretlint
name: secretlint
on:
push:
branches: ['main']
pull_request:
branches: ['**']
jobs:
View 20 年代のフロントエンド.md

明日の下書き


これはなに

  • 高円寺.dev #3 用の資料 https://koenji.connpass.com/event/160886/
  • フロントエンド専門じゃない人向けの、フロントエンドの最先端〜やや未来の話です
  • このレイヤーでは Node.js を使うべき/使うと強いという部分がありますが、他言語を否定しているわけではありません。むしろ他言語でこのアーキテクチャを模倣してほしいという話です。
View GraphQLとクライアントサイドの実装指針.md
@necojackarc
necojackarc / Set up Vim with clipboard on Ubuntu on WSL2.md
Last active Apr 24, 2022
Set up Vim on Ubuntu on Windows Subsystem for Linux 2 (WSL2) to share clipboard
View Set up Vim with clipboard on Ubuntu on WSL2.md

This explains how to set up Vim on Ubuntu 18.04 on Windows Subsystem for Linux 2 (WSL2) in order to share the clipboard between Windows and Ubuntu.

Environments

  • Windows 10 Home
  • Ubuntu 18.04 on Windows Subsystem for Linux 2 (WSL2)

Steps

  1. Build Vim with the clipboard option enabled
  2. Set up VcXsrv Windows X Server
@waaaaRapy
waaaaRapy / totp.js
Last active Jul 14, 2021
Time-Based One-Time Password Generator (RFC6238)
View totp.js
// work on node v10.15.3
const DIGIT = 6;
const TIME_STEP = 30;
/**
* Calculate TOTP value defined in [RFC6238](https://tools.ietf.org/html/rfc6238)
*
* @param {Buffer} key shared secret between client and server
* @param {Date} date date to calculate totp value.
@tbutts
tbutts / tmux-migrate-options.py
Last active Mar 8, 2022
For tmux configs: Merge deprecated/removed -fg, -bg, and -attr options into the -style option
View tmux-migrate-options.py
#!/usr/bin/env python
# vim: set fileencoding=utf-8
#
# USAGE:
# Back up your tmux old config, run the script and redirect stdout to your conf
# file. Example:
#
# $ cp ~/.tmux.conf ~/.tmux.conf.orig
# $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf
#