Skip to content

Instantly share code, notes, and snippets.

View Leo-PL's full-sized avatar

Lech Perczak Leo-PL

View GitHub Profile
@Leo-PL
Leo-PL / intel_x520_patcher.py
Last active August 27, 2023 19:57 — forked from ixs/intel_x520_patcher.py
Intel x520 EEPROM Patcher allows to unlock the x520 network card to work with non-intel branded SFP modules.
#!/usr/bin/env python3
#
# Simple Intel x520 EEPROM patcher
# Modifies the EEPROM to unlock the card for non-intel branded SFP modules.
#
# Copyright 2020,2021,2022 Andreas Thienemann <andreas@bawue.net>
#
# Licensed under the GPLv3
#
# Based on research described at https://forums.servethehome.com/index.php?threads/patching-intel-x520-eeprom-to-unlock-all-sfp-transceivers.24634/
@Leo-PL
Leo-PL / rtl_tcp@.service
Last active March 20, 2023 05:55 — forked from alex27riva/rtl_tcp.service
Systemd service template for running rtl_tcp on startup
[Unit]
Description=Software Defined Radio TCP Server
Requires=network.target
After=network.target
[Service]
ExecStart=/bin/sh -c "/usr/bin/rtl_tcp -a 0.0.0.0 -d %i -p $$((1234+%i))"
Restart=on-failure
KillMode=control-group
@Leo-PL
Leo-PL / lte_mbim_from_scratch.md
Created May 22, 2021 13:23 — forked from Juul/lte_mbim_from_scratch.md
How to use 4G LTE modems like the MC7455 on both Debian/Ubuntu and OpenWRT using MBIM

The purpose of this document is to get you familiar with the concepts and command line tools involved with connecting to the internet using modern 4G LTE modems on both Debian/Ubuntu and OpenWRT.

This writeup is based on my experiences with the Sierra Wireless AirPrime MC7455 modem and a Calyx (Sprint) SIM card, but it should apply to most modern 4G LTE modems.

High level overview

These are the steps required:

  • Physically connect antennas
@Leo-PL
Leo-PL / modem.py
Created February 27, 2021 00:35 — forked from aursu/modem.py
ModemManager interface via Python 3 (Dbus, Modems, SMS)
#!/usr/bin/python3
# script created for reading SMS messages from 3G modem connected to PC
# 1) it looks for modem
# 2) reads all SMS messages from modem
# 3) prints all found SMS messages to stdout only if total messages count
# greater than SMS_STORE_COUNT (default is 3)
# 4) save all but SMS_STORE_COUNT messages to txt files and
# delete them from modem
@Leo-PL
Leo-PL / descrypt-admin-allsalts.txt
Created February 1, 2021 00:07 — forked from roycewilliams/descrypt-admin-allsalts.txt
descrypt-admin-allsalts.txt
# All possible descrypt hashes of the password 'admin', using all possible salts.
# From https://github.com/roycewilliams/kens-salty-rainbow
# If you find a device that always uses one of these, let me know.
..xpoEyRReGzk
./nlIXYriZaB2
.08iPeaCLti3E
.1fH80ykoJAyI
.23PstrXfk7Nw
.37vRhjo4ZP66
.4nTonCOGSWyU
@Leo-PL
Leo-PL / ipxe_build.md
Created June 21, 2020 22:22 — forked from rikka0w0/ipxe_build.md
Build IPXE

1. Install tools and config IPXE

# Install compiler and dependencies
sudo apt-get install -y git gcc make liblzma-dev

# Grab the source code
git clone https://github.com/ipxe/ipxe.git
cd ipxe/src

# Enable NFS support
@Leo-PL
Leo-PL / hp_saap_license.txt
Created March 28, 2020 12:56 — forked from evianzhow/hp_saap_license.txt
HP Smart Array Advanced Pack Evaluation License Key
34T62-N84MB-7DQGY-G7XGT-YTQ63
@Leo-PL
Leo-PL / keepass-file-format.md
Last active March 28, 2020 12:28 — forked from lgg/readme.md
Keepass file format explained

Keepass file format explained

I’m currently working (I’m just at the beginning, and I’m quite slow) on a personal project that will use Keepass files (kdb and kdbx).
I tried to find some documentation about .kdb and .kdbx format, but I didn’t find anything, even in the Keepass official website. I you want to know how these file formats are structured, you must read Keepass’s source code. So I wrote this article that explains how Keepass file format are structured, maybe it will help someone.

@Leo-PL
Leo-PL / install-ut-goty-debian-jessie-64bits.md
Created May 23, 2019 11:35 — forked from soifou/install-ut-goty-debian-64bits.md
Install Unreal Tournament GOTY on Debian Jessie 64bits

Unreal Tournament on Linux

Dependencies (only for installer)

├── amd64
│   ├── libglib1.2ldbl_1.2.10-19_amd64.deb
│   └── libgtk1.2_1.2.10-18.1_amd64.deb
├── i386
@Leo-PL
Leo-PL / readme.txt
Created April 30, 2018 10:01 — forked from artizirk/readme.txt
Huawei E3372h-153
Working Huawei E3372h-153 SETPORT mappings
replacing A1,A2 with FF turns off need for usb_modeswitch
AT^SETPORT="A1,A2;12,1,16,A1,A2"
^GETPORTMODE: TYPE: WCDMA: huawei,PCUI:0,MDM:1,NDIS:2,CDROM:3,SD:4,
AT^SETPORT="A1,A2;1,12,16,A1,A2"