This file contains 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 <winsock2.h> | |
// Must be included after winsock2.h | |
#include <iphlpapi.h> | |
#include <cassert> | |
#include <format> | |
#include <iostream> | |
#pragma comment(lib, "Iphlpapi.lib") |
This file contains 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
BTRM | |
V1.0 | |
R1.0 | |
L1CD | |
MMUI | |
MMU9 | |
DATA | |
ZBBS | |
MAIN | |
OTP? |
This file contains 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
/dts-v1/; | |
/ { | |
compatible = "raspberrypi,3-model-b", "brcm,bcm2837"; | |
model = "Raspberry Pi 3 Model B"; | |
interrupt-parent = <0x1>; | |
#address-cells = <0x1>; | |
#size-cells = <0x1>; | |
chosen { |
This file contains 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
#!/bin/bash | |
# Disable Sudden Motion Sensor (SMS) | |
sudo pmset -a sms 0 | |
# Diable Hibernation | |
sudo pmset -a hibernatemode 0 | |
# Disable local TimeMachine Snapshots | |
sudo tmutil disablelocal |
This file contains 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
#!/bin/bash | |
# Size at the end is * 2048 where 2048 = 1 MB, so 1572864 = 768 MB | |
#DISK=`/usr/bin/hdiutil attach -nobrowse -nomount ram://1572864` | |
DISK=`/usr/bin/hdiutil attach -nobrowse -nomount ram://2097152` | |
/usr/sbin/diskutil erasevolume HFS+ "RamDiskCache" $DISK | |
CACHEDIR="/Volumes/RamDiskCache/$USER" |
This file contains 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 <stdio.h> | |
#include <stdint.h> | |
#include <gmp.h> | |
int main() | |
{ | |
//const char* startValue = "45411764953495434350345765765756765750345456565445435436536546545324213324233"; | |
const char* startValue = "999349349859230394049534503485093452390984540385348304894503459235843908542390482950283945048902849230583496038920385934087"; | |
// bisection counter |
This file contains 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
// by Niklas Schulze / nischu7 <[email protected]> | |
// | |
// requires cmpxchg16b CPU instruction | |
// required GDC patch: http://bitbucket.org/nischu7/gdc/changeset/d8a2a73fb3d8 | |
bool dwcas16(T, V1, V2)(T* here, const V1 ifThis, const V2 writeThis) | |
{ | |
asm | |
{ | |
/* | |
mov RAX, ifThis; // copy ifThis[0] to RAX |