Skip to content

Instantly share code, notes, and snippets.

@Los-had
Los-had / programming.goggle
Last active June 29, 2022 23:50
Gist for the brave search new feature called goggles.
! name: Programming Questions
! description: Helps to find answers about programming related questions, Mainly for python and golang.
! public: true
! author: Loshad
! avatar: #bcd4e6
! license: MIT
$boost=5,site=stackoverflow.com
$boost=5,site=github.com
$boost=3,site=gist.github.com
@Los-had
Los-had / cesar_crack.php
Created June 21, 2021 10:44
Quebrando a cifra de César com php
function cesar_crack_ascii($ut) {
$txt = $ut;
$ftxt = '';
$v = str_split($txt);
$len = strlen($txt);
for ($nc = 0; $nc <= 26; $nc++) {
for ($g = 0; $g <= $len; $g++) {
$c = ord(@$v[$g]) - $nc;
$ftxt = $ftxt.chr($c);
}
@Los-had
Los-had / random.py
Created May 16, 2021 21:09
primeira gist, pegando variáveis aleatórias em python
from random import choice
valorum = "#yLR75@s56el"
valordois = "m!zR6VvFq75R"
valortres = "^JHNgr%oka4X"
valorquatro = "TF^OMZYyqx@&"
possibilidades = [valorum, valordois, valortres, valorquatro]
valoraleatorio = choice(possibilidades)