This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## | |
## Pass LSV (Line-separated values) to a command | |
## | |
LF=' | |
' | |
samplecmd() { | |
for x; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
#h=x86_64-w64-mingw32 | |
h=i686-w64-mingw32 | |
./configure \ | |
--host=$h \ | |
--prefix=/usr/local/gpg \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpkg-reconfigure libpam-runtime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uris = ldap://a.ldap.example.jp/ ldap://b.ldap.example.jp/ | |
ldap_version = 3 | |
base = ou=%d,dc=example,dc=jp | |
scope = subtree | |
auth_bind = yes | |
pass_filter = (uid=%n) | |
pass_attrs = mailQuota=userdb_quota_rule=*:bytes=%$ | |
user_filter = (uid=%n) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Apache virtual servers definition to block ambiguous server names | |
## Put the snippet below to your Apache config file as the first <VirtualHost> | |
Alias /.well-known/acme-challenge/ /var/www/acme/.well-known/acme-challenge/ | |
<Directory /var/www/acme/.well-known/acme-challenge> | |
Require all granted | |
</Directory> | |
<VirtualHost *:80> | |
RedirectMatch 503 "^/(?!\.well-known/|server-status$|server-info$)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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?= | |
## ``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
#!/bin/bash | |
## | |
## 端末ウィンドウタイトルと右プロンプトに這いよる混沌 (zsh) | |
## 端末ウィンドウタイトルに這いよる混沌 (bash) | |
## Written by SATOH Fumiyasu | |
## https://github.com/fumiyas | |
## https://twitter.com/#!/satoh_fumiyasu | |
## | |
## Inspired by: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |