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 obter_mais_longa_substring(s): | |
alfabeto = {'a':1,'b':2,'c':3,'d':4,'e':5,'f':6,'g':7,'h':8,'i':9,'j':10,'k':11,'l':12,'m':13,'n':14,'o':15,'p':16,'q':17,'r':18,'s':19,'t':20,'u':21,'v':22,'w':23,'x':24,'y':25,'z':26} | |
substrings = [] | |
substring_atual = [] | |
posicao_anterior = 0 | |
for c in s: | |
posicao_atual = alfabeto[c] |
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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", | |
"showTerminalTitleInTitlebar": true, | |
"profiles": [ | |
{ | |
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"name": "Windows PowerShell", | |
"commandline": "powershell.exe", | |
"hidden": false |
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
$ curl https://downloads.wordpress.org/theme/customizr.4.1.44.zip -o customizr.zip | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 7262k 100 7262k 0 0 2791k 0 0:00:02 0:00:02 --:--:-- 4138k | |
$ time unzip customizr.zip | |
real 0m2.727s | |
user 0m0.296s | |
sys 0m0.339s |
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
FOR %i IN (*.webm) DO ffmpeg.exe -fflags +genpts -i "%i" -r 24 "%i.mp4" |
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
$ openssl smime -sign -in file.txt -inkey /etc/letsencrypt/live/example.com/privkey.pem -outform PEM -signer /etc/letsencrypt/live/example.com/cert.pem -CAfile /etc/letsencrypt/live/example.com/fullchain.pem -out file.txt.p7s | |
$ openssl pkcs7 -print_certs -in file.txt.p7s -out file.txt.p7s.cer | |
$ openssl smime -verify -inform PEM -in file.txt.p7s -content file.txt -certfile file.txt.p7s.cer -CAfile /etc/letsencrypt/live/example.com/fullchain.pem -nointern -noverify > /dev/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
<!-- MIT License --> | |
<html> | |
<head> | |
<script> | |
function generateKey(alg, scope) { | |
return new Promise(function(resolve) { | |
var genkey = crypto.subtle.generateKey(alg, true, scope) | |
genkey.then(function (pair) { | |
resolve(pair) | |
}) |
Visualizar os campos disponíveis para itemtype
ITILCategory
curl --request GET \
--url https://glpi.exemplo.com.br/apirest.php/listSearchOptions/ITILCategory \
--header 'App-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--header 'Session-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
OlderNewer