View geraCertificados.sh
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 | |
# Gera certificados com base em uma lista | |
# Raul Libório | |
#v 0.1 - script com geracao de certificados e envio | |
#v 0.2 - conversao em caixa alta antes do envio | |
# recomendo que coloque todos os caracteres em caixa alta antes, com | |
# a ajuda do libreOffice, é mais simples. Faremos essa atualização em breve |
View jogo_nim.py
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
def computador_escolhe_jogada(n, m): | |
jogada = 1 | |
while jogada <= m: | |
if (n - jogada) % (m + 1) == 0: | |
if jogada == 1 or n == 1: | |
print("O computador tirou uma peça.") | |
return jogada | |
else: | |
print("O computador tirou {} peças.".format(jogada)) | |
return jogada |
View throttled.sh
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 | |
# https://retropie.org.uk/forum/topic/2295/runcommand-warning-if-voltage-temperature-throttling | |
#Flag Bits | |
UNDERVOLTED=0x1 | |
CAPPED=0x2 | |
THROTTLED=0x4 | |
HAS_UNDERVOLTED=0x10000 | |
HAS_CAPPED=0x20000 |
View teste
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
IEVAN POLKA | |
URL="http://shenlong.solutis.com.br/hooks" | |
TOKEN="JbkKG29BFaSPcq8JT/jMb7WhrXwvnSR3QiPvYYXm33nenhG9jJG88uAx8Y7qeN6PiQ" | |
WEBHOOK="$URL/$TOKEN" | |
CURL="curl -X POST -k --data-urlencode" | |
TITLE_LINK="http://noc.tjba.jus.br/tr_events.php?triggerid={TRIGGER.ID}&eventid={EVENT.ID}" | |
#################### |