Skip to content

Instantly share code, notes, and snippets.

View shaposhnikoff's full-sized avatar
🏠
Working from home

Shaposhnikoff shaposhnikoff

🏠
Working from home
  • Kiev,Ukraine
View GitHub Profile
@shaposhnikoff
shaposhnikoff / showmount-fstab.sh
Created October 12, 2025 18:58
make fsteb entries fron showmount
#!/bin/bash
SERVER="192.168.10.211"
TMPFILE=$(mktemp)
showmount -e $SERVER > "$TMPFILE"
echo "# ==============================="
echo "# NFS mounts for $SERVER"
echo "# ==============================="
@shaposhnikoff
shaposhnikoff / 5009 gps nmea adapter.md
Created August 10, 2025 09:45
5009 gps nmea adapter
/port set usb1 baud-rate=4800 parity=none data-bits=8 stop-bits=1 flow-control=none

/system/gps set enabled=yes port=usb1 channel=0
@shaposhnikoff
shaposhnikoff / news_sites.json
Last active July 6, 2025 06:36
ssl_certs.csv
{
"news_sites": [
"cnn.com",
"bbc.com",
"nytimes.com",
"theguardian.com",
"reuters.com",
"bloomberg.com",
"washingtonpost.com",
"foxnews.com",
#!/bin/bash
set +e
CURRENT_HOSTNAME=`cat /etc/hostname | tr -d " \ \
\\r"`
if [ -f /usr/lib/raspberrypi-sys-mods/imager_custom ]; then
/usr/lib/raspberrypi-sys-mods/imager_custom set_hostname raspberrypi
else
echo raspberrypi >/etc/hostname
@shaposhnikoff
shaposhnikoff / wireguard-mikrotik.md
Created April 19, 2025 08:31
wireguard-mikrotik.md
. Генерация ключей на Linux / WSL / Mac / Windows (через WSL)

Выполните на клиентской машине с установленным wireguard-tools:

# Сгенерировать приватный и публичный ключ сервера
wg genkey | tee server_private.key | wg pubkey > server_public.key

# Сгенерировать приватный и публичный ключ клиента
wg genkey | tee client_private.key | wg pubkey > client_public.key
stages:
- build_nginx
- dev_nginx
build_nginx:
stage: build_nginx
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
@shaposhnikoff
shaposhnikoff / gm.md
Created February 18, 2025 19:03
gm340

telegram-cloud-photo-size-2-5307631395562187550-y

import boto3
import datetime
client = boto3.client('acm',region_name='eu-central-1')
def list_certificates():
response = client.list_certificates()
return response['CertificateSummaryList']
def get_certificate_details(certificate_arn):
@shaposhnikoff
shaposhnikoff / A typical QSO.md
Last active January 28, 2025 10:56
A typical QSO

A typical QSO (contact) in amateur radio follows a standard structure, though it can vary depending on the mode (voice, CW, digital) and the preferences of the operators. Below is an example of a voice QSO on SSB (Single Side Band):

Calling CQ (Initiating a Contact):

Station 1: "CQ CQ CQ, this is [callsign], calling CQ and standing by."

Responding to the CQ:

Station 2: "[Station 1 callsign], this is [Station 2 callsign]. Over."

@shaposhnikoff
shaposhnikoff / tasmota multipress.md
Last active September 15, 2024 21:19
tasmota multipress
  1. SO73 1
rule1 
on button1#state=10 do publish button_test10 %value% endon
on button1#state=11 do publish button_test11 %value% endon
on button1#state=12 do publish button_test12 %value% endon
on button1#state=13 do publish button_test13 %value% endon
on button1#state=14 do publish cmnd/air_cond_tuya/POWER toggle endon
on button2#state do publish button_test2 %value% endon
on button3#state do publish button_test3 %value% endon