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
winver: Exibe informaçõe sobre a versão do Windows instalado no computador | |
appwiz.cpl: Abre a janela para adicionar ou remover programas | |
msinfo32: Abre a janela de informações do sistema, onde é possível obter um resumo dos componentes do PC, bem como obter detalhes sobre conflitos | |
wiaacmgr: Abre o assistente de câmera ou scanner | |
migwiz: Abre o assistente de transferência de definições e arquivos | |
fsquirt: Abre o assistente de transferência de arquivo Bluetooth | |
hdwwiz.cpl: Abre o gerenciador de dispositivos do Windows | |
calc: Calculadora | |
wscui.cpl: Abre a central de segurança e manutenção do Windows, onde é possível ver se está tudo bem com o Firewall | |
wscui.cpl no Prompt ou na janela Executar |
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
CRTL + SHIFT + I | |
var iframe = document.createElement('iframe');iframe.style.display = 'none';document.body.prepend(iframe);window.localStorage = iframe.contentWindow.localStorage;console.log("\n"+window.localStorage.token); | |
F5 + ENTER | |
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
#!/bin/bash | |
sudo service apport stop | |
sudo echo "enabled=0" > /etc/default/apport | |
----------------------------OU-------------------------------- | |
sudo sed -i 's/enabled=0/enabled=1/g' /etc/default/apport |
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
section .text | |
global _start ;must be declared for using gcc | |
_start: ;tell linker entry point | |
mov edx, len ;message length | |
mov ecx, msg ;message to write | |
mov ebx, 1 ;file descriptor (stdout) | |
mov eax, 4 ;system call number (sys_write) | |
int 0x80 ;call kernel | |
mov eax, 1 ;system call number (sys_exit) | |
int 0x80 ;call kernel |
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
#!/bin/bash | |
requires=(helm kubectl testscript anothertest) | |
function check_dependencies() { | |
for item in "${requires[@]}"; do | |
if [ -z $(which $item) ]; then | |
echo "[Alert] $item: not found" | |
else | |
echo "$item: installed" |
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
version: '2.2' | |
services: | |
apm-server: | |
image: docker.elastic.co/apm/apm-server:7.9.0 | |
depends_on: | |
elasticsearch: | |
condition: service_healthy | |
kibana: | |
condition: service_healthy | |
cap_add: ["CHOWN", "DAC_OVERRIDE", "SETGID", "SETUID"] |
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
import socket | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.bind(('0.0.0.0', 50000)) | |
s.listen(1) | |
conn, addr = s.accept() | |
while 1: | |
data = conn.recv(1024) | |
print(data) | |
if not data: | |
break |
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
version: "3" | |
networks: | |
kong-net: | |
driver: bridge | |
services: | |
####################################### | |
# Postgres: The database used by Kong |
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
# import env config | |
cnf ?= .env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# Get the latest tag | |
TAG=$(shell git describe --tags --abbrev=0) | |
GIT_COMMIT=$(shell git log -1 --format=%h) |
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
# by: apolzek | |
md5sum * | sort -n > .file | |
filename='.file' | |
n=1 | |
x=1 | |
while read line; do | |
current_hash=$(echo $line | awk {'print $1'}) | |
echo "[debugging] current_hash: $current_hash" | |
x=$(($n + 1)) |
OlderNewer