Skip to content

Instantly share code, notes, and snippets.

View yeyus's full-sized avatar
🍝

Jesús F. Trujillo yeyus

🍝
View GitHub Profile
@yeyus
yeyus / cperadiotools.py
Created September 7, 2022 04:44
Codeplug/Firmware upgrade tool for Retevis RT73 / Kydera CDR-300UV / Radioddity DB25-D)
""" Codeplug/Firmware upgrade tool for Retevis RT73 / Kydera CDR-300UV / Radioddity DB25-D)
This program is designed to allow you to use your radio (create/modify/save codeplug data)
as well as to upgrade the firmware (as supplied by the manufacturer)
The main purpose is to allow you to enjoy your radio without the need for manufacturer-produced,
buggy, windows-only software.
Encryption settings are (intentionally) not supported, as these are not permitted for amateur radio use.
ssh_authorized_keys:
- github:yeyus
hostname: k3s-node1
k3os:
data_sources:
- cdrom
sysctl:
kernel.printk: "4 4 1 7"
kernel.kptr_restrict: "1"
dns_nameservers:
@yeyus
yeyus / .config
Created March 9, 2020 03:18
crosstool-ng config for powerpc ppc4xx eabi toolchain
#
# Automatically generated file; DO NOT EDIT.
# crosstool-NG Configuration
#
CT_CONFIGURE_has_static_link=y
CT_CONFIGURE_has_cxx11=y
CT_CONFIGURE_has_lzip=y
CT_CONFIGURE_has_wget=y
CT_CONFIGURE_has_curl=y
CT_CONFIGURE_has_make_3_81_or_newer=y
@yeyus
yeyus / dmesg.txt
Created November 18, 2019 01:55
Hitachi SMR Drive
[168781.454969] sd 0:0:0:0: [sda] 19532873728 512-byte logical blocks: (10.0 TB/9.10 TiB)
[168781.454972] sd 0:0:0:0: [sda] 4096-byte physical blocks
[168781.454973] sd 0:0:0:0: [sda] 37256 zones of 524288 logical blocks
[168781.455421] sda: detected capacity change from 0 to 10000831348736
#1-------------------------------------------------------
[168853.000483] sd 0:0:0:0: [sda] REPORT ZONES lba 0 failed with 0/8
[168853.000538] sda: failed to revalidate zones
[168853.032055] sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
[168853.032058] sd 0:0:0:0: [sda] 4096-byte physical blocks
[168853.032137] sda: detected capacity change from 10000831348736 to 0
@yeyus
yeyus / resistors.txt
Created August 2, 2019 01:27
nVidia cards
TESLA K10 - 10DE:118F
GRID K2 - 10DE:11BF
----
RESISTORS
device name R1 R2 R3 R4
GT 640 25k none 10k none
GTX 650 25k none 35k none
@yeyus
yeyus / monztor-usb-monitor-setup.md
Last active May 19, 2018 22:05
iMo Monztor 10" USB monitor

First we need to tell the monitor to expose the screen interface and remove the fake cd-rom interface.

$ sudo usb_modeswitch -v 0x17e9 -p 0x0288 -u 1
Look for default devices ...
   product ID matched
Get the current device configuration ...
 Found devices in default mode (1)
Access device 006 on bus 001
Current configuration number is 2

21014-DB REV B

U1

TMS320

TMS320 VC5509AZHH 4A-89A03KW

@yeyus
yeyus / carnaval.service
Created February 24, 2017 21:46
systemd service to record a program everyday
[Unit]
Description=Grabador carnaval sur
[Service]
WorkingDirectory=/home/yeyus/carnaval2017
ExecStart=/usr/bin/streamripper "http://195.55.74.212/rtva/radioandalucia.mp3?GKID=32fafc36e05911e6a89200163ea2c744" -R 0 -l 46800 -D "carnavalsur_%d"
Type=oneshot
[Install]
WantedBy=multi-user.target
@yeyus
yeyus / test.go
Created February 23, 2017 05:33
Talker Alias 7bit vs 8bit encoding/decoding
package main
import "fmt"
func main() {
data := []byte{
0x01,
0xFF,
0xFF,
0xFF,