Skip to content

Instantly share code, notes, and snippets.

View mizucoffee's full-sized avatar
🌊

GOTO Ritsuki mizucoffee

🌊
View GitHub Profile
@mizucoffee
mizucoffee / ts.sh
Last active October 27, 2016 07:08
突然の死ジェネレータ
#!/bin/bash
#####################################################
# _人人人人人人_ #
# > 突然の死 < ジェネレータ(コマンドライン版) #
#  ̄Y^Y^Y^Y^Y ̄ #
# #
# by @kawakawaritsuki #
# みずこーひー #
#####################################################
@mizucoffee
mizucoffee / monitoring.sh
Created November 5, 2016 12:27
Chinachuで自動エンコード(監視型)
#!/bin/bash
# /mnt/video1 recordedフォルダ
# /mnt/video2 エンコード先フォルダ
while true
do
for file in `\find /mnt/video1 -maxdepth 1 -type f`; do
cat /mnt/video2/data.csv | grep -F $file
@mizucoffee
mizucoffee / index.md
Last active October 15, 2018 15:32
CentOS7にChinachuをインストール -17年12月版-

注意: この記事はnodeのバージョン等が既に古いです。参考にする程度にしてください。

OSインストール

通常通りCentOSをインストールしますが、LVMを使わないようにしましょう。闇です(個人的見解)。何かあったとき楽なのは通常なので...

準備

sudo yum -y install git kernel-headers kernel-devel make gcc wget curl ccid pcsc-lite pcsc-lite-devel pcsc-lite-libs bzip2 perl-ExtUtils-MakeMaker zip unzip yasm autoconf automake cmake gcc-c++ kernel-devel-`uname -r` nano
sudo sh -c "curl -sL https://rpm.nodesource.com/setup_6.x | bash -"
"Searching now...\n\nPlease push wiimote 1 & 2 button."
"Searching now...\n\nPlease push balance board power button."
"Device not found."
"Found device."
"This device is Wiimote."
"This device is WiiBalanceBoard"
@mizucoffee
mizucoffee / Example.java
Last active January 28, 2017 13:50
サンプル
try {
 URL url = new URL("http://www.example.com/");
URLConnection uc = url.openConnection();
uc.setDoOutput(true);
uc.setRequestProperty("Content-type", "application/json");
OutputStream os = uc.getOutputStream();
PrintStream ps = new PrintStream(os);
ps.print("post message");
ps.close();
process.stdin.resume();
process.stdin.setEncoding('utf8');
// Here your code !
const NmlModel = (()=>{
var text;
var type;
var properties;
return class {
@mizucoffee
mizucoffee / index.md
Last active March 30, 2017 12:45
これからの展望

あーちぇりー艦これ メンター呼び鈴(ファミレススタックスタイル)

@mizucoffee
mizucoffee / main.py
Created May 6, 2017 11:46
特定のTwitterアカウントを監視してログを吐き出すPythonスクリプト
#-*- coding:utf-8 -*-
from escpos import *
from tweepy.streaming import StreamListener, Stream
from tweepy.auth import OAuthHandler
from tweepy.api import API
from datetime import timedelta
from datetime import datetime as dt
def get_oauth():
@mizucoffee
mizucoffee / rtx3000-dhcp.conf
Last active June 13, 2017 12:37
RTX3000のDHCP
dhcp service server
dhcp server rfc2131 compliant except remain-silent
dhcp scope 1 192.168.50.2-192.168.50.254/24
dhcp scope bind 1 192.168.50.49 01 d0 50 99 a6 7b XX # こっちは普通に動いてます(前までethernet macaddrでしたが変更しました)
dhcp scope bind 1 192.168.50.50 d0:50:99:ab:b3:XX # ethernetを入れても同じでした...
dhcp scope 2 192.168.51.2-192.168.51.254/24
dhcp scope 3 192.168.52.2-192.168.52.254/24
@mizucoffee
mizucoffee / index.md
Last active June 29, 2017 04:32
[DEPRECATION] About CHS Files v1

Format

概要

拡張子:chs
行は1拍を表しています。1行の拍は変更することが出来ます。
AIRしながら下でスライド、と言った動作はレイヤーを使って表現することが出来ます。

記号

R 赤TAP
Y 黄TAP