Skip to content

Instantly share code, notes, and snippets.

View mamemomonga's full-sized avatar

Shotaro Takahashi mamemomonga

View GitHub Profile
@mamemomonga
mamemomonga / docker-named-volume.md
Created September 2, 2022 03:19
DockerのNamed Volumeの基本的な使い方

DockerのNamed Volumeの基本的な使い方

作成

$ docker volume create hogehoge
hogehoge

一覧

@mamemomonga
mamemomonga / code-server.md
Last active September 2, 2022 03:05
code-serverをDockerで立ち上げてみるテスト

code-serverをDockerで立ち上げてみるテスト

$ mkdir code-server
$ cd code-server
$ mkdir -p config
$ mkdir -p data
$ mkdir -p project
@mamemomonga
mamemomonga / docker-gitlab.md
Last active September 1, 2022 08:21
GitLab を docker-composeで動かす例
  • 192.168.1.101 ホストのIPアドレス
  • 192.168.1.100 ホストのIP-AliasのGitLab専用のIPアドレス
  • gitlab.example 自宅のDNSで解決できるようにしておく
  • ホストのsshdのIPアドレスを明示する

/etc/network/interfaces (Debian系)

auto ensXXX
iface ensXXX inet static
@mamemomonga
mamemomonga / audio2mp4.sh
Last active August 27, 2022 18:36
オーディオを動画にするスクリプト
#!/bin/bash
set -eu
# フォントの関係でmacOS専用
if [ -z "${1:-}" ]; then
echo "USAGE:"
echo " $0 [AUDIO FILE]"
echo ""
exit 1
@mamemomonga
mamemomonga / gist:6de2c50b226a090e11ad4fae4192aa4b
Created July 28, 2022 22:43
シティーポップスコレクション Vol.1 (2020/05/17)

シティーポップスコレクション Vol.1 (2020/05/17)

MixCloud

Tr Title Artist
1 真夜中のドア-Stay With Me 松原みき
2 HOLD ME TIGHT ラジ
3 シンプル・ラブ 大橋純子
4 街のドルフィン 濱田金吾
@mamemomonga
mamemomonga / AssumeUDPEncapsulationContextOnSendRule.reg
Created June 21, 2022 02:26
WindowsクライアントからNAT-Tデバイスの背後に設置したL2TP/IPsecサーバに接続する
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent]
"AssumeUDPEncapsulationContextOnSendRule"=dword:00000002
@mamemomonga
mamemomonga / Makefile
Created June 12, 2022 15:40
ArduinoCLI + ESP32 + FFAT
# --------------------------------------
# Arduino-CLI + ESP32 + FFAT
# --------------------------------------
# http://marc.merlins.org/perso/arduino/post_2019-03-30_Using-FatFS-FFat-on-ESP32-Flash-With-Arduino.html
# https://github.com/marcmerlin/esp32_fatfsimage/blob/master/README.md
# https://github.com/labplus-cn/mkfatfs
# https://github.com/lorol/arduino-esp32fs-plugin
# https://github.com/marcmerlin/arduino-esp32/tree/master/libraries/FFat/examples/FFat_Test
# --------------------------------------
@mamemomonga
mamemomonga / RasPico.md
Last active May 7, 2022 17:03
Raspberry Pi Picoメモ
@mamemomonga
mamemomonga / prowl-notify.sh
Created April 3, 2022 03:31
prowlによるシンプルな通知
#!/bin/bash
set -eu
# 使い方
# ./prowl-notify.sh "こんにちは"
# https://www.prowlapp.com/
PROWL_APIKEY=ここにAPIキーを書く
curl -X POST -d 'apikey='"$PROWL_APIKEY"'&application=something&priority=-1&event='"$1"'' \
@mamemomonga
mamemomonga / git-remote-rename.pl
Last active March 17, 2022 13:46
カレントディレクトリ以下に含まれるGitのリモートリポジトリのホスト名を一括して書き換える。
#!/usr/bin/env perl
# -------------------------------------
# 要 IO:All (cpanm install IO::All)
# 必ずバックアップを行ってから実行すること
# -------------------------------------
use strict;
use warnings;
use feature 'say';
use File::Find;