Skip to content

Instantly share code, notes, and snippets.

View BorysVrublevskyi's full-sized avatar

BorysVrublevskyi

View GitHub Profile
@BorysVrublevskyi
BorysVrublevskyi / ClearLinux-KDE.md
Last active May 14, 2024 18:26
ClearLinux Workstation with KDE

ClearLinux. Install OS and Apps

This is a guide how to setup fast and stable workstation based on ClearLinux with KDE enwironment

Before you begin

Read System requirements, Check Processor Compatibility, get familiar with swupd package manager.

Install Clear OS Server, add KDE Plasma and flatpak

Download ClearLinux, make bootable USB drive with Rufus, boot from it and follow the instructions.

@BorysVrublevskyi
BorysVrublevskyi / cups-on-debian.md
Last active March 1, 2021 13:14
Print Server on Ddebian. Linux Deploy app on Android

CUPS on Debian

sudo apt install cups -y
sudo cp -n /etc/cups/cupsd.conf /etc/cups/cupsd.conf.bak
sudo nano /etc/cups/cupsd.conf
# Listen for connections from the local machine
@BorysVrublevskyi
BorysVrublevskyi / cups-on-fedora.md
Last active October 21, 2021 14:57
Linux print server for USB Printer

CUPS on Fedora

dnf install cups -y
cp -n /etc/cups/cupsd.conf{,.bak}
# In case restriction by user. See more with: man cupsctl
# sudo usermod -aG lp $USER
systemctl enable --now cups
cupsctl --remote-any --share-printers --user-cancel-any # Ok for home printer
systemctl restart cups
@BorysVrublevskyi
BorysVrublevskyi / Create-SSTP.ps1
Created October 17, 2021 22:17
Create SSTP VPN connection on Windows with office options and PassThru option
$Vpn_Name = Read-Host -Prompt "Input desired VPN Name. Press enter to leave default [MY SSTP]"
if ([string]::IsNullOrWhiteSpace($Vpn_Name))
{
$Vpn_Name = "MY SSTP"
}
Function Add-Country1Routing {
# Add-VPNConnectionRoute -ConnectionName $Vpn_Name -DestinationPrefix "192.168.1.0/20" -PassThru
# Add-VpnConnectionRoute -ConnectionName $Vpn_Name -DestinationPrefix "192.168.2.22/32" -PassThru
# Add-VpnConnectionRoute -ConnectionName $Vpn_Name -DestinationPrefix "192.168.3.0/24" -PassThru
@BorysVrublevskyi
BorysVrublevskyi / Kubernetes-Hybrid-Cluster-on-Hyper-V.md
Last active April 8, 2024 12:44
Get your own home lab k8s cluster!

Kubernetes hybrid cluster (Linux+Windows) on Hyper-V with local subnet and internet access

Prepare Host

Install CLI utils on your host machine

Kubectl

Helm

@BorysVrublevskyi
BorysVrublevskyi / Compile-CUPS-for-OpenWrt.md
Last active January 19, 2024 14:40
How to compile CUPS print server for the latest OpenWRT (tested on v21)

Compile CUPS print server for the latest OpenWrt (v21)

Sources

https://github.com/TheMMcOfficial/cups-for-openwrt
Deps https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem
Single package https://openwrt.org/docs/guide-developer/toolchain/single.package
http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/
https://openwrt.org/docs/guide-developer/toolchain/using_the_sdk
@BorysVrublevskyi
BorysVrublevskyi / k8s-backup-SonarQube.yml
Last active November 30, 2021 06:04
Backup SonarQube Posgres DB to NFS share
apiVersion: batch/v1
# apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: sonar-postgres-backup
spec:
# schedule: "0 2 * * *"
schedule: "@daily"
jobTemplate:
spec:
@BorysVrublevskyi
BorysVrublevskyi / ansible-cheatsheet.md
Last active February 7, 2024 14:26
Ansible-cheatsheet.md

Vault

ansible-vault create --vault-id zabbix@~/ans-ps-file ~/ans-vault-zabbix.yml
ansible-vault view --vault-id zabbix@~/ans-ps-file ~/ans-vault-zabbix.yml
ansible-vault view --vault-pass-file ~/ans-ps-file ~/ans-vault-zabbix.yml
# rekey it!

Local dynamic inventory (nmap)