- bms-renderer: BMSをwavに変換する
npm install --global @watiko/bms-renderer
- 本家で対応されたら本家を入れると良い
- libsndfileが必要なので用意しておく。debianでは
apt install libsndfile1-dev
- sox: 先頭の無音部分を削除
- ffmpeg: oggに変換しつつ、頭出しから10秒を切り出す
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
let ts = std::time::SystemTime::now() | |
.duration_since(std::time::UNIX_EPOCH) | |
.unwrap() | |
.as_millis(); | |
print!("{}", ts); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdlib> | |
template<typename T> | |
struct OrdTraits; | |
// int 向けにテンプレートの特殊化 | |
template<> struct OrdTraits<int> { | |
static bool less(const int &x, const int &y) { | |
return x < y; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# forked from: https://github.com/keepworking/MH-Z14A-PI | |
import serial | |
import time | |
import datetime | |
import json | |
import argparse | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## セットアップ | |
```bash | |
$ mkdir bin | |
$ go run tools.go | |
``` | |
## 実行 | |
```bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Ext { | |
export enum A { | |
One = 'one', | |
Two = 'two', | |
Three = 'three', | |
} | |
export namespace B { | |
export type Type = typeof One | typeof Two | typeof Three | |
export const One = 'one' |
9:00にオフィス(Sticky Fingers)
食料品は事前に用意しておく。食べ過ぎない。胃に負担をかけないようにする。
運営の櫛井さんからのメールに従って、サポートチャットと予選ポータルサイトにログインする。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: myconf | |
data: | |
TEST_KEY: my-value | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: |
docker run --rm sentry config generate-secret-key
で SECRET_KEY を生成する- SECRET_KEY を環境変数にいれる
export SENTRY_SECRET_KEY="your generated secret key"
docker-compose up -d
でサービスあげるdocker-compose run --rm sentry sentry upgrade
で初期設定するdocker-compose restart
で再起動- Go http://localhost:9000 and get sentry!
NewerOlder