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
Interfaces: x14 | |
IF #0, ep: x2 | |
EP 0.0, TYPE: IRQ, DIR: IN | |
EP 0.1, TYPE: IRQ, DIR: OUT | |
IF #1, ep: x1 | |
EP 1.0, TYPE: IRQ, DIR: IN | |
IF #2, ep: x1 | |
EP 2.0, TYPE: BULK, DIR: IN | |
IF #3, ep: x1 | |
EP 3.0, TYPE: ISOC!, DIR: IN |
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
bcdedit.exe /set loadoptions DISABLE_INTEGRITY_CHECKS (?) | |
bcdedit.exe -set TESTSIGNING ON | |
(PROGRAM FILES x86)\Windows Kits\10\Tools\x64> devcon install (PATH TO .inf) (device name) | |
example: devcon install avscamera.inf root\AvsCamera |
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
openocd.cfg: | |
source [find interface/stlink-v2.cfg] | |
transport select hla_swd | |
set WORKAREASIZE 0x4000 | |
source [find target/nrf51.cfg] | |
Erase flash & flash SoftDevice: | |
halt | |
nrf51 mass_erase | |
program s110_nrf51822_6.0.0_softdevice.hex verify |
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://wiki.sipeed.com/en/lichee/nano.html | |
http://nano.lichee.pro/ | |
UART0: | |
E1 TX | |
E0 RX | |
root / licheepi |
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
-XX:+UnlockDiagnosticVMOptions -XX:+FlightRecorder |
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
Freq: 27.145MHz | |
Packet: 4x LONG (SYNC) + COMMANDx SHORT | |
LONG: 1500us (on) / 500us (off) | |
SHORT: 500us (on) / 500us (off) | |
TP2: 40 (shorts) | |
TP1: 10 |
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
{ | |
"Buttons": [ | |
[ | |
{ | |
"Color": -65536, | |
"IR": { | |
"Frequency": 38028, | |
"Pattern": [ | |
8956, | |
4477, |
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
List all packages with APK locations: | |
pm list packages -f | |
Create a backup of an app (including /data/data files): | |
adb backup -f backup.bak -noapk [package name] | |
Get foreground app: | |
dumpsys window windows | grep -E 'mCurrentFocus' | cut -d '/' -f1 | sed 's/.* //g' | |
Take screenshot: |
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://stackoverflow.com/questions/48369912/check-if-an-application-is-installed-from-google-play | |
protected static boolean installedFromMarket(WeakReference<? extends Context> weakContext) { | |
boolean result = false; | |
Context context = weakContext.get(); | |
if (context != null) { | |
try { | |
String installer = context.getPackageManager().getInstallerPackageName(context.getPackageName()); | |
// if installer string is not null it might be installed by market |
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
//Get ores | |
String[] allOres = OreDictionary.getOreNames(); | |
List<String> ores = new ArrayList<String>(); | |
for(String ore : allOres) { | |
if (ore.startsWith("ore")) { | |
ores.add(ore); | |
} | |
} | |
ores.size(); | |
NewerOlder