Skip to content

Instantly share code, notes, and snippets.

View KaThorsten's full-sized avatar

Tho KaThorsten

  • Germany, Groß-Gerau
View GitHub Profile
@KaThorsten
KaThorsten / prettifyLua.lua
Last active May 27, 2025 05:48
small and simple lua prettifiyer in lua !
--
-- prettyLua.lua - a poor man's Lua prettifier. Converts spaces to tabs and applies Lua indentation based on keywords.
-- Version: 2020-14-04 enhanced by ThorstenKani arjunae@nurfuerspam.de
-- based on toTabs.lua
-- Modified to fix elseif indentation issues
DEBUG = false
local function debugPrint(...)
if DEBUG then
@KaThorsten
KaThorsten / Lumia_735_reFlash.readme
Last active October 10, 2020 07:04
Lumia 735 / Flash / WPInternals / Interop Tools
Stichworte -> Installation Lumia 735 (RM-1038)
Inhalt
- Flashen des Lumias 735 auf Windows Mobile 8.1
- Upgrade auf Windows 10 1607
- Upgrade auf Windows 10 1703
== Flashvorgang Vorbereitung ==
Windows Phone Internals (https://www.wpinternals.net/)
@KaThorsten
KaThorsten / FFMPEG_YouNow_Streaming
Last active June 28, 2020 22:34
VLC 3.0 and FFMPEG settings for streaming to YouNow (02.2018)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Setup Recommendations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1) Deactivate AntiVirus Software during Streaming
2) Open Audio->Speaker and set the Quality to 16Bit / 44100 (CD Quality)
3) Tweak Advanced Energy Settings->Multimedia
4) Open System->Services and stop Services which are unneeded for Streaming.
5) Start OBS with the parameter --enable-gpu
6) Start Streaming Software (FFMPEG / OBS) with "Aboveormal" Priority
7) Remove unused Protocols/Clients within Network Adapter settings.
@KaThorsten
KaThorsten / MinGW_COM_Interfaces
Created January 6, 2018 11:40
All MinGW known COM Objects and Function Macros
This file has been truncated, but you can view the full file.
[accctrl.h]
{AccFree}{LocalFree}
{ACCCTRL_DEFAULT_PROVIDER}{__MINGW_NAME_AW(ACCCTRL_DEFAULT_PROVIDER)}
[aclapi.h]
{SetEntriesInAcl}{__MINGW_NAME_AW(SetEntriesInAcl)}
{GetExplicitEntriesFromAcl}{__MINGW_NAME_AW(GetExplicitEntriesFromAcl)}
{GetEffectiveRightsFromAcl}{__MINGW_NAME_AW(GetEffectiveRightsFromAcl)}
{GetAuditedPermissionsFromAcl}{__MINGW_NAME_AW(GetAuditedPermissionsFromAcl)}
{GetNamedSecurityInfo}{__MINGW_NAME_AW(GetNamedSecurityInfo)}
@KaThorsten
KaThorsten / print_defines.lua
Last active March 28, 2021 12:21
iterate through c/cpp header files and list defines.
--
-- print_defines.lua; probably the first lua header defines fetcher created in 2018 ;)
-- 01.01.2018 / ThorstenK / Marcedo { at } habMalNeFrage. { de}
-- License: BSD three Clause
-- grab all function defines, list their names (with parameters)
-- exclude Constants, exclude _underscoredStuff, exclude multiline stuff.
-- (see code Docs and modify the --filter section)
--
# MinGW Functions, December 2017, Authored by Marcedo@gmx.net for mySciTe.190.
Abandon(void)virtual HRESULT WINAPI <asptlb.h>
AbandonSearch(ADS_SEARCH_HANDLE phSearchResult)virtual HRESULT WINAPI <iads.h>
ABI() __inline void Uninitialize<roapi.h>
ABI(HSTRING classid,T ** factory)template<roapi.h>
ABI(RO_INIT_TYPE it=RO_INIT_SINGLETHREADED) __inline HRESULT Initialze<roapi.h>
Abort(BOID * pboidReason,WINBOOL fRetaining,WINBOOL fAsync)virtual HRESULT WINAPI <transact.h>
Abort(HCHAPTER hChapter,DBASYNCHOP eOperation)virtual HRESULT WINAPI <transact.h>
Abort(VARIANT * fRetaining,VARIANT * fAsync)virtual HRESULT WINAPI <transact.h>
Abort(void) virtual HRESULT __stdcall <transact.h>
@KaThorsten
KaThorsten / parseCTags.lua
Last active May 25, 2025 07:23
A simple but efficient cTags file tokenizer to create SciTE .api and .properties files (lua script)
--
--
-- parseCTags.lua a poormans better ctags classifier
--
-- This script processes a ctags output file and generates
-- .api file for function calltips and autocompletion.
-- .properties file for symbol highlighting and categorization.
-- project.ctags.fin and .lock Files
--
-- License: BSD-3-Clause
@KaThorsten
KaThorsten / Ident32_64.bat
Last active April 27, 2018 13:02
identify w32/w64 binaries using pure Batch Steampunk
@echo off
mode 112,20
REM ---------------- Test Batch -----------------
REM List and Identify Binaries Platform (w32/w64)
REM --------------------------------------------
echo ... Display executables Platform, starting from current Directory...
echo ... Click outputPane and press Key.
pause >NUL
call :sub_lister