Skip to content

Instantly share code, notes, and snippets.

View Leo-PL's full-sized avatar

Lech Perczak Leo-PL

View GitHub Profile
@MartB
MartB / 0001-Octeon-usg3p-support.patch
Last active May 17, 2021 20:54
Unofficial USG3P Support for OPENWRT / LEDE [No PR due to lack of time]
From 8d16d252932f7d2e874c1666b5f53da26f68fc65 Mon Sep 17 00:00:00 2001
From: MartB <mart.b@outlook.de>
Date: Mon, 8 Jan 2018 22:39:34 +0100
Subject: [PATCH 1/1] Octeon: usg3p support
---
target/linux/octeon/Makefile | 2 +-
.../linux/octeon/base-files/etc/board.d/01_network | 4 ++
.../linux/octeon/base-files/lib/preinit/01_sysinfo | 4 ++
.../octeon/base-files/lib/preinit/79_move_config | 2 +-
@Kovrinic
Kovrinic / .gitconfig
Last active March 30, 2026 08:27
git global url insteadOf setup
# one or the other, NOT both
[url "https://github"]
insteadOf = git://github
# or
[url "git@github.com:"]
insteadOf = git://github
@mdonkers
mdonkers / server.py
Last active September 19, 2026 18:00
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
@koenrh
koenrh / gcp-gpu-vm-hashcat.md
Last active June 23, 2025 01:06
Running Hashcat on Google Cloud's new GPU-based VMs

Running Hashcat on Google Cloud's GPU-based VMs

In February 2017, Google announced the availability GPU-based VMs. I spun up a few of these instances, and ran some benchmarks. Along the way, I wrote down the steps taken to provision these VM instances, and install relevant drivers.

Update April 2019: Updated instructions to use instances with the Tesla T4 GPUs.

@franga2000
franga2000 / Xiaomi YI.md
Last active January 4, 2026 04:00
Xiaomi Yi

Xiaomi Yi camera

General info

  • OS: Buildroot
  • CPU: ARMv6-compatible processor rev 5 (v6l)
  • BogoMIPS: 524.28
  • Memory: 37MB

The root filesystem is rootfs, which is stored in memory and therefore wiped on reboot. The Micro SD card is mounted at /tmp/fuse_d/. Something is also mounted at /tmp/fuse_a and /tmp/fuse_z.

@bjoern-r
bjoern-r / Huawei_E3372_openwrt.md
Last active June 11, 2026 11:13
How to use a Huawei E3372 on OpenWRT

HOWTO use a Huawei E3372 on OpenWRT

This modem is also sold as a MegaFon M150-2 USB dongle

Needed Software

Install the needed packages via opkg tool

opkg update
@jmmitchell
jmmitchell / ord-and-char-conversion-in-bash.sh
Last active October 18, 2024 13:36
converting from decimal value to the ascii character and from the ascii character to the ordinal number in bash
#!/bin/bash
# chr() - converts decimal value to its ASCII character representation
# ord() - converts ASCII character to its decimal value
chr() {
printf \\$(printf '%03o' $1)
}
ord() {
printf '%d' "'$1"
@subfuzion
subfuzion / curl.md
Last active September 26, 2026 13:05
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@rvl
rvl / git-pushing-multiple.rst
Created February 9, 2016 11:41
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@plugnburn
plugnburn / README.md
Last active June 24, 2026 14:29
NokiaTool - simple interface Bash script for MediaTek-based Nokia simple phones

NokiaTool: control MediaTek-based Nokia phones from your PC

Overview

NokiaTool is a simple Bash script (nokiatool.sh) that allows you to use an undocumented serial connection in USB-enabled MediaTek-based Nokia feature phones manufactured by Microsoft (even the most basic ones, like the new 105) in order to control them from your PC.

This project is an ongoing work and uses only some bits and pieces of information about the phone internals available to the public, so under any circumstances don't consider it stable or a replacement for official tools if any are present.