Skip to content

Instantly share code, notes, and snippets.

View christian-korneck's full-sized avatar
💭
I may be slow to respond.

Christian Korneck christian-korneck

💭
I may be slow to respond.
View GitHub Profile
@christian-korneck
christian-korneck / table.md
Created September 10, 2017 14:42
Visual Studio 2017 build targets (on a Windows 7 SP1 build machine)
Platform Toolset devenv working? compiler version (from Rich Header) depends msvcr ucrtbased depends vcruntime supports retarget to 8.1 / 10 SDKs
Windows7.1SDK VS 2017 RC1 YES VS2010 build 30319 100D No No No
Visual Studio 2017 (v141) VS 2017 RC1 NO - build fails, seems to require Windows SDK 8.1 or 10 (not possible on Win 7?) N/A N/A N/A N/A Yes
Visual Studio 2017 (v141) VS 20
<?xml version="1.0" encoding="utf-8"?>
<ADLMCUSTOMENV VERSION="1.0.0.0">
<PLATFORM OS="Windows">
<KEY ID="ADLM_COMMON_BIN_LOCATION">
<!--Path to the AdLM shared executables-->
<STRING><path to maya netinstall>\adlm\R14\Program Files\Common Files\Autodesk Shared\Adlm\R14</STRING>
</KEY>
<KEY ID="ADLM_COMMON_LIB_LOCATION">
<!--Path to the AdLM shared libraries-->
<STRING><path to maya netinstall>\adlm\R14\Program Files\Common Files\Autodesk Shared\Adlm\R14</STRING>
@christian-korneck
christian-korneck / proclist.ps1
Created August 8, 2018 20:44
powershell - process list with username
#$proclist = get-wmiobject -Class win32_process | select -last 50
$proclist = get-wmiobject -Class win32_process
foreach ($proc in $proclist) {
$userinfo = Invoke-WmiMethod -InputObject $proc -Name GetOwner
$userstring = "$($userinfo.Domain)\$($userinfo.User)"
if ($userstring -eq "\") {$userstring = ""}
Add-Member -InputObject $proc -Name User -Value $userstring -MemberType NoteProperty
}
$proclist | select ProcessId, User, name
@christian-korneck
christian-korneck / mkUnprivedSymlink.py
Created April 6, 2019 21:47
make unprivileged windows 10 symlink ( python ctypes )
@christian-korneck
christian-korneck / pypackagereq.py
Created April 23, 2019 19:09
python package requirements regex
import re
match = re.search(r"(?P<name>[a-zA-Z0-9_-]{1,})(?P<operator>[=><]{2,})(?P<version>[0-9]{1,}[0-9\.]{0,})", "lets-get==1.0.0")
name = match.group("name")
operator = match.group("operator")
version = match.group("version")
@christian-korneck
christian-korneck / powerpoint_checklist.md
Last active December 7, 2020 12:02
powerpoint checklist
  • 1 message per slide
  • just image + short keywords (no full sentences, no redundancy to spoken word)
  • size: small headline, big keywords
  • contrast: highlight only the currently "active" point, gray out past (inactive) points, hide + later fade in future points
  • dark background
  • 5 to 6 objects per slide
@christian-korneck
christian-korneck / keybase.md
Created February 21, 2020 18:46
keybase.md

Keybase proof

I hereby claim:

  • I am christian-korneck on github.
  • I am chr1stian (https://keybase.io/chr1stian) on keybase.
  • I have a public key whose fingerprint is DB30 FBED 2AD7 BD8A 01F3 CCDE 4EBE 2E5E DEB2 72F1

To claim this, I am signing this object:

@christian-korneck
christian-korneck / build_ncspot_darwin.sh
Last active March 2, 2020 22:36
build ncspot (ncurses spotify client) on macOS
#!/bin/bash
source $HOME/.cargo/env
brew install pkg-config
brew install portaudio
git clone --depth=50 --branch=master https://github.com/hrkfdn/ncspot.git hrkfdn/ncspot
cd hrkfdn/ncspot
export CARGO_FLAGS="--no-default-features --features portaudio_backend,cursive/pancurses-backend --release"
export PKG_CONFIG_PATH=`brew --prefix portaudio`/lib/pkgconfig #something like /usr/local/Cellar/portaudio/19.6.0/lib/pkgconfig
cargo build $CARGO_FLAGS
@christian-korneck
christian-korneck / docker_creds.bash
Created March 13, 2020 23:15
get docker desktop credentials
#!/bin/bash
docker-credential-desktop list | \
jq -r 'to_entries[].key' | \
while read; do
docker-credential-desktop get <<<"$REPLY";
done
@christian-korneck
christian-korneck / octokey
Last active April 25, 2024 09:40
octokey (.bashrc)
function octokey () {
if [ "${1}" == "" ]; then echo -e "Get a github user's ssh key(s). \nUsage: octokey github_username [all | key_index]" && return 1; fi
case "${2}" in
"")
local key_index=0
;;
a)
local key_index='' #jq wildcard
;;
all)