Skip to content

Instantly share code, notes, and snippets.

View ww24's full-sized avatar
🏢
≡GO

Takenori Nakagawa ww24

🏢
≡GO
View GitHub Profile
@ww24
ww24 / go.mod
Last active August 13, 2023 16:16
OCSP verifier implemented in Go
module sandbox.example.com/crl-ocsp
go 1.21
toolchain go1.21.0
require golang.org/x/crypto v0.12.0

Keybase proof

I hereby claim:

  • I am ww24 on github.
  • I am ww24 (https://keybase.io/ww24) on keybase.
  • I have a public key ASAx8jLMou6MhnvGSVX3F0ADFQpK6UyVr_Lb9DmPGtVoFQo

To claim this, I am signing this object:

@ww24
ww24 / README.md
Last active November 13, 2022 07:20
Docker Engine on Multipass for macOS
@ww24
ww24 / README.md
Last active December 13, 2023 02:48
How to sign git commit?

How to sign git commit?

Install

brew install gnupg pinentry-mac

Configure

@ww24
ww24 / rpi3_raspbian_pw_reset.md
Last active July 1, 2019 16:18
Raspberry Pi 3 (raspbian) でパスワードを忘れたときのリセット方法

1. cmdline.txt

別のマシンで microSD の boot パーティションをマウントして cmdline.txt を編集

次のオプションを末尾に追記 (改行しない)

 init=/bin/bash

2. Raspberry Pi 3 の起動

@ww24
ww24 / aliases.sh
Created February 26, 2018 11:44
Git や Docker を使う上で便利な aliases
# alias for git
alias git-bd='git branch -d $(git branch | while read l; do if [[ $l != \** ]] echo $l; done | peco)'
alias git-co='git checkout $(git branch | while read l; do if [[ $l != \** ]] echo $l; done | peco)'
alias git-fp='git push -u origin $(git symbolic-ref --short HEAD)'
# alias for docker
alias docker-rm-all='docker rm $(docker ps -q -f status=exited)'
alias docker-rmi-all='docker rmi $(docker images -q)'
@ww24
ww24 / .tmux.conf
Last active August 22, 2023 05:21
tmux
# tmux 3.3a
# Use vim keybindings in copy mode
setw -g mode-keys vi
# enable mouse
set-option -g mouse on
set-option -g history-limit 10000
@ww24
ww24 / file0.txt
Last active April 9, 2017 14:02
Raspberry Pi 3 で TV チューナー鯖構築 ref: http://qiita.com/ww24/items/0adc36c013511524da80
$ lsusb | grep VidzMedia
Bus 001 Device 006: ID 3275:0080 VidzMedia Pte Ltd
$ ls /dev/dvb
adapter0
@ww24
ww24 / vpnclient
Last active January 16, 2020 17:41
SoftEther VPN 4 init.d script
#! /bin/sh
### BEGIN INIT INFO
# Provides: vpnclient
# Required-Start: $remote_fs $local_fs $network $syslog
# Required-Stop: $remote_fs $local_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: SoftEther VPN Client
# Description: SoftEther VPN Client
### END INIT INFO
@ww24
ww24 / migration.js
Created May 9, 2015 14:20
WordPress migration tool
#!/usr/bin/env node
/**
* WordPress Image URL Migration Tool
*
*/
var from_url = "http://wordpress.local/";
var to_url = "http://example.com/wordpress/";
var cheerio = require("cheerio");