Skip to content

Instantly share code, notes, and snippets.

View wereii's full-sized avatar
🐱 /dev/random

Tomas wereii

🐱 /dev/random
  • Czech Republic
  • 10:41 (UTC +01:00)
View GitHub Profile
@wereii
wereii / howto.md
Last active October 8, 2024 14:48
How to disable rotation icon popup/suggestion on Android 11+

How to disable rotation icon popup on Android 11+

  • Enable developer settings

  • Enable Developer settings > USB Debugging

  • Enable Developer settings > Disable permission monitoring

  • Download Connect Bot app from Google Play

  • In Connect Bot, create a new connection and in Protocol select local, give the profile any nickname, save

  • Open the local connection and write settings put secure show_rotation_suggestions 0, hit enter

  • The popup is now gone.

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <raylib.h>
int main(){
FILE * pFile;
long lSize;
@wereii
wereii / OreQuarry.lua
Last active February 21, 2021 11:46 — forked from nick1n/OreQuarry.lua
Minecraft Mining Turtle Ore Quarry with Resume by AustinKK, Aeolun, nick1n (untested) http://www.computercraft.info/forums2/index.php?/topic/7675-advanced-mining-turtle-ore-quarry/
-- ********************************************************************************** --
-- ** ** --
-- ** Minecraft Mining Turtle Ore Quarry v0.6c by AustinKK, Aeolun, nick1n ** --
-- ** --------------------------------------------------- ** --
-- ** ** --
-- ** For instructions on how to use: ** --
-- ** ** --
-- ** http://www.youtube.com/watch?v=PIugLVzUz3g ** --
-- ** ** --
-- ** Change Log: ** --
@wereii
wereii / simple_gamepad_hid.h
Last active November 14, 2024 01:57
Very Simple Gamepad HID Descriptor
//simple_gamepad_hid.h
#define REPORT_BYTE_LENGTH 4 // (8 + 16 + 8) / 8
char ReportDescriptor[44] = {
0x05, 0x01, // USAGE_PAGE (Generic Desktop)
0x09, 0x05, // USAGE (Game Pad)
0xa1, 0x01, // COLLECTION (Application)
0xa1, 0x00, // COLLECTION (Physical)
// ReportID - 8 bits
@wereii
wereii / .bash_aliases
Created February 10, 2020 13:30
python3 only aliases
alias python=python3
alias pip="python3 -m pip"
0x05, 0x01, // Usage Page (Generic Desktop) 0
0x09, 0x04, // Usage (Joystick) 2
0xa1, 0x01, // Collection (Application) 4
0x85, 0x14, // Report ID (20) 6
0x15, 0x00, // Logical Minimum (0) 8
0x25, 0x01, // Logical Maximum (1) 10
0x75, 0x01, // Report Size (1) 12
0x95, 0x20, // Report Count (32) 14
0x05, 0x09, // Usage Page (Button) 16
0x19, 0x01, // Usage Minimum (1) 18