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
| # Allow managing leases | |
| path "sys/leases/*" | |
| { | |
| capabilities = ["create", "read", "update", "delete", "list", "sudo"] | |
| } | |
| # Manage auth methods broadly across Vault | |
| path "auth/*" | |
| { | |
| capabilities = ["create", "read", "update", "delete", "list", "sudo"] |
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/bash | |
| # Remove existing "nameserver" lines from /etc/resolv.conf | |
| sed -i '/nameserver/d' /etc/resolv.conf | |
| # Run the PowerShell command to generate "nameserver" lines and append to /etc/resolv.conf | |
| # we use full path here to support boot command with root user | |
| /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -Command '(Get-DnsClientServerAddress -AddressFamily IPv4).ServerAddresses | ForEach-Object { "nameserver $_" }' | tr -d '\r'| tee -a /etc/resolv.conf > /dev/null |
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/bash | |
| # tested with traefik v2.4.8 | |
| ACME_FILE="acme.json" | |
| # get jq from https://stedolan.github.io/jq/ | |
| SELECTED_DOMAINS=$(jq -r '.letsencrypt.Certificates[].domain.main' "$ACME_FILE" | fzf -m --height '40%' --reverse --border) | |
| if [[ -z "$SELECTED_DOMAINS" ]]; then |
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
| # Download & install marports http://www.macports.org/install.php | |
| $ sudo port selfupdate | |
| $ sudo port install nginx | |
| $ sudo launchctl load -w /Library/LaunchDaemons/org.macports.nginx.plist | |
| $ sudo port install php5 +fastcgi fcgi | |
| $ sudo mkdir /opt/local/etc/LaunchDaemons/org.macports.php-fastcgi | |
| $ cd /opt/local/etc/LaunchDaemons/org.macports.php-fastcgi | |
| $ mate org.macports.php-fastcgi.plist # or vim org.macports.php-fastcgi.plist |
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
| sudo port install php55 +fastcgi fcgi apache-ant php55-cgi php55-mbstring php55-curl php55-mcrypt php55-imagick php55-xdebug php55-iconv php55-mongo php55-oauth php55-openssl php55-esmtp php55-pop3 php55-tidy php55-uploadprogress php55-pcntl php55-sockets php55-soap php55-ssh2 php55-big_int php55-gd php55-svm php55-html_parse php55-http php55-mysql php55-pdflib php55-pear php55-peb php55-posix php55-pspell php55-rar php55-redis php55-snmp php55-stomp php55-svn php55-wddx php55-xmlrpc php55-yaml php55-zip php55-dbase php55-excel php55-gdchart php55-imap php55-xsl php55-redis beanstalkd | |
| sudo port install postgresql93 postgresql93-server postgresql93-doc postgresql_autodoc php55-postgresql phppgadmin postgresql-jdbc mysql56-server phpmyadmin maven3 maven-ant-tasks postgis2 +postgresql93 git qgis re2c json-c | |
| sudo port install nginx +flv +geoip +gzip_static +mail +mp4 +ssl +status +substitution +upload +upload_progress +xslt +zip | |
| You may need to update your php.ini for any changes that have been made in this ve |
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
| # Download & install marports http://www.macports.org/install.php | |
| $ sudo port selfupdate | |
| $ sudo port install nginx | |
| $ sudo launchctl load -w /Library/LaunchDaemons/org.macports.nginx.plist | |
| $ sudo port install php5 +fastcgi fcgi | |
| $ sudo mkdir /opt/local/etc/LaunchDaemons/org.macports.php-fastcgi | |
| $ cd /opt/local/etc/LaunchDaemons/org.macports.php-fastcgi | |
| $ mate org.macports.php-fastcgi.plist # or vim org.macports.php-fastcgi.plist |