Skip to content

Instantly share code, notes, and snippets.

View takeutch-kemeco's full-sized avatar

Takeutch Kemeco takeutch-kemeco

View GitHub Profile
モリノークマセァン Version0.0.3
モリノークマセァンはウェブブラウザーです。
動作には WebKit2-GTK4.1 (libwebkit2gtk-4.1.so) が必要です。
ビルド方法:
make
実行方法:
./morinowkumasern [初期ページURL]
@takeutch-kemeco
takeutch-kemeco / unzip60-linux-cp932.patch
Last active January 26, 2021 02:50
UnZip-6.0 で文字コードが CP932 or ISO-2022-JP の zip をデコードした場合に、ファイル名が文字化けする問題を修正するパッチ
diff --git a/extract.c b/extract.c
index 1acd769..9f18940 100644
--- a/extract.c
+++ b/extract.c
@@ -2554,6 +2554,10 @@ char *fnfilter(raw, space, size) /* convert name to safely printable form */
uch *space;
extent size;
{
+#ifdef LINUX
+ return (char *)raw;
@takeutch-kemeco
takeutch-kemeco / drop-country.hs
Last active January 4, 2016 03:09
nftables のフィルターテーブルの設定を行うスクリプトを、酔狂でHaskellで書いたもの。
import System.IO
import System.Process
import Data.Maybe
data ApnicRecord = ApnicRecord {
ap_magiq :: String,
ap_country :: String,
ap_ipv :: String,
ap_address :: String,
ap_mask :: String,
@takeutch-kemeco
takeutch-kemeco / google.xml
Last active January 4, 2016 01:49
/usr/lib/firefox-29.0a1/browser/searchplugins/*.xml の修正。デフォルトのインストールだと google, yahoo などが日本のサーバーを直接読みに行かないので、それを修正したxml。 アイコン画像データは削除してある。 また、デフォルトでは検索に直接関係しない情報をいくつか送信する設定になっていたので修正(検索クエリーと国コード以外の情報は削除)した。 ライセンスは元々MPL v2.0なので同様。
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>Google</ShortName>
<Description>Google Search</Description>
<InputEncoding>UTF-8</InputEncoding>
<Url type="text/html" method="GET" template="https://www.google.co.jp/search">
@takeutch-kemeco
takeutch-kemeco / mkghclibman.sh
Created January 19, 2014 20:28
GHC-7.6.3環境でCabalによって --global --prefix=/usr でインストールしたライブラリーのマニュアルhtmlへのブックマーク集を生成する
#!/bin/bash
BASE_DIR=/usr/share/doc/x86_64-linux-ghc-7.6.3
__INDEX=\/html\/index.html
ls ${BASE_DIR} > /tmp/a
ls ${BASE_DIR} | \
sed -e "s/^/\/usr\/share\/doc\/x86_64-linux-ghc-7\.6\.3\//g" | \
sed -e "s/^/<a href=/g" | \
sed -e "s/$/\/html\/index.html/g" | \
@takeutch-kemeco
takeutch-kemeco / scim-1.4.14-gtk-immodule-default-setting.patch
Last active January 2, 2016 01:59
SCIM の GTK+{2,3} 用の im_scim に、ロケールとロケールディレクトリーを最初から埋め込んだ状態でビルドするように修正するパッチ
diff --git a/configure.ac b/configure.ac
index 103cd20..7790d1a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -250,7 +250,11 @@ if test "$SCIM_HAS_GTK2" = "yes"; then
GTK2_BINARY_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
GTK2_LIBDIR=`$PKG_CONFIG --variable=libdir gtk+-2.0`
GTK2_IM_MODULEDIR=$GTK2_LIBDIR/gtk-2.0/$GTK2_BINARY_VERSION/immodules
+ GTK2_IM_MODULE_LOCALEDIR=/usr/share/locale
+ GTK2_IM_MODULE_LOCALE=ja
#!/bin/bash
for __killname_tmp in `psname $@ | sed -e "s/^ *//g" | cut -d " " -f 1`
do
kill $__killname_tmp
done
#!/bin/bash
ps -A | grep -i $@
@takeutch-kemeco
takeutch-kemeco / anthy-9100h-emacs23-input.patch
Created January 1, 2014 09:03
emacs23.4以降でAnthyによる入力を行えなくなる不具合を修正するパッチです
diff --git a/src-util/anthy.el b/src-util/anthy.el
index 0270d83..d66197c 100644
--- a/src-util/anthy.el
+++ b/src-util/anthy.el
@@ -892,7 +892,9 @@
((event-matches-key-specifier-p event 'backspace) 8)
(t
(char-to-int (event-to-character event)))))
- last-command-char))
+ (if (< emacs-major-version 23)
@takeutch-kemeco
takeutch-kemeco / gimp-2.8.10-log_value_mode.patch
Last active January 1, 2016 21:39
gimp-2.8.10-log_value_mode.patch
diff --git a/app/tools/gimpinkoptions-gui.c b/app/tools/gimpinkoptions-gui.c
index 6daba3b..b457b06 100644
--- a/app/tools/gimpinkoptions-gui.c
+++ b/app/tools/gimpinkoptions-gui.c
@@ -29,6 +29,7 @@
#include "widgets/gimpblobeditor.h"
#include "widgets/gimppropwidgets.h"
+#include "widgets/gimpspinscale.h"