Skip to content

Instantly share code, notes, and snippets.

View ergoz's full-sized avatar
😈
let's rock

Sergey Morozov ergoz

😈
let's rock
View GitHub Profile
@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

@ergoz
ergoz / youtube_formats.md
Created July 22, 2024 12:53 — forked from MartinEesmaa/youtube_formats.md
Youtube Format IDs

Note: This is all almost full YouTube ID informations. Original owner goes to AgentOak, modified version by Martin Eesmaa.

See the credits and also special thanks in below.

Last updated: July 2024

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

blocklist="/etc/powerdns/blocklist.lua"
adservers=newDS()
if io.open(blocklist, 'r') then
adservers:add(dofile(blocklist))
end
function preresolve(dq)
if(not adservers:check(dq.qname) or (dq.qtype ~= pdns.A and dq.qtype ~= pdns.AAAA)) then
return false
adservers=newDS()
adservers:add(dofile("blocklist.lua"))
-- optionally: adservers:add(dofile("trackers.lua"))
filterset=newCAS()
filterset:add(dofile("filtercustomers.lua"))
function preresolve(dq)
if(not adservers:check(dq.qname) or (dq.qtype ~= pdns.A and dq.qtype ~= pdns.AAAA)) then
return false
# sqlite3 /etc/powerdns/powerdns.sqlite3 < /usr/share/doc/pdns-backend-sqlite3/schema.sqlite3.sql