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
| ldap_search() { | |
| local command=( | |
| ldapsearch -b "${LDAP_BASE_SEARCH}" | |
| -H "${LDAP_SERVER_URI}" | |
| -D "${LDAP_DOMAIN}\\${LDAP_USER:-$USER}" | |
| ${LDAP_PASSWORD+"-w"} | |
| "${LDAP_PASSWORD:-"-W"}" | |
| "$@" | |
| ) |
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
| package main | |
| import ( | |
| "machine" | |
| "time" | |
| ) | |
| const pattern = "... ––– ..." | |
| const interval = time.Second / 3 |
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
| # Explicit export | |
| eval $( | |
| aws sts assume-role --role-arn ... --role-session-name ... \ | |
| | jq --raw-output '"AWS_ACCESS_KEY_ID=\(.Credentials.AccessKeyId) AWS_SECRET_ACCESS_KEY=\(.Credentials.SecretAccessKey) AWS_SESSION_TOKEN=\(.Credentials.SessionToken)"' | |
| ) | |
| export AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN | |
| # Implicit export | |
| eval export $( | |
| aws sts assume-role --role-arn ... --role-session-name ... \ |
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
| <ul><placeholder /><li>Header</li><li>Basic <a>[[double square bracket]]</a> link</li><li>Basic <a>[external](https://google.com)</a> link with a <a>#tag</a></li><li>Here's some <i>emphasis</i> and <i>emphasis</i> and <b>bold <i>emphasis</i></b></li></ul> |
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
| __package_detect_distribution() { | |
| if [ -f /etc/alpine-release ]; then | |
| return 1 | |
| elif [ -f /etc/debian_version ]; then | |
| return 2 | |
| else | |
| return -1 | |
| fi | |
| } |
OlderNewer