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:
#$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 |
I hereby claim:
To claim this, I am signing this object:
#!/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 |
#!/bin/bash | |
docker-credential-desktop list | \ | |
jq -r 'to_entries[].key' | \ | |
while read; do | |
docker-credential-desktop get <<<"$REPLY"; | |
done |
def mkUnprivedSymlink(source, target, dir=False): | |
# https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-createsymboliclinkw | |
import ctypes | |
import ctypes.wintypes | |
# 0x0 (file) or 0x1 (dir) + 0x2 (unprived mode) | |
dwFlags = 2 if dir == False else 3 | |
CreateSymbolicLinkW = ctypes.WinDLL("kernel32").CreateSymbolicLinkW | |
CreateSymbolicLinkW.restype = ctypes.wintypes.DWORD | |
CreateSymbolicLinkW.argtypes = (ctypes.wintypes.LPCWSTR, ctypes.wintypes.LPCWSTR, ctypes.wintypes.DWORD) | |
ret = CreateSymbolicLinkW(source, target, dwFlags) |
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") |
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 |
codesign --remove-signature "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app" |
chrome://flags/#enable-reader-mode