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 / 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"
@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 / 96-package_autoinstall
Created January 11, 2020 12:43
OpenWrt package autoinstallation script after upgrade
#!/bin/sh
# Hotplug trigger script. Put this in /etc/hotplug.d/iface, and ensure this file is backed up over upgrade.
[ "$ACTION" = ifup ] || exit 0
[ "$INTERFACE" = wan ] || exit 0
logger -t package_autoinstall "Checking for package autoinstallation due to $ACTION of $INTERFACE ($DEVICE)"
cd /root
./package_autoinstall.sh
@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 / 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 / backup.sh
Created April 22, 2020 22:29
OpenWrt backup script with git configuration versioning
#!/bin/bash
DATE=`date -Idate`
USER="root"
HOSTS=("<host1>" ... "<hostn>")
commit_single_host_to_git ()
{
local host=${1}
local backup_filename="backup-${host}-${DATE}.tar.gz"
@Leo-PL
Leo-PL / reset_modem_hard.sh
Created April 22, 2020 22:34
Simple WAN watchdog for OpenWrt with LTE modem. Add to crontab.
#!/bin/sh
USB_GPIO=21
DELAY=1
gpio_value="/sys/class/gpio/gpio${USB_GPIO}/value"
echo 0 > ${gpio_value}
sleep ${DELAY}
echo 1 > ${gpio_value}
@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 / ssh_recovery.sh
Last active September 15, 2020 17:02
A self-contained script to setup a reverse SSH tunnel for use in emergency situations, when you need to help someone atechnical remotely and VPN went down. Fill out your parameters as needed.
#!/bin/bash
USER=""
SERVER_HOST=""
SERVER_PORT="22"
REMOTE_PORT="22"
LOCAL_PORT="1234"
IDENTITY=$(mktemp)
KNOWN_HOSTS=$(mktemp)
@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