Skip to content

Instantly share code, notes, and snippets.

import std.stdio;
import std.array;
import std.range;
import msgpack;
import msgpackrpc.client;
import msgpackrpc.server;
struct Test
{
@nvsofts
nvsofts / stop_twitter_keyboard_shortcuts.user.js
Last active June 8, 2018 20:32
Twitterのキーボードショートカットを無効化する (Stop Twitter Keyboard Shortcuts)
// ==UserScript==
// @name Stop Twitter Keyboard Shortcuts
// @namespace http://www.ns-koubou.com/
// @include http://twitter.com/*
// @include https://twitter.com/*
// @include http://*.twitter.com/*
// @include https://*.twitter.com/*
// @run-at document-start
// @version 3
// @grant none
@nvsofts
nvsofts / epgrecUNA_fix_realtime_watch.patch
Created October 19, 2012 15:53
epgrec UNAのリアルタイム視聴の不具合等を修正するパッチ
--- watch.php.old 2012-09-30 00:06:50.000000000 +0900
+++ watch.php 2012-10-20 00:45:32.184187304 +0900
@@ -77,18 +77,25 @@
$tuner_stop = TRUE;
if( $tuner_stop ){
// 非httpサーバ化対応録画コマンド終了 or リアルタイム視聴終了
- $real_view = (int)trim( file_get_contents( REALVIEW_PID ) );
- if( posix_kill( $real_view, 9 ) ){ // 録画コマンド停止 cvlcは自動終了
- do{
- posix_kill( $real_view, 0 );