Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View yanoshi's full-sized avatar

Masahito Yano yanoshi

View GitHub Profile
@yanoshi
yanoshi / twitter_api_filtered_stream.py
Last active November 10, 2021 11:35
Filtered Stream Test (Twitter API v2)
# From https://github.com/twitterdev/Twitter-API-v2-sample-code/blob/2fa0bfdb3a62dd4e544b6f4f334b2a557a395f49/Filtered-Stream/filtered_stream.py
# This software includes the work that is distributed in the Apache License 2.0(http://www.apache.org/licenses/LICENSE-2.0).
import requests
import os
import json
# To set your enviornment variables in your terminal run the following line:
# export 'BEARER_TOKEN'='<your_bearer_token>'
bearer_token = os.environ.get("BEARER_TOKEN")
@yanoshi
yanoshi / config.json
Created July 2, 2017 15:02
Chinachu用のconfig.json
{
"recordedDir" : "/rec/",
"temporaryDir": "/tmp/",
"wuiUsers": [
"akari:hirakegoma"
],
"wuiAllowCountries": ["JP"],
"mirakurunPath": "http://localhost:40772/",
@yanoshi
yanoshi / channels.yml
Created July 2, 2017 09:03
Mirakurunの設定ファイル for Blog (多分目黒区とか品川区とか渋谷区に住んでいる人はそのまま利用できる。)
- name: NHK総合・東京
type: GR
channel: '14'
- name: NHKEテレ東京
type: GR
channel: '13'
- name: tvk
type: GR
channel: '5'
- name: 日本テレビ
@yanoshi
yanoshi / recCheck.sh
Last active July 2, 2016 08:56
Chinachu用のRecodedCommandなシェルスクリプト
#!/bin/sh
# 参考文献
# http://sonic-labo.xsrv.jp/gosogoso/2015/11/23/post-30/
echo "${1}" > ~/filename.txt
echo "${2}" > ~/param.txt
/usr/local/bin/node /home/chinachu/rec_copy_script/recCheck.js "${1}" "${2}"
@yanoshi
yanoshi / config.json
Last active December 12, 2016 14:01
Chinachu設定ファイル(Windowsで動くMirakuruに対して、Rivarunを使って接続)
{
"recordedDir" : "/media/sf_rec/",
"temporaryDir": "/tmp/",
"wuiUsers": [
"akari:hirakegoma"
],
"wuiAllowCountries": ["JP"],
"wuiPort" : 10772,
@yanoshi
yanoshi / BonDriverProxyEx.ini
Last active February 11, 2022 18:07
Mirakurun@Windowsな設定ファイル(紆余曲折があってBonDriverProxyExを使って動作させてる)
[OPTION]
; サーバ側でのアドレス指定では「,」区切りで複数インタフェースを指定可能
; e.g. ADDRESS=192.168.0.100, 127.0.0.1
ADDRESS=192.168.0.3, 127.0.0.1
PORT=11920
OPENTUNER_RETURN_DELAY=0
SANDBOXED_RELEASE=0
DISABLE_UNLOAD_BONDRIVER=0
;BONDRIVER=PT-T
CHANNEL_LOCK=1
@yanoshi
yanoshi / create_ap.bat
Created August 23, 2015 04:10
Windows 8以降でAPを作るスクリプト
@echo off
echo 管理者権限で実行せよ。中止はCtrl+Cで。
echo ソフトAP完成後、コントロールパネルより別途ネットワークの共有設定が必要。以下のリンク等を参照せよ。
echo http://nw-knowledge.blogspot.jp/2014/02/win8-8.1-softap-virtualwifi.html
SET /P SSID=Enter_SSID:
SET /P KEY=Enter_KEY:
netsh wlan set hostednetwork mode=allow
netsh wlan set hostednetwork ssid=%SSID% key=%KEY%
netsh wlan start hostednetwork
@yanoshi
yanoshi / VCE.txt
Created May 21, 2015 18:08
AutoConvert + A's Video Converter で AMD VCEを行うためのスクリプト群(VCE.txt)
{
"type": 2,
"ext": "mp4",
"enc": "$AutoConvert$App\\my_command\\command.bat",
"opt": "<video> <output>"
}
@yanoshi
yanoshi / encoder.ps1
Created May 21, 2015 18:06
AutoConvert + A's Video Converter で AMD VCEを行うためのスクリプト群(encoder.ps1)
Param(
[string]$output_fullpath
)
$input_fullpath = [System.IO.Path]::ChangeExtension($output_fullpath, ".avs")
$input_filename = Split-Path $input_fullpath -Leaf
$output_path = Split-Path $output_fullpath -Parent
@yanoshi
yanoshi / command.bat
Created May 21, 2015 18:05
AutoConvert + A's Video Converter で AMD VCEを行うためのスクリプト群(command.bat)
cd /d %~dp0
powershell -ExecutionPolicy Unrestricted .\encoder.ps1 %2