- Add your project logo.
- Write a short introduction to the project.
- If you are using badges, add them here.
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
| _complete_ssh_hosts () | |
| { | |
| COMPREPLY=() | |
| cur="${COMP_WORDS[COMP_CWORD]}" | |
| comp_ssh_hosts=`cat ~/.ssh/known_hosts | \ | |
| cut -f 1 -d ' ' | \ | |
| sed -e s/,.*//g | \ | |
| grep -v ^# | \ | |
| uniq | \ | |
| grep -v "\[" ; |
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
| version: '3.1' | |
| services : | |
| db: | |
| image: postgres:10-alpine | |
| ports: | |
| - "5432:5432" | |
| environment: | |
| POSTGRES_USER: user1 | |
| POSTGRES_PASSWORD: changeme | |
| POSTGRES_DB: tododb |
AT_PROMPT=1
function PreCommand() {
# This will run before any command is executed.
if [ -z "$AT_PROMPT" ]; 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
| #!/usr/bin/env bash | |
| # Executing the following will remove the cluster status/configuration from a | |
| # single-node cluster. Useful if the cluster was initialized unintentionally | |
| # and Corosync's restrictions are preventing further changes. Root required. | |
| systemctl stop pve-cluster corosync | |
| pmxcfs -l | |
| rm -r /etc/corosync/* | |
| rm /etc/pve/corosync.conf |
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 | |
| # generate-script.sh | |
| # A script that generates another script using a heredoc. | |
| # More examples and use cases at https://tldp.org/LDP/abs/html/here-docs.html. | |
| # Based on an idea by Albert Reiner. | |
| OUTFILE=generated.sh # Name of the file to generate. | |
| # ----------------------------------------------------------- | |
| # 'Here document containing the body of the generated script. | |
| ( |