- Don't criticize, condemn, or complain.
- Give honest and sincere appreciation.
- Arouse in the other person an eager want.
- Never show others that you are not interested in what they have to say.
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
git clone https://github.com/CrazyOptimist/jenkins.git your_dir_name | |
cd your_dir_name | |
cp .env.example .env | |
docker-compose up -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
const NodeMediaServer = require('node-media-server'); | |
const config = { | |
rtmp: { | |
port: 1935, | |
chunk_size: 10000, | |
gop_cache: true, | |
ping: 30, | |
ping_timeout: 60 | |
}, |
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
name: mongodb | |
services: | |
mongodb: | |
container_name: mongo | |
image: mongo:7 | |
volumes: | |
- mongodb_data:/data/db/ | |
ports: | |
- 27017:27017 |
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
name: mysql | |
services: | |
mysql: | |
image: mysql:8 | |
container_name: mysql | |
ports: | |
- "3306:3306" | |
command: | |
[ |
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
if [ -z "$(docker images | awk '/^<none>/ {print $3}')" ]; then | |
echo "You don't have any <none> tagged images." | |
else | |
docker rmi $(docker images | awk '/^<none>/ {print $3}') | |
fi |
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
name: postgres | |
services: | |
postgresql: | |
image: postgres:16 | |
container_name: postgresql | |
environment: | |
- POSTGRES_USER=superuser | |
- POSTGRES_PASSWORD=youmayneverguess |
Alright, here you go ...
#check if network is connected
ip link
ping google.com
#sync time
timedatectl set-ntp true
#check partition info
fdisk -l
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 | |
# Uninstall all conflicting packages: | |
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg --purge -y; done | |
# Add Docker's official GPG key: | |
sudo apt-get update | |
sudo apt-get install ca-certificates curl -y | |
sudo install -m 0755 -d /etc/apt/keyrings | |
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc |
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
const fs = require('fs'); | |
(() => { | |
return new Promise(async (resolve, reject) => { | |
try { | |
let file = fs.readFileSync(`${__dirname}/app.js`) | |
resolve(file) | |
} catch (err) { | |
reject(`Oops! \n ${err}`) | |
} |
OlderNewer