Skip to content

Instantly share code, notes, and snippets.

View munepi's full-sized avatar

Munehiro Yamamoto munepi

View GitHub Profile
@munepi
munepi / auto-complete-yatex.el
Created April 3, 2013 06:36
an YaTeX http://www.yatex.org/ extension of Auto Complete Mode http://cx4a.org/software/auto-complete/ We remark that we recommend auto-complete-latex https://bitbucket.org/tequilasunset/auto-complete-latex :)
;;; auto-complete-yatex.el --- A YaTeX extention for Auto Complete Mode
;; Copyright (C) 2008-2011 Munehiro Yamamoto
;; Author: Munehiro Yamamoto <[email protected]>
;; Keywords: YaTeX LaTeX TeX
;; Version: 1.3.1.1
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@munepi
munepi / emacs-24.3-infoplist-tex-exts.patch
Created April 11, 2013 14:50
a patch to add some TeX related extensions for emacs-24.3/nextstep/templates/Info.plist.in
diff -u emacs-24.3/nextstep/templates/Info.plist.in.orig emacs-24.3/nextstep/templates/Info.plist.in
--- emacs-24.3/nextstep/templates/Info.plist.in.orig 2013-01-02 05:37:17.000000000 +0900
+++ emacs-24.3/nextstep/templates/Info.plist.in 2013-04-10 12:30:09.000000000 +0900
@@ -449,11 +449,30 @@
<dict>
<key>CFBundleTypeExtensions</key>
<array>
+ <string>bst</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
#!/bin/bash
# This program is licensed under the terms of the MIT License.
#
# Copyright 2014-2023 Munehiro Yamamoto <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
#!/bin/bash
# This program is licensed under the terms of the MIT License.
#
# Copyright (c) 2014-2021 Munehiro Yamamoto <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@munepi
munepi / jsclasses-20140207-setupanypapersize.patch
Last active August 29, 2015 14:01
jsclasses-20140207に対して、key=value方式による特定の用紙サイズおよび任意の用紙サイズを設定可能にするパッチ。
--- jsclasses.dtx.orig 2014-02-07 10:01:04.000000000 +0900
+++ jsclasses.dtx 2014-05-25 18:19:23.000000000 +0900
@@ -19,7 +19,7 @@
% Copyright 1995-1999 ASCII Corporation.
%
% \fi
-% \CheckSum{5668}
+% \CheckSum{5833}
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@munepi
munepi / pxacid-0.2.3-addnewseries.patch
Created June 2, 2014 10:07
PXacid-0.2.3に対して、新しいseriesの追加ならびに \<family>@scale 対応するパッチ
--- pxacid.pl.orig 2011-02-18 01:00:00.000000000 +0900
+++ pxacid.pl 2014-03-10 23:06:41.000000000 +0900
@@ -1322,7 +1323,17 @@ sub use_berry { $use_berry = $_[0]; }
# NFSS シリーズ名 → Berry 規則識別子
our $ser_kb = {
- l => 'l', m => 'r', b => 'b', bx => 'b', eb => 'x'
+ ul => 'a', # UltraLight
+ el => 'j', # ExtraLight
+ l => 'l', # Light
@munepi
munepi / _update-libo.bash
Last active February 10, 2024 05:02
Command line installer/updater of LibreOffice+Japanese language pack on Mac OS X
#!/bin/bash -x
set -euxo pipefail
##cd "$(dirname "$0")/"
LibO=${LibO:-24.2.0}
LibO_major=$(echo $LibO | awk -F. '{ OFS=FS; print $1 }')
LibO_minor=$(echo $LibO | awk -F. '{ OFS=FS; print $2 }')
LibO_rev=$(echo $LibO | awk -F. '{ OFS=FS; print $3 }')
__hdiutil="hdiutil attach -nobrowse"
@munepi
munepi / xlsx2caledxls-libo.sh
Created October 10, 2015 08:52
Converter XLSX to XLSX deleting formulas after values have been calculated
#!/bin/bash
## Filter Options - Apache OpenOffice Wiki
## https://wiki.openoffice.org/wiki/Documentation/DevGuide/Spreadsheets/Filter_Options
## Requirements:
## - LibreOffice v4.4 or higher version
## - Mac OS X
if [ $# -ne 1 ]; then
cat<<EOF
@munepi
munepi / customreview.map
Last active April 29, 2016 02:29
A temporary Re:VIEW pLaTeX class with jsbook.cls https://github.com/kmuto/review/pull/342 - でっち上げRe:VIEW用jsbook.cls乗りクラスファイル
%% from ptex-ipaex.map
rml H ipaexm.ttf %!PS IPAexMincho
rmlv V ipaexm.ttf %!PS IPAexMincho
gbm H ipaexg.ttf %!PS IPAexGothic
gbmv V ipaexg.ttf %!PS IPAexGothic
%% from uptex-ipaex.map
urml UniJIS-UTF16-H ipaexm.ttf %!PS IPAexMincho
urmlv UniJIS-UTF16-V ipaexm.ttf %!PS IPAexMincho
ugbm UniJIS-UTF16-H ipaexg.ttf %!PS IPAexGothic
@munepi
munepi / _manage-cloudstrage-airport.sh
Last active April 28, 2016 14:28
An agent script to start/stop some cloud strage services depending a status running iPhone tethering - iPhoneテザリングON/OFF時にクラウド型ストレージをON/OFFにするスクリプト
#!/bin/bash
# an agent script to start/stop some cloud strage services
# depending a status running iPhone tethering
## set your iPhone name
iPhoneName=${iPhoneName:-Your_iPhone_Name}
isTethering=0
export PATH=/usr/bin:/bin:/usr/sbin:/sbin