Skip to content

Instantly share code, notes, and snippets.

@Ben-Kaniobi
Ben-Kaniobi / Testprotokoll.tex
Last active August 29, 2015 14:06
LaTeX template
% By Ben-Kaniobi
% https://gist.github.com/Ben-Kaniobi
\documentclass{scrartcl}
\usepackage[ansinew]{inputenc} % Schriftcodierung für Windows
\usepackage[T1]{fontenc} % Schriftkodierung
\usepackage[ngerman]{babel} % Neue de. Rechtschr. (Worttrennung, äöüß etc.) als Parameter für babel
\usepackage{lmodern} % Darstellung
@Ben-Kaniobi
Ben-Kaniobi / print.tex
Created November 17, 2014 08:54
LaTeX template
% Very simple LaTeX template for printing images in correct size
\documentclass{scrartcl}
%\usepackage[a3paper]{geometry}
\usepackage{todonotes}
\begin{document}
\begin{figure}
@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
## Core latex/pdflatex auxiliary files:
*.aux
*.lof
*.log
*.lot
*.fls
*.out
*.toc
## Intermediate documents:
@Ben-Kaniobi
Ben-Kaniobi / FirefoxAntiAustralis.css
Last active August 19, 2016 17:33
userChrome.css
/*
By Ben-Kaniobi
https://gist.github.com/Ben-Kaniobi
Versions:
0.1.6 Updated for Firefox 48; Fixing recommendation pop-up position
0.1.5 Updated for Firefox 42 on Windows 10; Compatibility mode for other script not needed anymore
0.1.4 Compatibility with style "Firefox with Windows 8 colors" can now be selected from dropdown menu on userstyles.org
0.1.3 Minor cosmetic fix: Use right margin to overlap tab borders instead of left margin so the left border is still visible on the first tab
0.1.2 Updated to move the bookmark bar below the address bar
0.1.1 Updated to remove the menu button and small fix
/*
By Ben-Kaniobi
https://gist.github.com/Ben-Kaniobi
Versions:
0.1.5 Fixed bug of black rectangle that sometimes appeared near the url bar with long urls
0.1.4 Updated for Firefox 42 on Windows 10; Also handling background of tab bar
0.1.3 Updated for Firefox 40 on Windows 10
0.1.2 Added info on how to make it work on Windows 10
0.1.1 Update for Firefox 29 (Australis)
0.1.0 First release
@Ben-Kaniobi
Ben-Kaniobi / README.md
Last active July 25, 2017 20:19
Versus
@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 / 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 / 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: