Skip to content

Instantly share code, notes, and snippets.

View assarbad's full-sized avatar
🤓

Oliver Schneider assarbad

🤓
View GitHub Profile
@assarbad
assarbad / ThinkpadT14s.md
Created July 24, 2026 09:31
Full Disk Encryption on Thinkpad T14s with Kubuntu 26.04 LTS

Installing Kubuntu 26.04 with FDE on a Thinkpad T14s Gen2

Up front: Calamares (Kubuntu installer) didn't cut it. So I went the well-trodden path of manual installation combined with later package selection that would mimick what Calamares would have picked.

Preliminary assumption

These instructions make assumptions. The main assumption is, that you dear reader, are not a numpty. Therefore use your own judgment and adjust arguments (especially device paths) to your own needs. Don't blame me for doing stupid things on your end. Got enough stupid decisions of my own to deal with ...

Preparations

@assarbad
assarbad / vim-flavors.md
Created January 19, 2026 22:06
Version output from Vim

Manjaro

:version
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Dec 12 2025 21:55:17)
Included patches: 1-1975
Compiled by Arch Linux
Huge version without GUI.  Features included (+) or not (-):
+acl                 +clientserver        +dialog_con          +float               +lambda              -mouseshape          +netbeans_intg       +quickfix            +statusline          +textobjects         +visualextra         -xim
+arabic              -clipboard           +diff                +folding             +langmap             +mouse_dec           +num64               +reltime             -sun_workshop        +textprop            +vreplace            -xpm
@assarbad
assarbad / autossh-with-systemd-hardening-usage.md
Last active August 12, 2026 21:16
Strictly hardened autossh systemd unit template for port-forwarding

How to "install" the enclosed unit template (all require superuser permissions)

  1. place the autossh@.service file in /etc/systemd/system
  2. enable an instance -- suppose your remote host is called frodo then you might run: systemctl enable autossh@frodo (do not use --now here!); IPv4 addresses also worked for me
  3. now it is time to create an override specific to the instance, e.g. : systemctl edit autossh@frodo.service and adjust the following bunch of settings (commented out in the main unit template) like so:
    [Service]
    Environment=REMOTE_PORT=1022
    Environment=TARGET_USER=username
    Environment=TARGET_HOST=frodo.example.com
    
@assarbad
assarbad / VMProtect.md
Last active August 9, 2026 06:45
Links to VMProtect related resources
@assarbad
assarbad / GitRevision.targets
Created August 9, 2023 22:03
Just playing around with the retrieval of the Git revision from within MSBuild and caching it ...
<?xml version="1.0" encoding="utf-8"?>
<Project InitialTargets="GetGitRevision" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<GitWorkTreeRootDir>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), '.git\index'))</GitWorkTreeRootDir>
<GitWorkTreeRootDir Condition="'$(GitWorkTreeRootDir)' != '' and !HasTrailingSlash('$(GitWorkTreeRootDir)')">$(GitWorkTreeRootDir)\</GitWorkTreeRootDir>
<GitDirSentinelFile Condition="Exists('$(GitWorkTreeRootDir).git\index')">$(GitWorkTreeRootDir).git\index</GitDirSentinelFile>
<GitRevPropsFile>$(MSBuildThisFileDirectory)__GitRev.props</GitRevPropsFile>
</PropertyGroup>
<Target Name="FindGitExecutablePath" Condition="'$(GitDirSentinelFile)' != ''">
<PropertyGroup>
@assarbad
assarbad / msbuild-defaults.xml
Created July 23, 2023 21:04
Default MSBuild Properties
<AndroidTargetsPath>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\MDD\Android\V150\</AndroidTargetsPath>
<AspNetConfiguration>Debug</AspNetConfiguration>
<CurrentSolutionConfigurationContents>
<FrameworkSDKRoot>C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\</FrameworkSDKRoot>
<GetReferenceNearestTargetFrameworkTaskSupportsTargetPlatformParameter>true</GetReferenceNearestTargetFrameworkTaskSupportsTargetPlatformParameter>
<HideWarningsAndErrors>false</HideWarningsAndErrors>
<IsRestoreTargetsFileLoaded>true</IsRestoreTargetsFileLoaded>
<MSBuildAllProjects>X:\msbuild-test\msbuild.vs2022.sln.metaproj</MSBuildAllProjects>
<MSBuildExtensionsPath32>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild</MSBuildExtensionsPath32>
<MSBuildExtensionsPath>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild</MSBuildExtensionsPath>
@assarbad
assarbad / idapython-legacy-regex.txt
Last active June 22, 2023 22:06
PCRE for old IDAPython function names
\W(AF2_(?:ANORET|CHKUNI|DATOFF|DOCODE|DODATA|FTAIL|HFLIRT|JUMPTBL|PURDAT|REGARG|SIGCMT|SIGMLT|STKARG|TRFUNC|VERSP)|AF_ASCII|ASCF_(?:AUTO|COMMENT|GEN|SAVECASE|SERIAL)|ASCSTR_(?:C|LEN2|LEN4|PASCAL|TERMCHR|ULEN2|ULEN4|UNICODE)|AddStrucMember|BeginEA|DOUNK_(?:DELNAMES|EXPAND|SIMPLE)|FF_(?:ASCI|DWRD|OWRD|QWRD|STRU|TBYT|VAR)|FIXUP_(?:BYTE|CREATED|EXTDEF|REL|SELFREL|UNUSED)|Fatal|GetFlags|HideArea|INF_(?:BINPREF|BORDER|CHANGE_COUNTER|CMTFLAG|COMPILER|END_PRIVRANGE|HIGH_OFF|LONG_DN|LOW_OFF|MODEL|NAMELEN|REFCMTS|SHORT_DN|SIZEOF_ALGN|SIZEOF_BOOL|SIZEOF_ENUM|SIZEOF_INT|SIZEOF_LDBL|SIZEOF_LLONG|SIZEOF_LONG|SIZEOF_SHORT|START_PRIVRANGE|TYPE_XREFS|XREFS)|Message|REF_VHIGH|REF_VLOW|ResumeProcess|SEGDEL_(?:KEEP|SEGDEL_PERM|SEGDEL_SILENT|ALL|COMPAT|FATAL)|UMessage|Warning|Add(?:UserStkPnt|Union|StrucEx|Struc|SourceFile|SegEx|Hotkey|Enum|EntryPoint|ConstEx|Const|CodeXref|BptEx|Bpt|AutoStkPnt2)|AltOp|Analy[sz]e(?:Area|Range)|Analysis|AppendFchunk|ApplySig|ArmForceBL(?:Call|Jump)|(?:Addr|File|Ident|Long|Seg|Selector|Str|YN)|Atta