Skip to content

Instantly share code, notes, and snippets.

View fagci's full-sized avatar
👁️
What's happening?

Mikhail fagci

👁️
What's happening?
View GitHub Profile
@fagci
fagci / transliterate_names.py
Last active March 15, 2024 06:18
Transliterate files and directories names
#!/usr/bin/env python3
import argparse
from os import listdir, rename
from os.path import isfile, join
from re import sub
parser = argparse.ArgumentParser(prog='Transliterator', description='Transliterates file/dir names')
parser.add_argument('-f', '--force', action='store_true')
@fagci
fagci / si5351_esp32_web_ui.ino
Created October 22, 2023 09:39
si5351 esp32 web ui
#include "si5351.h"
#include "Wire.h"
#include <DNSServer.h>
#include <ESPUI.h>
#include <WiFi.h>
#define INITIAL_F 27000000
#define CORRECTION 120000
#define AP_NAME "F-GEN"
@fagci
fagci / vox_parrot.sh
Last active July 27, 2023 05:28
VOX based parrot to use with Baofeng UV-K5 or another radio with VOX support. Needs to be sox installed. Optionally, you can add DTMF code actions with multimon-ng dependency. Note: DTMF characters need to be spaced between in "case".
#!/usr/bin/env bash
trap exit INT
while true; do
rec buffer.ogg silence 1 0.1 5% 1 1.0 5%
DPATH="$(date +%Y/%m/%d/)"
TIME="$(date +%H%M%S)"
@fagci
fagci / my.cfg
Last active June 18, 2023 15:20
source [find target/swj-dp.tcl]
source [find mem_helper.tcl]
set _CHIPNAME stm32f0x
set _ENDIAN little
set _WORKAREASIZE 0x1000
set _FLASH_SIZE 0
set _CPUTAPID 0x0bb11477
set _TARGETNAME $_CHIPNAME.cpu
set _FLASHNAME $_CHIPNAME.flash
@fagci
fagci / cookie_notification.js
Last active May 24, 2023 08:05
cookie notification
@fagci
fagci / QS_UVK5_LPD_PMR.cxf
Last active April 6, 2024 11:27
Quansheng UV-K5 LPD PMR frequencies
<?xml version="1.0" encoding="utf-8"?>
<DevicePara DocVersion="5">
<KeyPress>
<Key1ShortPress>3</Key1ShortPress>
<Key1LongPress>0</Key1LongPress>
<Key2ShortPress>1</Key2ShortPress>
<Key2LongPress>6</Key2LongPress>
</KeyPress>
<Comm>
<MaxTalkTime>2</MaxTalkTime>
@fagci
fagci / termux-sdr-dsd-installer.sh
Last active March 11, 2023 13:13
Script to install rtl_sdr tools plus dsd decoder on termux.
#!/usr/bin/env -S bash -x
REPOS_DIR=~/sdr_tools_repos
pkg update
pkg install curl
curl https://its-pointless.github.io/setup-pointless-repo.sh |bash
pkg install build-essential cmake make git libusb pulseaudio portaudio fftw gcc-10 libgfortran5 openblas
@fagci
fagci / random_mac.sh
Created December 3, 2022 06:48
Random MAC address urandom
tr -dc 'A-F0-9' < /dev/urandom \
| head -c 12 \
| sed 's/..\B/&:/g'
@fagci
fagci / wan_ip_generator.py
Created November 23, 2022 17:11
Faster WAN ip generator
from random import getrandbits
from socket import inet_ntoa
from struct import pack
def wan_ip():
while True:
int_ip = 0x01000000 + getrandbits(32) % 0xfeffffff
if (0xe0000000 <= int_ip < 0xffffffff
or 0xA000000 <= int_ip < 0xb000000
@fagci
fagci / dabblet.css
Last active October 11, 2022 19:02
Untitled
.active {
font-weight: bold;
color: red;
}