Skip to content

Instantly share code, notes, and snippets.

@yasushiyy
yasushiyy / oracle_linux_docker.md
Last active May 24, 2016 12:53
Oracle LinuxのDocker Image (DB12cインストール用)を作る
@yasushiyy
yasushiyy / sqlplus.md
Created July 2, 2014 04:19
SQL*PlusでSQLの定期実行

1秒単位とかで、定期的にSQLを実行したいときのやり方。

#!/bin/sh

cd `dirname $0`

LOCKFILE=.lock_sesw_`date "+%m%d%H%M%S"`
rm -f .lock_sesw_*
touch $LOCKFILE
@ttdoda
ttdoda / uudecode.ttl
Created July 8, 2014 11:18
Tera Termマクロでのuudecodeの実装
setsync 1
timeout = 0
; getspecialfolder save_dir "MyDocuments"
getspecialfolder save_dir "Desktop"
; save_dir = "C:\My Documents"
; save_dir = ""
do
recvln
@hiroyuki-sato
hiroyuki-sato / gist:a4e7416b01e2a2fe7704
Last active December 24, 2015 08:18
Embulkとrubygem

Embulkとrubygem

embulk-plugin-input-roo-excelはExcelのデータを読み込むためのInputプラグインです。このプラグインでは、Excelファイルを読込みするためにrubyのライブラリrooを使用しています。

このドキュメントはEmbulkで、Rubyのライブラリを使うためにはどのようにしたら良いかをメモしたものです。

このドキュメントは一部不完全なところがあります。(まだ手順が確立できておらず試行錯誤中です。)

環境

@ttdoda
ttdoda / byonbyon.rb
Last active April 26, 2017 01:17
端末のウィンドウが勝手にびよんびよんなってたのしいやつ
#!/usr/bin/env ruby
# License: CC0
include Math
STDOUT.sync = 1
case `env LC_ALL=C stty -a`
when / (\d+) rows; (\d+) columns/
rows = $1.to_i
@ttdoda
ttdoda / pyonpyon.rb
Last active August 4, 2017 18:56
あぁ^~端末がぴょんぴょんするんじゃぁ^~
#!/usr/bin/env ruby
#
# License: CC0
#
gravity = 3
require 'timeout'
include Math
$stdout.sync = 1
@hiroyuki-sato
hiroyuki-sato / gist:a6de22e3ad05bf27780d
Created November 16, 2015 02:28
embulk-output-elasticsearch
git clone https://github.com/muga/embulk-output-elasticsearch.git
cd embulk-output-elasticsearch/
./gradlew gem
embulk gem install -l pkg/embulk-output-elasticsearch-0.1.8.gem
@hiroyuki-sato
hiroyuki-sato / README.md
Created December 10, 2015 13:23
Embulk cookie sample

sample.txt

id_field,key1=aaa; key2=bbb; key3=ccc

config.yml

@saitoha
saitoha / screen-osc11.patch
Created January 19, 2016 14:35
GNU Screen: Support OSC 11 sequence (set background color)
diff -ur ansi.c ansi.c
--- ansi.c 2015-04-08 14:34:29.000000000 +0900
+++ ansi.c 2016-01-19 23:23:20.000000000 +0900
@@ -1554,12 +1554,10 @@
}
#endif
#ifdef RXVT_OSC
- if (typ == 0 || typ == 1 || typ == 2 || typ == 20 || typ == 39 || typ == 49)
+ if (typ == 0 || typ == 1 || typ == 2 || typ == 11 || typ == 20 || typ == 39 || typ == 49)
{
@ttdoda
ttdoda / screen-osc10_11.patch
Last active February 5, 2016 18:00 — forked from saitoha/screen-osc11.patch
GNU Screen: Support OSC 10 & 11 sequence (set foreground/background color)
diff -ur ansi.c ansi.c
--- ansi.c 2015-04-08 14:34:29.000000000 +0900
+++ ansi.c 2016-01-19 23:23:20.000000000 +0900
@@ -1554,12 +1554,12 @@
}
#endif
#ifdef RXVT_OSC
- if (typ == 0 || typ == 1 || typ == 2 || typ == 20 || typ == 39 || typ == 49)
+ if (typ == 0 || typ == 1 || typ == 2 || typ == 10 || typ == 11 || typ == 20 || typ == 39 || typ == 49)
{