Raspberry Pi Pico メモ
環境構築からビルド、Lチカまで。
初期設定(macOS, Homebrew設定済み)
$ brew install cmake
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent] | |
"AssumeUDPEncapsulationContextOnSendRule"=dword:00000002 | |
# -------------------------------------- | |
# 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 | |
# -------------------------------------- |
環境構築からビルド、Lチカまで。
$ brew install cmake
#!/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"'' \ |
#!/usr/bin/env perl | |
# ------------------------------------- | |
# 要 IO:All (cpanm install IO::All) | |
# 必ずバックアップを行ってから実行すること | |
# ------------------------------------- | |
use strict; | |
use warnings; | |
use feature 'say'; | |
use File::Find; |
$ curl -L https://gist.githubusercontent.com/mamemomonga/6a1e7a871869ed73ca845c789dced6f5/raw/cd19e1b5555480a29ce73bdd679a11b5eca2f2f4/tmux-open-pwd > tmux-open-pwd
$ chmod 755 tmux-open-pwd
1つ開く
#!/usr/bin/env perl | |
# ------------------------------------------ | |
# docker-compose up -d でMySQL(5.7.37) db の初期化を待つ | |
# Goで作り直しました https://github.com/mamemomonga/mysql-docker-wait-initalize | |
# ------------------------------------------ | |
use strict; | |
use warnings; | |
use feature 'say'; | |
use Symbol 'gensym'; | |
use IPC::Open3; |
$ sudo vim /etc/wsl.conf
[network]
hostname = hogehoge
$ exit
> wsl --shutdown
> wsl
$ sudo apt install openssh-server
※ CRLFで保存すること
@ECHO OFF
#!/usr/bin/env perl | |
#vim: ft=perl | |
# ----------------------------- | |
# 使い方 | |
# $ aws-profile-find [プロファイル名] | |
# プロファイル未指定・複数マッチの場合はプロファイル一覧を返します。 | |
# プロファイルが1つだけ見つかった場合は、AWS_DEFAULT_PROFILEのexport文を返します。 | |
# ----------------------------- | |
use strict; |