Skip to content

Instantly share code, notes, and snippets.

View tydk27's full-sized avatar

tydk27 tydk27

View GitHub Profile
@tydk27
tydk27 / addNotifyFrom.patch
Last active September 10, 2017 07:14
add option to Chinachu
diff --git a/app-operator.js b/app-operator.js
index 8b6b671..4eeaf35 100644
--- a/app-operator.js
+++ b/app-operator.js
@@ -65,8 +65,11 @@ const recordingPriority = config.recordingPriority || 2;
const conflictedPriority = config.conflictedPriority || 1;
const storageLowSpaceThresholdMB = config.storageLowSpaceThresholdMB || 3000;// 3 GB
const storageLowSpaceAction = config.storageLowSpaceAction || "remove"; // "none" | "stop" | "remove"
+const storageLowSpaceNotifyFrom = config.storageLowSpaceNotifyFrom || "Chinachu <chinachu@localhost>";
const storageLowSpaceNotifyTo = config.storageLowSpaceNotifyTo;// e-mail address
#!/usr/bin/perl
package class;
use 5.010;
# Constructor
sub new {
my $self = shift;
return bless {}, $self;
}
#!/usr/bin/perl
use strict;
use warnings;
#
# アニメ作品ディレクトリ作成
# perl make_anime_dir.pl --path=/home/tydk27/mnt/video --quarter=2016Q1
#
# ===== 処理概要 =====
@tydk27
tydk27 / install_latest_devel_env_for_lamp.sh
Last active April 9, 2016 15:22
created at 2016-03-20
#!/usr/bin/bash
# Initialize
mkdir work
yum -y install autoconf automake gcc git libtool make cmake bison gcc-c++ wget tar m4 gd-devel libxml2-devel t1lib-devel bzip2-devel curl-devel gmp-devel aspell-devel recode-devel openssl-devel readline-devel
cd work
proc_num=0
@tydk27
tydk27 / SampleForm.cs
Created October 30, 2015 06:51
[C#] ListBoxにファイルのD&Dイベントを許可 (忘れやすいので備忘録として)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@tydk27
tydk27 / tsundere_list.cpp
Last active October 30, 2015 06:52
[C++] アニメワショーイから今期の作品一覧を取得 ref: http://sakuhindb.com/pj/6_B4C9CDFDBFCDA4B5A4F3/20100218.html
#include <fstream>
#include <istream>
#include <ostream>
#include <boost/regex.hpp>
#include <boost/asio.hpp>
#include "iconv_wrapper.hpp"
using namespace std;
using namespace boost;
using namespace boost::asio::ip;