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
| CDPATH=.:/etc:/var/log:/var:/opt:/ | |
| #https://zwischenzugs.com/2019/05/11/seven-surprising-bash-variables/ |
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 | |
| get_pip_ver() { curl -s https://pypi.org/pypi/$@/json | jq ".info.version" | tr -d '"'; } |
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
| # Original word list: <http://web.archive.org/web/20091003023412/http://tothink.com/mnemonic/wordlist.txt> | |
| # Sample usage: `curl <gist> | tail --lines +4 | shuf | head --lines 1` | |
| abraham | |
| absent | |
| absorb | |
| absurd | |
| academy | |
| accent | |
| acid | |
| acrobat |
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
| ansible all -m ping -i "1.2.3.4," -u MYUSER |
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
| # Formats the Bash Shell PS the way I like it | |
| curl https://gist.githubusercontent.com/IronTooch/69716134e38827335b893c3ec0f59b87/raw/dacd6e47c8f9e113217b06de4bc7c2f822e80e0d/user.bashrc >> ~/.bashrc | |
| sudo bash -c "curl https://gist.githubusercontent.com/IronTooch/1d2d9801e0fdbe594b756a9c338ac712/raw/d0ab284a96987ec35b1b03f8b590a0a2fe64e1af/root.bashrc >> /root/.bashrc" |
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
| [defaults] | |
| #This file goes at the root of the project | |
| nocows = True | |
| # Installs collections into [current dir]/ansible_collections/namespace/collection_name | |
| collections_paths = ./ | |
| # Installs roles into [current dir]/roles/namespace.rolename | |
| roles_path = ./roles |
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
| echo "username ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/username |
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
| 1) Change nginx.conf to include: | |
| user www-data; | |
| worker_processes auto; | |
| pid /run/nginx.pid; | |
| include /etc/nginx/modules-enabled/*.conf; | |
| events { | |
| worker_connections 768; | |
| # multi_accept on; |
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
| > Playbook Location | |
| /collections/ | |
| ansible_collections/ | |
| Example: Installing the commmunity.general collection locally | |
| > . | |
| .. | |
| my_playbook.yml |
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
| --- | |
| - hosts: all | |
| become: true | |
| vars: | |
| rpmbuild_location: "/root/rpmbuild/RPMS/x86_64" | |
| rpm_filenames: [] | |
| tasks: | |
| - name: Find all RPMs built | |
| ansible.builtin.find: |