Skip to content

Instantly share code, notes, and snippets.

@snb
snb / virtualbox_ports.png
Created January 24, 2010 01:46
virtualbox serial console
virtualbox_ports.png
@riywo
riywo / gist:854138
Created March 4, 2011 03:45
bashでプログラムの実行結果のdiffを取りたい時
diff -u <(echo hoge) <(echo fuga)
--- /dev/fd/63 2011-03-04 12:44:34.176435837 +0900
+++ /dev/fd/62 2011-03-04 12:44:34.176435837 +0900
@@ -1 +1 @@
-hoge
+fuga
@wataru420
wataru420 / addUser
Created February 7, 2012 03:54
Jenkins init script for centos
/usr/sbin/groupadd -g 30119 jenkins
/usr/sbin/useradd -u 30119 -g jenkins jenkins
mkdir /home/jenkins
chown -R jenkins. /home/jenkins
@teramako
teramako / kornw_unique_title.user.js
Created March 19, 2012 07:29
Oracle KROWN 文書にタイトルをつける
// ==UserScript==
// @id krown_unique_title
// @name krown_unique_title
// @version 1.0
// @namespace krown の文書にタイトルをつける
// @author teramako
// @description Oracle KROWN
// @include https://krown.oracle.co.jp/krown/oisc_showDoc.do?*
// @run-at document-end
// ==/UserScript==
@fumiyas
fumiyas / u-nya.zshrc
Created May 2, 2012 12:33
端末ウィンドウタイトルと右プロンプトに這いよる混沌 (zsh, bash)
#!/bin/zsh
#!/bin/bash
##
## 端末ウィンドウタイトルと右プロンプトに這いよる混沌 (zsh)
## 端末ウィンドウタイトルに這いよる混沌 (bash)
## Written by SATOH Fumiyasu
## https://github.com/fumiyas
## https://twitter.com/#!/satoh_fumiyasu
##
## Inspired by:
function! GetFilename()
let fname = expand("%")
return (fname == "") ? "[No Name]" : fname
endfunction
let &statusline='%{GetFilename()}'
@saitoha
saitoha / screen-bracketed-paste-mode.diff
Created June 11, 2012 12:06
bracketed paste mode patch for GNU screen
diff --git a/src/ansi.c b/src/ansi.c
index d88e153..ecc6e69 100644
--- a/src/ansi.c
+++ b/src/ansi.c
@@ -193,6 +193,7 @@ register struct win *p;
p->w_insert = 0;
p->w_revvid = 0;
p->w_mouse = 0;
+ p->w_bracketed = 0;
p->w_curinv = 0;
@saitoha
saitoha / drcsconv.pl
Created June 20, 2012 13:45
Convert image file to VT-320's DRCS format.
#!/usr/bin/env perl
use strict;
use warnings;
if ($#ARGV != 0) {
print "ussage: drcsconv.pl <filename>.";
exit 0;
}
my $file = $ARGV[0];
@saitoha
saitoha / screen-bpm-cursorstyle.diff
Created June 23, 2012 11:01
add Bracketed Paste Mode and DECSCUSR support for GNU Screen (http://savannah.gnu.org/git/?group=screen)
diff --git a/src/ansi.c b/src/ansi.c
index d88e153..89116c3 100644
--- a/src/ansi.c
+++ b/src/ansi.c
@@ -193,6 +193,8 @@ register struct win *p;
p->w_insert = 0;
p->w_revvid = 0;
p->w_mouse = 0;
+ p->w_bracketed = 0;
+ p->w_cursorstyle = 0;
@saitoha
saitoha / screen-sgr-mouse.diff
Created July 12, 2012 12:04
Support SGR 1006 mouse reporting, for GNU Screen
diff --git a/src/ansi.c b/src/ansi.c
index d88e153..088ab0b 100644
--- a/src/ansi.c
+++ b/src/ansi.c
@@ -193,6 +193,7 @@ register struct win *p;
p->w_insert = 0;
p->w_revvid = 0;
p->w_mouse = 0;
+ p->w_mouse_protocol = 0;
p->w_curinv = 0;