Installing Vim by building from the source needs bunch of dependancies.
yum -y groupinstall "Development Tools"
yum -y install ncurses-devel git-core
name: redis | |
services: | |
redis: | |
image: redis:7 | |
container_name: redis | |
command: "redis-server --loglevel warning" | |
volumes: | |
- redis_data:/data/ | |
ports: |
#!/bin/bash | |
# Check the latest version of NVM | |
curl https://github.com/nvm-sh/nvm/releases/latest | cut -d \/ -f 8 | cut -d \" -f 1 | |
# Run the install script | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash | |
# Paste in this scripts into your .bashrc or .bash_profile | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | |
# Install node and npm |
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}`) | |
} |
#!/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 |
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
name: postgres | |
services: | |
postgresql: | |
image: postgres:16 | |
container_name: postgresql | |
environment: | |
- POSTGRES_USER=superuser | |
- POSTGRES_PASSWORD=youmayneverguess |
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 |
name: mysql | |
services: | |
mysql: | |
image: mysql:8 | |
container_name: mysql | |
ports: | |
- "3306:3306" | |
command: | |
[ |