Skip to content

Instantly share code, notes, and snippets.

View seigtm's full-sized avatar
👨‍💻
Coding new feature

Konstantin Baranov seigtm

👨‍💻
Coding new feature
View GitHub Profile
@fOmey
fOmey / README.md
Last active December 12, 2024 21:42
WSL : nl80211 not found fix & 8814au drivers

WSL : nl80211 not found fix & 8814au drivers

Quick facts

  • Do not save kernel source to a /mnt/c path, compile from the linux user home directory. Windows is case-insensitive, will cause random "file not found" compilation errors.
  • I'm using the Kali Windows store installation to do all these steps, this is especially important if you plan on using 8814au drivers (I don't believe they are compatible with Ubuntu)
  • Windows 10, latest windows updates & WSL.
  • The steps related to 8814au drivers can be modified as necessary.
  • For changes to take effect, WSL requires the "6 second rule" between restarts when modifying WSL related configuration files. Meaning if you issue a wsl --shutdown wait 6 seconds before issuing wsl.
@amir-saniyan
amir-saniyan / create-private-branch-of-a-public-repository.md
Last active July 28, 2026 20:20
Create private branch of a public repository

Create private branch of a public repository

This gist describes how to create private branch (downstream) of a public repository (upstream).

Initialize repository

$ git init private-repo
$ cd private-repo
@shirleyquirk
shirleyquirk / mac_change.c
Last active February 17, 2023 13:19 — forked from mad4j/mac_change.c
How to change MAC using ioctl
#include <string.h>
#include <sys/ioctl.h>
#include <assert.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if_arp.h>
#include <net/if.h>
#define EXIT_SUCCESS 0
@Systemad
Systemad / modify dynamic
Last active January 5, 2026 09:53
Make Dynamic Partition Read/Write
NOTE: I have only tested this on my OnePlus 7T Pro running OxygenOS11 Beta (Android 11).
Be sure to know what you're doing and proceed at your own risk.
Below are two guides on how to make dynamic partition R/W, this also works for stock.
Unlike some other guides out there, this is without the need of unpacking/repacking the super partitions.
Although, the second guide does require (a properly) TWRP.
Note: If you get qualcomm crash dump complaining about dm-verity, flash magisk.
For Guide 2, you need to use a personal ***test*** TWRP build of mine. Only tested on 7T Pro running OOS11.
@airglow923
airglow923 / clang-tidy-readability-identifier-naming-google.yml
Last active October 19, 2026 19:44
clang-tidy readability-identifier-naming for Google's naming convention
CheckOptions:
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.ClassMemberCase
value: lower_case
- key: readability-identifier-naming.ConstexprVariableCase
value: CamelCase
- key: readability-identifier-naming.ConstexprVariablePrefix
value: k
- key: readability-identifier-naming.EnumCase
@nemanjan00
nemanjan00 / README.md
Last active September 5, 2026 04:03
Disabling Android Setup wizard

Disabling Android Setup wizard

To disable setup wizard:

mv /system/priv-app/SetupWizard/SetupWizard.apk /system/priv-app/SetupWizard/SetupWizard.apk.bkp

To make device think setup is done:

@doronhorwitz
doronhorwitz / pn7150.py
Last active March 20, 2024 20:30
Use Python to read from NXP PN7120/PN7150
# https://gist.github.com/doronhorwitz/fc5c4234a9db9ed87c53213d79e63b6c
# https://www.nxp.com/docs/en/application-note/AN11697.pdf explains how to setup a demo of the PN7120/PN7150.
# With that demo comes an executable called 'nfcDemoApp'. This gist is a proof of concept for how to read from that
# executable in Python.
# The class (which is called PN7150, even though it also should support PN7120) reads the output from the PN7150 each
# time a tag is read. It finds the line starting with "Text :" and extracts out the text - which is the text stored
# by the NFC tag.
# The reading is done in a separate thread, which calls a callback with the text every time an NFC tag is read.
@1AdAstra1
1AdAstra1 / quicksort.f
Last active March 1, 2023 18:29 — forked from t-nissie/quicksort.f
quick sort in Fortran
! quicksort.f -*-f90-*-
! Author: t-nissie, some tweaks by 1AdAstra1
! License: GPLv3
! Gist: https://gist.github.com/t-nissie/479f0f16966925fa29ea
!!
recursive subroutine quicksort(a)
implicit none
real :: a(:)
real x, t
integer :: first = 1, last
@Spartan-196
Spartan-196 / FindGUID.md
Last active April 15, 2025 11:48
Find GUID of PC in windows

From Powershell

Get-WmiObject Win32_ComputerSystemProduct | Select UUID

From command prompt

wmic csproduct get uuid

This will out put the PC's UUID which is what SCCM reads as BIOS GUID.

@semyonf
semyonf / jkcounter_vhdl.vhd
Last active October 22, 2023 19:44
JK четырехразрядный счетчик на VHDL
library ieee;
use ieee.std_logic_1164.all;
entity jkcounter_vhdl is
port(c, r, jk : in std_logic;
q0,q1,q2,q3 : out std_logic);
end jkcounter_vhdl;
architecture behaviour of jkcounter_vhdl is
signal temp0, temp1, temp2, temp3:std_logic;