| 更新: | 2017-05-09 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 3.14 |
| URL: | http://voluntas.github.io/ |
MQTT をググって調べた人向け
| ;; 基本的なキーバインド | |
| ;; | |
| ;; 基本 | |
| ;; C-x C-c kill-emacs emacs終了 | |
| ;; C-g quit 直前のキー操作をキャンセル | |
| ;; M-x <XXXX><ENTER> lisp-command の直接実行 | |
| ;; C-h m describe-mode 現在のバッファのキーマップ一覧を表示 | |
| ;; ファイル操作 |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import urllib.request, urllib.error, urllib.parse | |
| import os, sys, datetime, argparse, re | |
| import subprocess | |
| import base64 | |
| import shlex | |
| import logging | |
| from sys import argv |
| ## NHKのネット配信サービスであるらじる★らじる。 | |
| # 従来は https://gist.github.com/riocampos/5656450 のように rtmpdump を使う必要がありましたが、 | |
| # 2017年9月から m3u8 による配信へ変更になったようです。m3u8 なので10秒単位での録音になります。 | |
| # また 2021年4月に更新され、以前の M3U8URL は2022年2月末で廃止されました。 | |
| ## 録音コマンド(m4a) | |
| ffmpeg -i M3U8URL -c copy outputfilename.m4a | |
| # ファイルサイズ的に m4a が最も小さくなる | |
| # m4a ファイルのときだけ "-c copy" オプションが使える。 |
| VBoxManage list runningvms | awk '$0=$1' | tr -d '"' | xargs -n1 -I@ VBoxManage controlvm @ acpipowerbutton | |
| VBoxManage list vms | sed -E 's/"(.+)".*$/\1/' | tr '\n' '\0' | xargs -0 -I@ VBoxManage unregistervm @ --delete | |
| # 事前ソート不要の uniq | |
| awk '!s[$0]{s[$0]=1;print}' | |
| # nl 用例 | |
| # - ゼロ埋め2桁連番空白セパレータ | |
| nl -nrz -w2 -s ' ' |
| -- Tit Petric, Monotek d.o.o., Tue 03 Jan 2017 06:54:56 PM CET | |
| -- | |
| -- Delete nginx cached assets with a PURGE request against an endpoint | |
| -- supports extended regular expression PURGE requests (/upload/.*) | |
| -- | |
| function file_exists(name) | |
| local f = io.open(name, "r") | |
| if f~=nil then io.close(f) return true else return false end | |
| end |
| 更新: | 2017-05-09 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 3.14 |
| URL: | http://voluntas.github.io/ |
MQTT をググって調べた人向け
| 作: | @voluntas |
|---|---|
| バージョン: | 0.3.3 |
| url: | http://voluntas.github.io/ |
2014 年 10 月 30 日に行われる 歌舞伎座.tech#5「すごいErlangをゆかいに学ぶ会」 の発表資料です
| 作: | @voluntas |
|---|---|
| バージョン: | 1.0.5 |
| url: | http://voluntas.github.io/ |
2014 年 9 月 26 日に行われた gumistudy#20 の発表資料です
| #!/bin/sh | |
| if [ ! -d "$HOME/bin" ]; then mkdir "$HOME/bin"; fi | |
| cd ~/bin | |
| curl -O https://raw.githubusercontent.com/spawngrid/kerl/master/kerl | |
| chmod a+x kerl | |
| # http://qiita.com/tatsuya6502/items/f15da8ea6e793c5038a2 | |
| # https://gist.github.com/voluntas/8911384#%E3%82%BD%E3%83%BC%E3%82%B9%E3%82%B3%E3%83%BC%E3%83%89%E3%81%8B%E3%82%89%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB | |
| # 上記2つの共通点 |
$ cd Sites
$ composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic yii2-basic-app
$ cd yii2-basic-app
$ pstorm .
ストームで ⌥ + F12