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
See: https://github.com/rancher-sandbox/rancher-desktop/discussions/2304 | |
docker run -d --restart=always \ | |
-p 0.0.0.0:2375:2375 \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
alpine/socat \ | |
tcp-listen:2375,fork,reuseaddr unix-connect:/var/run/docker.sock |
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
$ jwt-decode token ... | |
{ | |
"alg": "RS256", | |
"typ": "JWT", | |
"kid": "sbS_BWBm0GzfIQRnYWolcWDRnjqwDTY_Aq6Fn_boqKM" | |
} | |
{ | |
"jti": "271151a3-db11-4f37-a724-4cf9957774f4", | |
"exp": 1530979706, | |
"nbf": 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
function emacs() | |
{ | |
# -c creates a new frame | |
# -a= fires a new emacs server if none is running | |
emacsclient -c -a= $* | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.gnu.emacs.daemon</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/opt/local/bin/emacs</string> |
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
/** | |
* External access proxy settings: | |
* | |
* If your site must access the Internet via a web proxy then you can enter | |
* the proxy settings here. Currently only basic authentication is supported | |
* by using the username and password variables. The proxy_user_agent variable | |
* can be set to NULL for proxies that require no User-Agent header or to a | |
* non-empty string for proxies that limit requests to a specific agent. The | |
* proxy_exceptions variable is an array of host names to be accessed directly, | |
* not via proxy. |
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
<VirtualHost *:80> | |
ServerName drupal.host.name | |
DocumentRoot /usr/local/www/drupal7 | |
<Directory "/usr/local/www/drupal7"> | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
Require all granted | |
</Directory> |
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
export APACHE_LOG_DIR=/var/log/apache |
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
$ mkdir /ports # If it does not exist | |
$ mkdir /ports/sysutils # If it does not exist | |
$ mkdir /ports/sysutils/fswatch | |
$ mv /path/to/Portfile \ # Create or edit the Portfile | |
/ports/sysutils/fswatch | |
$ chown -R macports:macports /ports | |
$ cd /ports && portindex |
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
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 | |
# $Id$ | |
PortSystem 1.0 | |
PortGroup github 1.0 | |
github.setup emcrisostomo fswatch 1.3.9 | |
github.tarball_from releases | |
categories sysutils |
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
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 | |
# $Id$ | |
PortSystem 1.0 | |
name fswatch | |
version 1.3.9 | |
categories sysutils | |
platforms darwin |
NewerOlder