This file contains hidden or 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 | |
| run_and_get_rc() { | |
| local _rc_vname="$1"; shift | |
| local _rc | |
| local _shopts="$-" | |
| if [ "${_rc_vname#*[!a-z_]}" != "$_rc_vname" ]; then | |
| echo "run_and_get_rc: Invaid return variable name: $_rc_vname" 1>&2 | |
| exit 1 |
This file contains hidden or 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
| 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 127.0.0.1:80> | |
| <IfModule status_module> | |
| <Location /server-status> | |
| Require ip 127.0.0.1 ::1 | |
| SetHandler server-status |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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?= | |
| ## ``` |