Skip to content

Instantly share code, notes, and snippets.

View clickfreak's full-sized avatar

Konstantin Novakovskii clickfreak

View GitHub Profile

Diagram:

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>
    sys.exit(main())
             ^^^^^^
  File "/home/keeper/.local/lib/python3.11/site-packages/octodns/cmds/sync.py", line 57, in main
    manager.sync(
  File "/home/keeper/.local/lib/python3.11/site-packages/octodns/manager.py", line 754, in sync
@clickfreak
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>" \
STEAM_COMPAT_CLIENT_INSTALL_PATH="$HOME/.steam" \
WINEPREFIX=$PWD STEAM_COMPAT_MOUNTS=/run/media/$USER/MirexBlack \
"/home/$USER/.steam/root/steamapps/common/Proton 7.0/proton" run \
"./drive_c/Program Files/Engine DJ/Engine DJ.exe"
@clickfreak
clickfreak / pgcenter_install.sh
Created February 16, 2023 12:07
install pgcenter on centos7
#!/bin/sh
wget https://github.com/lesovsky/pgcenter/releases/download/v0.9.2/pgcenter_0.9.2_linux_amd64.rpm
sudo yum install pgcenter_0.9.2_linux_amd64.rpm
@clickfreak
clickfreak / gcore_cloud_find_instances.py
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: https://accounts.gcorelabs.com/profile/api-tokens
APIKEY = '<your_permanent_token>'
@clickfreak
clickfreak / mount_qcow2.md
Created April 6, 2019 21:08 — forked from shamil/mount_qcow2.md
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`

https://wiki.linuxaudio.org/wiki/system_configuration

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

@jackuser - rtprio 90
@clickfreak
clickfreak / fedora_jackd_mixxx.md
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
clickfreak / Netfilter-IPTables-Diagrams.md
Created May 3, 2018 20:55 — forked from nerdalert/Netfilter-IPTables-Diagrams.md
Linux NetFilter, IP Tables and Conntrack Diagrams

Linux NetFilter, IP Tables and Conntrack Diagrams

IPTABLES TABLES and CHAINS

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
clickfreak / gist:6363333b5713274ccc6f7a1d6e57c6cb
Last active December 17, 2016 20:39
Get public ssh keys from github
#!/bin/sh
curl -s https://api.github.com/users/<username>/keys | jq -r ".[].key" > ~/.ssh/authorized_keys_github