chrome://flags/#enable-reader-mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
codesign --remove-signature "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app" |
These are curl examples for confirming the captive portal login page of some public WIFI Hotspots.
SSID: Telekom
alias telekom='onlinestatus=; onlinestatus=$(curl --silent --data-binary "{\"rememberMe\":false}" "https://hotspot.t-mobile.net/wlan/rest/freeLogin" | jq -r ".user.wlanLoginStatus"); if [ "$onlinestatus" != "online" ]; then echo error; else echo online; fi; onlinestatus='
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker-credential-desktop list | \ | |
jq -r 'to_entries[].key' | \ | |
while read; do | |
docker-credential-desktop get <<<"$REPLY"; | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
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:
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |