Skip to content

Instantly share code, notes, and snippets.

@gegenschall
gegenschall / index.mjs
Last active March 15, 2024 07:20
@module-federation/typescript import repro
import { FederatedTypesPlugin } from '@module-federation/typescript';
console.log(FederatedTypesPlugin);
@gegenschall
gegenschall / index.ts
Created October 21, 2022 06:48
AutoMapper #514 repro
import { AutoMap } from '@automapper/classes';
export class TestClass {
constructor (value: string) {
this.value = value;
}
@AutoMap()
value: string;
}
@gegenschall
gegenschall / PKGBUILD
Created August 21, 2017 09:36
powershell/PKGBUILD for v6.0.0-beta.5
# Maintainer: Kyle Sferrazza <kyle.sferrazza@gmail.com>
pkgname=powershell
_pkgver=6.0.0-beta.5
pkgver=${_pkgver/-/.}
pkgrel=2
pkgdesc="A cross-platform automation and configuration tool/framework (latest release)"
arch=('x86_64')
url="https://github.com/PowerShell/PowerShell"
license=('MIT')
@gegenschall
gegenschall / powershell-disable-selfhost-build.patch
Created August 21, 2017 09:17
Disable the Powershell self-hosted build process
diff --git a/build.sh b/build.sh
index 33c4d745..3891c2ca 100755
--- a/build.sh
+++ b/build.sh
@@ -1,10 +1,6 @@
#!/usr/bin/env bash
set -e
-if hash powershell 2>/dev/null; then
- echo 'Continuing with `powershell -noprofile -c Start-PSBuild`'
@gegenschall
gegenschall / wsl-bashexe-patcher.py
Created June 28, 2016 12:29
Patch WSL's bash.exe to execute arbitrary Linux executables from the WSL filesystem
#!/usr/bin/env python3
import sys
import argparse
OFFSET = 0xc0e0
# Not at all sure about the max length of the binary path to be started but
LENGTH = 32
CONTENT = b'/\x00b\x00i\x00n\x00/\x00b\x00a\x00s\x00h'
@gegenschall
gegenschall / keybase.md
Last active September 11, 2017 10:21
keybase.io proof

Keybase proof

I hereby claim:

  • I am gegenschall on github.
  • I am gegenschall (https://keybase.io/gegenschall) on keybase.
  • I have a public key ASBqiWwWWUIb-voe13KasfgJthmJpi8h8bTTCMaVoLoGZwo

To claim this, I am signing this object:

@gegenschall
gegenschall / 10-synaptics.conf
Last active December 17, 2015 18:59
/etc/X11/xorg.conf.d/10-synaptics.conf
Section "InputClass"
Identifier "touchpad"
Driver "synaptics"
MatchIsTouchPad "on"
Option "TapButton1" "1"
Option "TapButton2" "2"
Option "TapButton3" "3"
Option "ClickFinger1" "1"
Option "ClickFinger2" "2"
Option "ClickFinger3" "3"