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 | |
## | |
## ~/bin/diff-highlight | |
## | |
set -u | |
if [ -n "${BASH+set}" ]; then | |
shopt -s lastpipe 2>/dev/null ## Bash 4.2+ for `exec ... |exec ...` | |
fi |
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
## OSSTech update-ca-trust-hook | |
## ====================================================================== | |
%{?vendor_package} | |
%global rel 152 | |
#%%global rel_extra experimental | |
%global dist_name update-ca-trust-hook | |
%global dist_ver_base 1.0 |
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
## 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
/* | |
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> |