Skip to content

Instantly share code, notes, and snippets.

Muneyuki Noguchi mnogu

  • Tokyo, Japan
Block or report user

Report or block mnogu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mnogu
mnogu / fix_for_big_ip_edge_client.sh
Created Dec 29, 2018
Workaround for a bug in BIG-IP Edge Client
View fix_for_big_ip_edge_client.sh
#!/bin/bash
# Workaround for a bug in BIG-IP Edge Client 7130.2015.0807.1 on macOS Mojave
#
# You can find the following error log messages if you encounter this bug:
# "Disconnected state, Error code, Routing table cannot be patched"
# "EXCEPTION - Initial patching for v6 failed, 4294967295"
# "Adding include route was failed"
# NET_IF depends on your Mac environment.
# You can find candidates of NET_IF with the following command:
@mnogu
mnogu / gist:6ae02c53cfbe520e6c112259e4fd7818
Last active May 3, 2016
NullPointerException from StructuredSyntaxDocumentFilter.replaceMetaCharacters() with groovyConsole in groovy 2.4.6 and Google Japanese Input 2.17.2400.1
View gist:6ae02c53cfbe520e6c112259e4fd7818
$ bin/groovyConsole
2016-05-03 12:44:30.764 java[2439:206562] An uncaught exception was raised
2016-05-03 12:44:30.764 java[2439:206562] NSConcreteAttributedString initWithString:: nil value
2016-05-03 12:44:31.114 java[2439:206562] (
0 CoreFoundation 0x00007fff903554f2 __exceptionPreprocess + 178
1 libobjc.A.dylib 0x00007fff88c7073c objc_exception_throw + 48
2 CoreFoundation 0x00007fff903bc4bd +[NSException raise:format:] + 205
3 Foundation 0x00007fff8e4b5255 -[NSConcreteAttributedString initWithString:] + 132
4 liblwawt.dylib 0x000000010f9473fe -[AWTView attributedSubstringForProposedRange:actualRange:] + 135
5 AppKit 0x00007fff87fba58d -[NSTextInputContext(NSInputContext_WithCompletion) attributedSubstringForProposedRange:completionHandler:] + 105
@mnogu
mnogu / gist:c5fd15196980a7487154
Last active Aug 29, 2015
Red–black tree impl
View gist:c5fd15196980a7487154
class Node(object):
def __init__(self, key, val, color, n):
self.key = key
self.val = val
self.color = color
self.n = n
self.left = None
self.right = None
@mnogu
mnogu / install-uim-qt5-immodule.sh
Created Jul 7, 2013
quick and dirty shell script to install the uim Qt5 immodule on an AMD64 Ubuntu 13.04 box
View install-uim-qt5-immodule.sh
git clone https://github.com/uim/uim.git
cd uim
./make-wc.sh --with-qt5 --with-qt5-immodule --libexecdir=/usr/lib/x86_64-linux-gnu/uim/
make
sudo cp qt5/immodule/plugins/platforminputcontexts/libuimplatforminputcontextplugin.so /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/
sudo cp qt5/candwin/uim-candwin-qt5 /usr/lib/x86_64-linux-gnu/uim/
@mnogu
mnogu / llvm-gcc-sigscheme.patch
Created Apr 14, 2013
sigscheme's workaround for an llvm-gcc 4.2 optimization bug
View llvm-gcc-sigscheme.patch
--- sigscheme/src/list.c.org 2013-04-14 17:30:50.000000000 +0900
+++ sigscheme/src/list.c 2013-04-14 17:31:00.000000000 +0900
@@ -258,7 +258,7 @@
SCM_EXPORT scm_int_t
scm_finite_length(ScmObj lst)
{
- scm_int_t len;
+ volatile scm_int_t len;
for (len = 0; CONSP(lst); lst = CDR(lst))
@mnogu
mnogu / xinput.d-uim.patch
Created Dec 31, 2012
The short description of the configuration file for imsettings is wrong.
View xinput.d-uim.patch
--- /etc/X11/xinit/xinput.d/uim.conf.org 2012-12-31 14:19:56.343174599 +0900
+++ /etc/X11/xinit/xinput.d/uim.conf 2012-12-31 14:23:10.438215292 +0900
@@ -1,6 +1,6 @@
XIM=uim
XIM_PROGRAM=/usr/bin/uim-xim
-SHORT_DESC=UIM
+SHORT_DESC=uim
ICON=/usr/share/uim/pixmaps/uim-icon.png
gtkimm_exists () {
View gist:4411114
retrieve kde4_cmake_uninstall.cmake.in.diff from https://bugs.kde.org/show_bug.cgi?id=272953
$ cat kde4_cmake_uninstall.cmake.in.diff
--- kde4_cmake_uninstall.cmake.in.orig 2011-04-01 22:55:50.000000000 +0900
+++ kde4_cmake_uninstall.cmake.in 2011-05-10 23:15:14.437055087 +0900
@@ -5,18 +5,18 @@
FILE(READ "@CMAKE_BINARY_DIR@/install_manifest.txt" files)
STRING(REGEX REPLACE "\n" ";" files "${files}")
FOREACH(file ${files})
- MESSAGE(STATUS "Uninstalling \"${file}\"")
View git.sh
for i in `git branch -r|grep -v HEAD|grep -v master|sed 's:origin/::g'`
do
git checkout --track -b $i origin/$i
done
git checkout master
@mnogu
mnogu / gauche-0.9.3.3.patch
Created Jun 3, 2012
patch for gauche-0.9.3.3.ebuild
View gauche-0.9.3.3.patch
--- gauche-0.9.3.3.ebuild.org 2012-06-03 14:28:30.000000000 +0900
+++ gauche-0.9.3.3.ebuild 2012-06-03 14:28:39.000000000 +0900
@@ -47,6 +47,6 @@
}
src_install() {
- emake DESTDIR="${D}" install-pkg install-doc
+ emake -j1 DESTDIR="${D}" install-pkg install-doc
dodoc AUTHORS ChangeLog HACKING README
}
You can’t perform that action at this time.