Julio @faermanj
https://faermanj.me
https://caravana.cluoud
https://gist.github.com/faermanj/270a8a8ab817f95fc2e350ec2d481bd2
Aplicação estilo "microserviços" ("PetCare")
// @ts-ignore | |
class NumberValidator { | |
number: number | undefined; | |
log = new Logger('NumberValidator'); | |
constructor(n: any) { | |
this.log.log(`NumberValidator constructor called with ${n}`); | |
if (typeof n === 'string') { | |
this.log.error(`NumberValidator failed with string ${n}`); |
Folks, Leave me a comment / URL if something you like is missing!
Resource | Description |
---|---|
Kube Academy | https://kube.academy/ |
kuernetes-101 | https://kube.academy/courses/kubernetes-101/ |
Docs Home | https://kubernetes.io/docs/home/ |
CKS CKA CKAD Simulator | https://killer.sh/ |
# Youtube to GIF Converter | |
# (with youtube-dl and ffmpeg) | |
# made by Paulo Elienay II | |
# at paulo [at] pauloelienay.com | |
# imports | |
import sys, os | |
# vars | |
# default vars |
These methods in this gist worked for me on my U.S.-based keyboard layouts. I am unsure about other layouts. If you have problems, revert your changes; delete the registry key you created (and reboot).
Update: you should probably scroll down to approach 4 where I suggest using Microsoft PowerToys Keyboard Manager.
Navigate to and create a new binary value in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
named Scancode Map
.
#!/usr/bin/env python | |
import signal | |
import sys | |
def signal_handler(signal, frame): | |
sys.exit(0) | |
signal.signal(signal.SIGINT, signal_handler) |
#!/usr/bin/env bash | |
typeofvar () { | |
local type_signature=$(declare -p "$1" 2>/dev/null) | |
if [[ "$type_signature" =~ "declare --" ]]; then | |
printf "string" | |
elif [[ "$type_signature" =~ "declare -a" ]]; then | |
printf "array" |