SSH into AWS ec2/ Digitalocean droplet/ or else other PAAS, linux machine
- Install Docker
$sudo apt install docker.io
$sudo usermod -aG docker $USER
I already installed docker
#!/bin/bash | |
# Creates a Ubuntu Cloud-Init Ready VM Template in Proxmox | |
# | |
# Update the image name and URL for Ubuntu 22.04 LTS | |
export IMAGENAME="jammy-server-cloudimg-amd64.img" | |
export IMAGEURL="https://cloud-images.ubuntu.com/jammy/current/" | |
export STORAGE="local-zfs-cache" | |
export VMNAME="ubuntu-2204-cloudinit-template" | |
export VMID=902204 |
# All commands will be executed on a Proxmox host | |
sudo apt update -y && sudo apt install libguestfs-tools -y | |
wget https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img | |
# Install qemu-guest-agent on the image. Additional packages can be specified by separating with a comma. | |
sudo virt-customize -a jammy-server-cloudimg-amd64.img --install qemu-guest-agent | |
# Read and set root user password from file. | |
sudo virt-customize -a jammy-server-cloudimg-amd64.img --root-password file:password_root.txt | |
# Create an additional user. | |
sudo virt-customize -a jammy-server-cloudimg-amd64.img --run-command "useradd -m -s /bin/bash myuser" | |
# Set password for that user. |
#! /bin/sh | |
# Produce a squash-commit patch from a branch of changes | |
MASTER=$1 | |
PATCHBRANCH=$2 | |
SQUASHBRANCH="$PATCHBRANCH-squash" | |
MESSAGE=$3 | |
git checkout -b $SQUASHBRANCH $MASTER && | |
git merge --squash $PATCHBRANCH && | |
git commit -a -m "$MESSAGE" && |
#include <stdio.h> | |
#include <time.h> | |
#include <string.h> | |
char * timestamp(); | |
#define print_log(f_, ...) printf("%s ", timestamp()), printf((f_), ##__VA_ARGS__), printf("\n") |
#!/bin/bash | |
# SOCAT Port Forwarder Management Script | |
# Created By Dimas Restu Hidayanto ([email protected]) | |
IS_NUMBER='^[0-9]+$' | |
if [ $UID != 0 ]; then | |
echo "Administrator Previlege Needed. Please Run This Program As An Administrator/Root User!" | |
exit 1 | |
fi |
#Insert this at the end of /etc.defaults/ddns_provider.conf | |
[Namecheap] | |
modulepath=/usr/syno/bin/ddns/namecheap.php | |
queryurl=https://dynamicdns.park-your-domain.com/update |
#!/bin/sh | |
# cloudflareddns6.sh - dynamic dns IPV6 updater module for Synology | |
# | |
# Author: | |
# Cedric Mercier | |
# | |
# Version: | |
# 0.1 | |
# |
#--------- Docker Install ------------- | |
sudo apt-get update | |
sudo apt-get install curl apt-transport-https ca-certificates software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" |
SSH into AWS ec2/ Digitalocean droplet/ or else other PAAS, linux machine
$sudo apt install docker.io
$sudo usermod -aG docker $USER
I already installed docker
import os | |
import re | |
import subprocess | |
import requests | |
GITLAB_ENDPOINT = os.environ["GITLAB_ENDPOINT"] | |
GITLAB_TOKEN = os.environ["GITLAB_TOKEN"] |