- Do not save kernel source to a
/mnt/cpath, 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 --shutdownwait 6 seconds before issuingwsl.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ! 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 |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
NewerOlder