さくらのクラウドシェルでコピペ一発で「俺環境」を準備する
- さくらのクラウドシェル
- ネットワークが必要なので認証が必要
以下をコピペする
curl -L https://gist.githubusercontent.com/mamemomonga/4663dde65896402ca99a13d63afbeb64/raw/9045827bae598b3658f21204027ef0831d39358e/setup.sh | sudo bash
以下をコピペする
curl -L https://gist.githubusercontent.com/mamemomonga/4663dde65896402ca99a13d63afbeb64/raw/9045827bae598b3658f21204027ef0831d39358e/setup.sh | sudo bash
$ git clone git@github.com:mattn/bsky.git
$ cd bsky
$ go build
$ ./bsky login mamemomonga.bsky.social パスワード
$ ./bsky timeline
$ ./bsky post 'そろそろ眠くなってきたお'
公式マニュアルにあるcorepackを使う方法だと上手くいかないので注意
$ nodenv install 14.21.3
$ nodenv local 14.21.3
$ npm i -g yarn
$ yarn -v
1.22.19
#!/bin/bash | |
set -eu | |
# BlueSkyにシェルスクリプトで投稿する | |
# 必要なもの bash, curl, jq | |
# カレントディレクトリに session.json, message.json が生成されます。 | |
# これらは秘匿情報が含まれている場合があります。ご注意ください。 | |
# しのさんさん(@shino3.bsky.social), syuiさん(@syui.ai) ありがとう! | |
BKY_ID="ユーザ名.bsky.social" |
#include <SPI.h> | |
// DIPスイッチとボタンの状態をUSBシリアル出力で表示する。ボーレートは115200 | |
// DIPスイッチがONになっている数を7セグで表示する。またいずれかのボタンが押されたら小数点を表示する | |
// ビルトインLEDは LED_BUILTIN で定義されているが | |
// SCKと同じなので使わないこと | |
// 秋月電子のサンプルとはバイトオーダが逆なので注意 | |
// これ: MSBFIRST / 秋月: LSBFIRST |
#define SRR_LD 21 | |
#include <SPI.h> | |
// ビルトインLEDは LED_BUILTIN で定義されているが | |
// SCKと同じD13なので使わないこと | |
uint8_t pv; | |
void srrStart() { | |
SPI.begin(); |
「半額寿司が買えなくて」 | |
作詞:なすーん | |
作曲:まめも | |
歌:初音ミク | |
♪=160 | |
イントロ: DGDG | |
[1] | |
D |
#!/usr/bin/perl | |
# すべてのファイルを ../files にコピーするシェルスクリプトを生成する。 | |
# ただし、フォルダがない場合は新たに作成し、 | |
# 拡張子がhtm,html,js,css,txtの場合はgzip圧縮し、拡張子.gzを追加する。 | |
use strict; | |
use warnings; | |
use File::Find; | |
use feature 'say'; |
#!/usr/bin/env perl | |
# --------------------------------------------- | |
# このファイルと同じところに置かれた全てのWAVファイルを | |
# ffmpegを通して1階層上のIMPORTフォルダに出力する | |
# --------------------------------------------- | |
use strict; | |
use warnings; | |
use Cwd 'getcwd'; | |
use feature 'say'; | |
use File::Basename; |
#!/usr/bin/env perl | |
# ----------------- | |
use strict; | |
use warnings; | |
use feature qw(say); | |
use Data::Dumper; | |
# NJM11100F1 | |
# NMD(JRC) https://www.nisshinbo-microdevices.co.jp/ja/products/ldo-linear-regulator/spec/?product=njm11100 |