Skip to content

Instantly share code, notes, and snippets.

View clickfreak's full-sized avatar

Konstantin Novakovskii clickfreak

View GitHub Profile


graph LR
    A[Человеческое Существо]
    A --> B
    A --> C
    A --> D
    A --> E
    subgraph Центры
        B[Физический Центр]

octoDNS error: Root NS record change, force required

Traceback (most recent call last):
  File "/home/keeper/.local/bin/octodns-sync", line 8, in <module>
  File "/home/keeper/.local/lib/python3.11/site-packages/octodns/cmds/", line 57, in main
  File "/home/keeper/.local/lib/python3.11/site-packages/octodns/", line 754, in sync
clickfreak / gist:aba658a75e0225810c6eb19f5220fb30
Created March 31, 2023 19:36
Run EngineDJ using proton (wine)
STEAM_COMPAT_DATA_PATH="/home/$USER/.local/share/Steam/steamapps/compatdata/<APP ID>" \
"/home/$USER/.steam/root/steamapps/common/Proton 7.0/proton" run \
"./drive_c/Program Files/Engine DJ/Engine DJ.exe"
clickfreak /
Created February 16, 2023 12:07
install pgcenter on centos7
sudo yum install pgcenter_0.9.2_linux_amd64.rpm
clickfreak /
Created April 15, 2022 21:14
How to find regions with instances in G-Core Labs cloud
#!/usr/bin/env python3
import os
import json
import requests
import logging
# you can create permanent token in account settings:
APIKEY = '<your_permanent_token>'
clickfreak /
Created April 6, 2019 21:08 — forked from shamil/
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
sudo dnf install mixxx jack-audio-connection-kit-dbus qjackctl rtirq realTimeConfigQuickScan kernel-tools
sudo usermod -a -G audio,jackuser,users `whoami`

$ cat /etc/security/limits.d/95-jack.conf:

@jackuser - rtprio 90
clickfreak /
Created September 30, 2018 22:27
Mixxx over jackd on Fedora
sudo dnf install jack-audio-connection-kit-dbus qjackctl rtirq realTimeConfigQuickScan
sudo usermod -a -G audio,jackuser,users `whoami`
$ cat /etc/security/limits.d/95-jack.conf:

@jackuser - rtprio 90
@jackuser - nice -19
@jackuser - memlock 209715200
clickfreak /
Created May 3, 2018 20:55 — forked from nerdalert/
Linux NetFilter, IP Tables and Conntrack Diagrams

Linux NetFilter, IP Tables and Conntrack Diagrams


IPTables has the following 4 built-in tables.

1) Filter Table

Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.

clickfreak / gist:6363333b5713274ccc6f7a1d6e57c6cb
Last active December 17, 2016 20:39
Get public ssh keys from github
curl -s<username>/keys | jq -r ".[].key" > ~/.ssh/authorized_keys_github