Skip to content

Instantly share code, notes, and snippets.

@ergoz
ergoz / index.html
Created September 5, 2024 16:13 — forked from AmirrezaNasiri/index.html
Telegram Share Button in HTML
<!--
This is a simple URL share button for Telegram application.
It's compatible with iOS/Android app, Telegram Desktop and uses its web mode for fallback.
-->
<a href="https://t.me/share/url?url={url_to_share}&text={caption_text}&to={phone_number}">
Share Me
</a>
<!--
@ergoz
ergoz / matrix-shell.sh
Last active September 29, 2024 14:08 — forked from jezstephens/gist:c34b3b803928a22631df
Matrix Effect in you terminal
#!/bin/env sh
lines=$(tput lines)
cols=$(tput cols)
awkscript='
{
letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"
lines=$1
@ergoz
ergoz / virt-customize-ubuntu22
Created August 22, 2024 00:39 — forked from si458/virt-customize-ubuntu24
virt-customize ubuntu22
#!/bin/sh
# install tools
apt update -y && apt install nano wget curl libguestfs-tools -y
# remove old image
rm -rfv ubuntu-22.04-server-cloudimg-amd64-disk-kvm.img
# remove old template container - WILL DESTROY COMPLETELY
qm destroy 9000 --destroy-unreferenced-disks 1 --purge 1
# download new image
wget http://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64-disk-kvm.img
# add agent to image
@ergoz
ergoz / create-cloud-template.sh
Created August 19, 2024 08:21 — forked from meramsey/create-cloud-template.sh
This script will download a cloud image of many Linux distros and create a Proxmox 6 KVM template from it.
#!/bin/bash
set -o errexit
clear
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n"
### HOW TO USE
### Pre-req:
### - run on a Proxmox 6 server
### - a dhcp server should be active on vmbr1
@ergoz
ergoz / 01-netcfg.yaml
Created August 18, 2024 18:58 — forked from nkabir/01-netcfg.yaml
libguestfs examples
# may be templated in the future
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: true
optional: true
@ergoz
ergoz / create-cloud-init.sh
Last active February 12, 2025 20:10 — forked from casperghst42/create-cloud-init.sh
Create a cloud-init Debian 12 image on proxmox
#!/bin/bash
# Author: Casper Pedersen (github.com/casperghst42)
# License: GPL2
wget https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2
virt-customize -a debian-12-generic-amd64.qcow2 \
--install qemu-guest-agent \
--install resolvconf \
--install systemd-resolved \
--update \
@ergoz
ergoz / Ubuntu_Debian_Cloud_images_in_Proxmox.md
Created August 18, 2024 18:18 — forked from chriswayg/Ubuntu_Debian_Cloud_images_in_Proxmox.md
Ubuntu and Debian Cloud images in Proxmox
@ergoz
ergoz / proxmox-install.sh
Created August 18, 2024 10:45 — forked from willwm/proxmox-install.sh
Fresh Proxmox Server install script
#!/bin/bash
# TODO: Remove pve-enterprise, add pve-no-subscription repo to sources.list(*)
# Update packages, install essentials
apt update
apt install -y build-essential git zsh htop
# Update Proxmox Appliance Manager (https://forum.proxmox.com/threads/no-turnkey-fresh-install-5-1-35.38199/)
pveam update
@ergoz
ergoz / cloud.mail.ru-webdav-ubuntu-20.04.md
Created August 7, 2024 22:39 — forked from starlinq/cloud.mail.ru-webdav-ubuntu-20.04.md
Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 20.04
title date
Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 20.04
2020-10-16

Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 20.04

Инструкцию для Убунту 18.04 см. здесь.

@ergoz
ergoz / Top_Public_Time_Servers.md
Created July 28, 2024 21:16 — forked from mutin-sa/Top_Public_Time_Servers.md
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com