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
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power] | |
| "EnableInputSuppression"=dword:00000001 | |
| "IgnoreLidStateForInputSuppression"=dword:00000001 | |
| "DisableDisplayBurstOnPowerSourceChange"=dword:00000001 | |
| ;Apply only if your PC supports modern standby, S0-Idle Mode (and not S3-Suspend To Ram). | |
| ;If the slightest movement of your mouse causes your new laptop to wake and you couldn't solve it by unchecking "allow this device to wake the computer", proceed. |
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/mkckr0/97ec5b0d99feede4c19ee6f905d5e722 | |
| val repoMirrorMap = mapOf( | |
| "https://repo.maven.apache.org/maven2" to "https://maven.aliyun.com/repository/central", | |
| "https://dl.google.com/dl/android/maven2" to "https://maven.aliyun.com/repository/google", | |
| "https://plugins.gradle.org/m2" to "https://maven.aliyun.com/repository/gradle-plugin", | |
| "https://jcenter.bintray.com" to "https://maven.aliyun.com/repository/jcenter", | |
| ) | |
| val repoReplaceMap = mapOf( | |
| "https://maven.google.com" to "https://dl.google.com/dl/android/maven2" |
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
| /* | |
| * Intel ACPI Component Architecture | |
| * AML/ASL+ Disassembler version 20220331 (64-bit version) | |
| * Copyright (c) 2000 - 2022 Intel Corporation | |
| * | |
| * Disassembling to symbolic ASL+ operators | |
| * | |
| * Disassembly of dsdt.dat, Wed May 4 12:07:23 2022 | |
| * | |
| * Original Table Header: |
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
| /* | |
| * Intel ACPI Component Architecture | |
| * AML/ASL+ Disassembler version 20211217 (64-bit version) | |
| * Copyright (c) 2000 - 2021 Intel Corporation | |
| * | |
| * Disassembling to symbolic ASL+ operators | |
| * | |
| * Disassembly of dsdt.dat, Fri Apr 8 00:35:05 2022 | |
| * | |
| * Original Table Header: |
Note: This gist may be outdated, thanks to all contributors in comments.
adb is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
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
| #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | |
| #parse("File Header.java") | |
| public enum ${NAME} { | |
| ; | |
| /** | |
| * enum value | |
| */ | |
| private final int value; | |
| /** |
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
| This is a step-by-step guide on how make sleep mode work with a Lenovo Yoga X1 3rd generation running Fedora 28 (UEFI based system). | |
| Kernel version: 4.17.4-200.fc28.x86_64 | |
| Credits: most of this guide comes from `https://delta-xi.net/#056`. The patch I used is a little different though, taken from http://kernel.dk/acpi.patch | |
| (found through https://bbs.archlinux.org/viewtopic.php?pid=1794150#p1794150), and some of the steps slightly differ as well as mine is a UEFI based system. | |
| 1. Reboot, enter BIOS/UEFI. Go to Config - Thunderbolt (TM) 3 - set Thunderbolt BIOS Assist Mode to Enabled. Set also Security - Secure Boot to Disabled. | |
| 2. Install iasl (Intel's compiler/decompiler for ACPI machine language) and cpio: `sudo yum install acpica-tools cpio` |
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
| /* Copyright (c) 2018 Arvid Gerstmann. */ | |
| /* This code is licensed under MIT license. */ | |
| #ifndef AG_RANDOM_H | |
| #define AG_RANDOM_H | |
| class splitmix | |
| { | |
| public: | |
| using result_type = uint32_t; | |
| static constexpr result_type (min)() { return 0; } |
- Get VS2015 url from https://github.com/felixrieseberg/windows-build-tools/blob/master/src/constants.ts
- Save file into C:\vs_build_tools\windows-build-tools_vs2015\
- C:\vs_build_tools\windows-build-tools_vs2015\visualcppbuildtools_full.exe
- Open cmd prompt and run installer in offline-installer-builder mode (as per https://msdn.microsoft.com/en-us/library/mt706497.aspx)
cd /d C:\vs_build_tools\windows-build-tools_vs2015\
NewerOlder