Skip to content

Instantly share code, notes, and snippets.

*That is to say, those who deserve to shed blood. Or possibly not. You never quite know with some kids.
* This exchange contains almost all you need to know about human civilization. At least, those bits of it that are now under the sea, fenced off or still smoking.
* It’s a sad and terrible thing that high-born folk really have thought that the servants would be totally fooled if spirits were put into decanters that were cunningly labeled backward. And also throughout history the more politically conscious butler has taken it on trust, and with rather more justification, that his employers will not notice if the whiskey is topped up with eniru.
* Peachy was not someone you generally asked questions of, except the sort that go like: “If-if-if-if I give you all my money could you possibly not break the other leg, thank you so much?”
* Chickenwire had got his name from his own individual contribution to the science of this very specialized “concrete overshoe” form of waste disposal. An unfortunate drawbac
@Ben-Kaniobi
Ben-Kaniobi / android-backup-apk-and-datas.md
Created March 3, 2021 13:27 — forked from AnatomicJC/android-backup-apk-and-datas.md
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

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.

Fetch application APK

To get the list of your installed applications:

@Ben-Kaniobi
Ben-Kaniobi / example.sh
Created February 28, 2020 07:43
Automate Android App: Start flow from command line
# Flow URI as shown in the "Flow beginning" block
flow_URI=content://com.llamalab.automate.provider/flows/21/statements/1
am start -a com.llamalab.automate.intent.action.START_FLOW -d $flow_URI
@Ben-Kaniobi
Ben-Kaniobi / Author.txt
Last active June 21, 2019 08:50
Simple Wide Launchy Skin
Simple Wide Launchy Skin (v1.1)
by Ben-Kaniobi
http://Ben-Kaniobi.github.io/
Inspired by Glass Onion
(http://kurayamimx.deviantart.com/art/Onion-Glass-for-Launchy-571486077)
@Ben-Kaniobi
Ben-Kaniobi / openExplorer.reg
Created March 19, 2019 09:29
Registry entries for adding context menu command "explorer here"
Windows Registry Editor Version 5.00
; github.com/Ben-Kaniobi
[HKEY_CLASSES_ROOT\Directory\Background\shell\openExplorer]
@="E&xplorer here"
"Extended"=""
"Icon"="%windir%\\explorer.exe,0"
"Position"="Top"
@Ben-Kaniobi
Ben-Kaniobi / README.md
Last active July 25, 2017 20:19
Versus
@Ben-Kaniobi
Ben-Kaniobi / Markdown-in-Npp.md
Last active November 17, 2023 04:50
Step-by-step tutorial/guide how to use markdown in Notepad++

Markdown in Notepad++

Syntax Highlighting

Follow the instructions of this project.

Live Preview

@Ben-Kaniobi
Ben-Kaniobi / A1_Add-classic-desktop-right-click-settings.reg
Last active August 5, 2023 20:03
Windows 10: Classic "Personalize" and "Display settings" in desktop right-click menu
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\DesktopBackground]
[HKEY_CLASSES_ROOT\DesktopBackground\ClassicSettings]
[HKEY_CLASSES_ROOT\DesktopBackground\ClassicSettings\Shell]
[HKEY_CLASSES_ROOT\DesktopBackground\ClassicSettings\Shell\DisplayClassic]
@=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,\
@Ben-Kaniobi
Ben-Kaniobi / nearest_neighbor.m
Created January 31, 2015 17:19
TSP nearest neighbor
function [ path, cost ] = nearest_neighbor( start, map )
%NEAREST_NEIGHBOR Solves the traveling salesman problem using the nearest
%neighbor method
%% Preparation
if diff(size(map)) ~= 0
error('The width and height of the Map has to be the same');
end
% Replace diagonal elements with infinite value so we don't stay in the