Instantly share code, notes, and snippets.

View mm_cfg.py
## Workaround for the following bug of Python 2 email module:
##
## ```console
## $ (
## echo 'from email.header import Header'
## echo 'print Header("X: =?ISO-2022-JP?Q?=1B$B%;%s=1B(B?=",maxlinelen=20)')
## ) |python2
## X: =?ISO-2022-JP?Q?=1B$B%;
## %s=1B(B?=
## ```
View .mlterm-main
#termtype = mlterm-256color
use_transbg = false
fontsize = 20
use_cp932_ucs_for_xft=false
#not_use_unicode_font= true
ENCODING = UTF-8
use_anti_alias = true
use_variable_column_width = false
col_size_of_width_a = 2
brightness = 100
View getxattr.c
/*
macOS getxattr(2) is broken on SMB shares:
* Cannot read xattr larger than 1048576 bytes.
* Fails by ERANGE (Result too large) if 'size' argument is smaller than
entire xattr size.
*/
#include <stdio.h>
#include <stdlib.h>
View finder-cp.bash
#!/bin/bash
##
## Copy a file or directory by macOS Finder application
## Copyright (c) 2018 SATOH Fumiyasu @ OSS Technology Corp., Japan
##
## License: GNU General Public License version 3
##
set -u
View zmq-pull-string.c
/*
ZeroMQ server to pull and output strings
Copyright (C) 2018 SATOH Fumiyasu @ OSS Technology Corp., Japan
License: GNU General Public License version 3
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
View dnsstubq.c
/*
Command-line DNS stub resolver
Copyright (C) 2018 SATOH Fumiyasu @ OSS Technology Corp., Japan
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
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
View inspect.md
DSAMECAllbackhandler...[Ljavax.security.auth.callback.Callback;@13e342ec
amAuthWindowsDesktopSSO:11/24/2017 04:13:22:199 PM JST: Thread[ajp-bio-8009-exec-1,5,main]: TransactionId[5440a0f3-05f7-487c-8284-d52a52e82820-1565]
WindowsDesktopSSO params: 
principal: HTTP/desktop.sso.example.co.jp@DOMAIN.EXAMPLE.CO.JP
keytab file: /opt/osstech/var/lib/tomcat/openam/private/HTTP_desktop.sso.example.co.jp@DOMAIN.EXAMPLE.CO.JP.keytab
realm : DOMAIN.EXAMPLE.CO.JP
kdc server: dc1.domain.example.co.jp
domain principal: false
Lookup user in realm:false
View ldd.aix.ksh
#!/bin/ksh
##
## AIX ldd(1) clone with shared objects (*.so) in archives (*.a) support
## Copyright (C) 2017 SATOH Fumiyasu @ OSS Technology Corp, Japan
##
##
##
## License: GNU General Public License version 3
##
View openssh-build-static.sh
#!/bin/sh
set -u
set -e
umask 0077
prefix="/opt/openssh"
top="$(pwd)"
root="$top/root"
build="$top/build"
View README.md