Skip to content

Instantly share code, notes, and snippets.

View zztopper's full-sized avatar

Alexander Spassky zztopper

  • Frankfurt, Germany
View GitHub Profile
@roib20
roib20 / apt-repo-playbook.yaml
Last active February 25, 2026 14:23
Example usages of the new `deb822_repository` Ansible module
---
- hosts: localhost
connection: local
gather_facts: true
tasks:
- name: Add APT repositories
when: ansible_os_family == 'Debian'
become: true
block:
@darkk
darkk / detox.py
Last active April 22, 2018 11:29
Токсичный реестр... лишние префиксы... бр-р-р!
#!/usr/bin/env python3
import ipaddress
import sys
nets = [ipaddress.ip_network(line.strip())
for line in open('subnets.txt')]
nets.sort()
def do_pass():
for i in range(len(nets)):
@stroebs
stroebs / make-chr.sh
Last active January 19, 2025 10:59
Install Mikrotik CHR on a Digital Ocean droplet (Ubuntu 20.04 tested working 29/03/2022)
#!/bin/bash
#
# Digital Ocean Ubuntu 18.04 x64 Droplet with "Regular Intel" CPU.
# Running:
# git clone https://gist.github.com/54fc09734a3911e91eeeb43434f117df.git
# cd 54fc09734a3911e91eeeb43434f117df/
# chmod +x make-chr.sh
# ./make-chr.sh
#
# Once the reboot is done, login with root/CHANGEME and change the password!