Skip to content

Instantly share code, notes, and snippets.

View Guihgo's full-sized avatar

Guilherme Henrique Guihgo

View GitHub Profile
Privacy Policy
Updated May 5, 2023
@Guihgo
Guihgo / fetch-to-stream-web-response.ts
Created February 4, 2023 04:23
Fetch to Stream Web Response
this.app.get("/webhook/test/google", (req: Request, res: Response) => {
fetch("https://google.com").then(r => {
r.body.pipeTo(new WritableStream<Uint8Array>({
write(chunk){
res.write(chunk)
},
close(){
res.end()
}
}))
@Guihgo
Guihgo / HeidiDecode.js
Created July 20, 2020 10:38 — forked from jpatters/HeidiDecode.js
Decodes a password from HeidiSQL. HeidiSQL passwords can be found in the registry. Use File -> Export Settings to dump all settings. Great for if you forget a password.
function heidiDecode(hex) {
var str = '';
var shift = parseInt(hex.substr(-1));
hex = hex.substr(0, hex.length - 1);
for (var i = 0; i < hex.length; i += 2)
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift);
return str;
}
document.write(heidiDecode('755A5A585C3D8141786B3C385E3A393'));
@Guihgo
Guihgo / gist:c817aa3315c4a24ca6e862ee2d4eb95e
Created December 31, 2019 20:22
Erico Rocha | Resumo 365
Parte 3 de 365:
decição leva muita energia
no começo delegue a tarefa, mas não delegue a responsabilidade
@Guihgo
Guihgo / map-style.json
Created May 30, 2019 22:40
a test map style for leaflet map
{
"version": 8,
"name": "Dark Matter",
"metadata": {
"mapbox:autocomposite": false,
"mapbox:type": "template",
"mapbox:groups": {
"b6371a3f2f5a9932464fa3867530a2e5": {
"name": "Transportation",
"collapsed": false
@Guihgo
Guihgo / AtomicReact_Playground.json
Created December 17, 2018 19:14
AtomicReact Playground Shared
eyJpbmRleCI6IjwhRE9DVFlQRSBIVE1MPlxuPCEtLSA8PDwgQ3JlYXRlIHlvdXIgQXRvbSBjbGlja2luZyBvbiBsZWZ0IEFkZCBCdXR0b24gPDw8IC0tPlxuPGgyPldlJ3IgaW4gPGI+Ym9keTwvYj4gb2YgaW5kZXguaHRtbDwvaDI+XG4iLCJhdG9tIjpbXX0=
@Guihgo
Guihgo / AtomicReact_Playground.json
Created December 15, 2018 06:15
AtomicReact Playground Shared
eyJpbmRleCI6IjwhRE9DVFlQRSBIVE1MPlxuPCEtLSA8PDwgQ3JlYXRlIHlvdXIgQXRvbSBjbGlja2luZyBvbiBsZWZ0IEFkZCBCdXR0b24gPDw8IC0tPlxuPGgyPldlJ3IgaW4gPGI+Ym9keTwvYj4gb2YgaW5kZXguaHRtbDwvaDI+XG4iLCJhdG9tIjpbXX0=
@Guihgo
Guihgo / AtomicReact_Playground.json
Created December 15, 2018 06:11
AtomicReact Playground Shared
{asd:teste}
@Guihgo
Guihgo / teste.txt
Created December 15, 2018 06:06
Hello World Examples
this is a test - Hello World
@Guihgo
Guihgo / teste.txt
Created December 15, 2018 06:05
Hello World Examples
this is a test - Hello World