sudo vim /sys/devices/platform/dell-laptop/leds/dell\:\:kbd_backlight/stop_timeout
This file contains 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
sudo usermod -aG docker $USER ; | |
sudo chmod a+rwx /var/run/docker.sock ; |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<body> | |
<button type="button" onclick="executar()">Executar</button> | |
<script> | |
function executar(){ | |
const produto = prompt("Digite o produto") |
This file contains 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
// Variaveis | |
const nome: string = "Fabio"; | |
let idade: number = 1; | |
idade = 2; | |
// Variáveis + null + undefined | |
let nomeQuePodeSerNull: string | null | undefined; | |
nomeQuePodeSerNull = null; |
This file contains 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
Jenkins.instance.queue.clear() |
This file contains 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
Algoritmo "estrutura de repeticao" | |
Var | |
indiceDoPara: inteiro | |
enquantoDeveRepetir: logico | |
enquantoContador: inteiro | |
enquantoDeveRepetirLido: inteiro |
This file contains 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
# usage: bash watch_pod_logs.sh "namespace" "pod_name (can be the full or partial name)" "container_name" | |
while [ : ] | |
do | |
pod_name=$(kubectl get pods --no-headers -o custom-columns=":metadata.name" -n $1 | grep $2 | tail -n 1) | |
echo "========================================================================================" | |
kubectl logs -n $1 $pod_name -c $3 | |
sleep 1 | |
done |
This file contains 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
<html> | |
<button onclick="popupCenter('https://google.com', 400, 600);"> | |
my popup | |
</button> | |
<script> | |
function popupCenter(url, w, h) { | |
const y = window.top.outerHeight / 2 + window.top.screenY - ( h / 2); |
sudo vim /etc/systemd/system/my-server.service
/etc/systemd/system/my-server.service
[Unit]
Description=My Server
After=network.target
StartLimitIntervalSec=0
[Service]
NewerOlder