Skip to content

Instantly share code, notes, and snippets.

@msmuenchen
msmuenchen / 00_MAIN.md
Last active September 18, 2023 19:51
Patching around the Samsung Wearable ecosystem for fun and (no) profit

tl;dr: Samsung is a bunch of crap company that doesn't inform their customers about serious limitations on their Wearables lineup. Great hardware, dog poo software.

So, what's this about: Samsung omits a bunch of crucial information for consumers anywhere on the Galaxy Watch product pages - at least on those for the Galaxy Watch 4, Galaxy Watch 5 or Galaxy Watch 6.

They omit on the product pages, the pages that should inform a consumer about requirements and limitations, that:

  1. unless you're rooted, the companion phone actually must be a phone, tablets and even phablets like the Galaxy Tab Active 3 are not supported. (If you're rooted, you can patch that away. Just follow along for the guide)
  2. only certain wearables
@msmuenchen
msmuenchen / README.md
Last active April 10, 2024 11:05
Flying a drone in Germany

This article intends to provide a quick refresher and reference guide for aspiring drone pilots in German territory, particularly those from outside the EU.

Disclaimer: The author is not a law professional and assumes no liability, but strives to keep this guide up-to-date and factually correct. Please check the laws yourself before conducting a flight. No commission, referrals or similar awards have been provided to the author. The guide only applies to actual EU member states and Germany specifically, unless noted otherwise. The author has no knowledge about the edge cases Switzerland, Norway, Iceland, Liechtenstein and the UK - they may or may not have adopted the EU regulations. Please file a comment if you have corrections, questions, new edge cases or links to state-specific information.

Basic EU-wide rules

German drone law follows the basic EU harmonized rules:

Drone classes

  • Drones are classified by weight and capabilities by the manufacturer:
  • C0 drones weigh below 250g (e.g. the DJ
@msmuenchen
msmuenchen / in.asm
Last active August 28, 2021 17:17
earthsiege2_es.exe_FUN_00401074
**************************************************************
* FUNCTION *
**************************************************************
char * __cdecl FUN_00401074(char * input, char * param_2)
char * EAX:4 <RETURN> XREF[1]: 00401091(RW)
char * Stack[0x4]:4 input
char * Stack[0x8]:4 param_2 XREF[1]: 0040108e(R)
FUN_00401074
00401074 55 PUSH EBP
00401075 8b ec MOV EBP,ESP
@msmuenchen
msmuenchen / svnadmin-upgrade-all.php
Created November 18, 2015 11:18
Mass upgrade of svn repositories
<?php
//This script updates all repositories in a huge root directory to current svnformat
//Generate said file with find . -maxdepth 1 -type d > list
$repos=file("list");
foreach($repos as $repo) {
$repo=trim($repo);
exec("svnadmin upgrade $repo",$out,$rc);
if($rc!=0)
echo "$repo failed\n";
else
<?php
$config=array(
"tag"=>"15811375356",
"imei"=>"666", //server does not seem to check this
"sim"=>"666",
"operator"=>"666",
"login_url"=>"http://xxx/fota/download/login.php",
"check_url"=>"http://xxx/fota/download/checkversion.php",
"down_url"=>"http://xxx/fota/download/download.php",
"curversion"=>'xxx', //get this using fiddler or any http sniffer
<?php
date_default_timezone_set("Europe/Berlin");
require("libmifare.php");
$ctx=scard_establish_context();
echo "Established context:\n";
var_dump($ctx);
$readers=scard_list_readers($ctx);
if(sizeof($readers)==0)
@msmuenchen
msmuenchen / gist:9318327
Last active September 18, 2022 21:53
KeePass v2.x (KDBX v3.x) file format
Convention: Byte array notation as it would appear in a hexeditor.
= Layout=
KDBX files, the keepass database files, are layout as follows:
1) Bytes 0-3: Primary identifier, common across all kdbx versions:
private static $sigByte1=[0x03,0xD9,0xA2,0x9A];
2) Bytes 4-7: Secondary identifier. Byte 4 can be used to identify the file version (0x67 is latest, 0x66 is the KeePass 2 pre-release format and 0x55 is KeePass 1)
@msmuenchen
msmuenchen / kdg-bot.php
Last active December 14, 2016 07:55
Automatic login bot for Kabel Deutschland 30-Min Free Wifi Hotspot
<?php
/*
Kabel Deutschland 30-Min Free Wifi Hotspot Auto-Login bot for Linux and Windows
According to the ToC, there is nothing which forbids the usage of this tool, but you have to accept and act by them.
See https://www.hotspot.kabeldeutschland.de/portal/nutzungsbedingungen.html?profile=2 for details.
Windows Install:
1) Install PHP
1.1) Grab and unpack http://windows.php.net/downloads/releases/php-5.5.3-nts-Win32-VC11-x86.zip