-
要rtmpdump
-
生
石川典行の配信を例に取る。
http://twitcasting.tv/streamserver.php?mode=view&appid=TCViewerFlash&rtmp=1&target=icchy8591
レスポンス 例 edge101.moi.st/publisher/214392821-f554a8fe319b8e13.stream?is_publisher=0:1935:GET :icchy8591:214392821
rtmpdump -r "rtmp://edge101.moi.st/publisher/214392821-f554a8fe319b8e13.stream" -y "publisher/214392821-f554a8fe319b8e13.stream?is_publisher=0" -y icchy8591 -o output.flv
コメント 初回 例 http://twitcasting.tv/noriyukicas/userajax.php?c=listupdate&m=212328387
mは放送ID
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
##### nginxでリバースプロキシして後段でエラーが発生した場合にnginx側でエラーページの制御をしたい時の設定 ##### | |
proxy_intercept_errors on; # errorをproxy側で肩代わりする設定 | |
error_page 403 404 500 502 503 504 /error.html; # /var/www/html/error.htmlを置いておく | |
location /error.html { | |
root /var/www/html/; | |
} | |
#### headerの値を参照する #### | |
$http_フィールド名 |
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
;;; -*- coding: utf-8 -*- | |
;; okuri-ari entries. | |
つもあがt /ツモ和了;[麻雀]/ | |
つもあがr /ツモ和了;[麻雀]/ | |
つもt /自摸;[麻雀]/ | |
つもt /ツモ;[麻雀]/ | |
つもr /自摸;[麻雀]/ | |
つもr /ツモ;[麻雀]/ | |
くいながs /喰い流;[麻雀]/ | |
くいなおs /喰い直;[麻雀]/ |
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 ruby | |
# coding: utf-8 | |
require 'open3' | |
require 'tempfile' | |
class Avconv | |
def initialize(path, bin = 'avconv') | |
@path = path | |
@bin = bin | |
@tempfile = Tempfile.new ['sd-hd', '.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
#!/bin/bash | |
# ref: http://ssig33.com/text/VAIO%20Pro%20%E3%82%92%20Linux%20%E3%81%A7 | |
# USB の自動サスペンド | |
for F in `ls /sys/bus/usb/devices/usb[0-9]*/power/autosuspend` | |
do | |
sudo sh -c "echo 1 > ${F:?}" | |
done | |
# WiFi の省電力設定 |
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
> LIBNFC_LOG_LEVEL=3 nfc-list | |
debug libnfc.config key: [allow_intrusive_scan], value: [yes] | |
debug libnfc.config Unable to open directory: /usr/local/Cellar/libnfc/1.7.0/etc/nfc/devices.d | |
debug libnfc.general log_level is set to 3 | |
debug libnfc.general allow_autoscan is set to true | |
debug libnfc.general allow_intrusive_scan is set to true | |
debug libnfc.general 0 device(s) defined by user | |
nfc-list uses libnfc 1.7.0 | |
debug libnfc.general 0 device(s) found using arygon driver | |
debug libnfc.general 0 device(s) found using pn532_uart driver |
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
/* | |
* コンパイルしてManagedフォルダ内へ置いてください | |
* csc /t:library /r:Assembly-CSharp-firstpass.dll CM3D2.ArchiveReplacer.Hook.cs | |
* CM3D2_KAIZOU\_Data フォルダに追加・置換したいファイルを置いてください | |
*/ | |
// @AB_addarg /r:Assembly-CSharp-firstpass.dll | |
// @AB_addarg /lib:%managed% | |
// @AB_install %managed% | |
using System; |
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
# /etc/systemd/system/docker.service.d/docker-nftables.conf | |
# disable iptables in docker, allowing nftables to do work | |
[Service] | |
ExecStart= | |
ExecStart=/usr/bin/docker daemon -H fd:// --iptables=false |
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
// ==UserScript== | |
// @name [Mastodon] show ⭐🔃 on static pages | |
// @namespace hen.acho.co | |
// @include /^https?:\/\/[^\/]+\/(?:@\w+|users\/\w+\/(?:statuses|updates))\/\d+/ | |
// @version 1.221212 | |
// @description add favoriter or booster icons next to counts | |
// @downloadURL https://gist.github.com/pacochi/d466d481fa9aa982c2f206815765fd53/raw/mastodon_show_faboo.user.js | |
// @run-at document-idle | |
// @grant none | |
// ==/UserScript== |
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
/* | |
元 : https://mstdn.maud.io/@unarist/99654429632902892 | |
崩れるところも結構あるらしい | |
*/ | |
.status-unlisted::before, .status-private::before { | |
display: block; | |
position: absolute; | |
width: 14px; | |
height: 14px; | |
left: 10px; |
OlderNewer