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 apt-get install git cmake gettext | |
| git clone https://github.com/neovim/neovim.git | |
| cd neovim/ | |
| make CMAKE_BUILD_TYPE=RelWithDebInfo | |
| cd build/ | |
| cpack -G DEB | |
| sudo apt remove neovim | |
| sudo dpkg -i --force-overwrite nvim-linux64.deb |
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
| ip route get 1 | awk '{print $(NF-2);exit}' |
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
| FONTS=$(ls /usr/share/figlet/| cut -d '.' -f1) | |
| for F in $FONTS; do | |
| echo $F | |
| hostname -f | toilet --font $F -w 132 | |
| done |
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.2' | |
| # docker stack deploy -c test.stack.yml test | |
| services: | |
| server: | |
| image: 'nginx' | |
| ports: | |
| - "8080:80" |
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
| mkdir -p ~/.vim/pack/pete/start | |
| git clone https://github.com/vim-airline/vim-airline.git ~/.vim/pack/pete/start/airline |
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 | |
| # Country Name (2 letter code) [XX]:GB | |
| # State or Province Name (full name) []: | |
| # Locality Name (eg, city) [Default City]:London | |
| # Organization Name (eg, company) [Default Company Ltd]:Company | |
| # Organizational Unit Name (eg, section) []: | |
| # Common Name (eg, your name or your server's hostname) []:ca.local | |
| # Email Address []:[email protected] |
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
| awk -v cmd='openssl x509 -noout -subject' '/BEGIN/{close(cmd)};{print | cmd}' /etc/ssl/certs/ca-bundle.crt |
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
| find . -type d -exec chmod a+rx {} \; | |
| find . -type f -exec chmod a+r {} \; |
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: | |
| - "localhost" | |
| connection: "local" | |
| vars: | |
| users: | |
| - paul | |
| - tanya | |
| - ruby | |
| tasks: |
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
| Install | |
| yum install -y yum-utils | |
| yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
| yum install -y docker-ce docker-ce-cli containerd.io | |
| systemctl enable docker --now | |
| Image | |
| docker pull centos |
NewerOlder