This file contains 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 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 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 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 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 []:someone@example.com |
This file contains 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 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 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 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 |
This file contains 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
Multicast DNS | |
CentOS: | |
yum install -y epel-release | |
yum install -y nss-mdns avahi avahi-tools bind-utils | |
systemctl stop firewalld | |
systemctl enable avahi-daemon.service --now |
NewerOlder