Skip to content

Instantly share code, notes, and snippets.

View gustavonobreza's full-sized avatar
🇧🇷
Studying so hard

Gustavo Alexandre Nobre Mesquita gustavonobreza

🇧🇷
Studying so hard
View GitHub Profile
@danalloway
danalloway / supabase_upload_stream.js
Created April 2, 2021 02:57
Supabase Storage - Upload Stream
const fetch = require("node-fetch");
const FormData = require("form-data");
const API_URL = process.env.SUPABASE_URL;
const AUTH_TOKEN = process.env.SUPABASE_KEY;
/**
* @async
* @param {string} bucketId
* @param {string} path
@luizomf
luizomf / express_async_errors.js
Created November 14, 2020 02:42
Express Async Errors
/* Express Route Adapter */
const resolver = (handlerFn) => {
return (req, res, next) => {
return Promise.resolve(handlerFn(req, res, next))
.catch(e => next(e));
}
}
/* Errors */
class InternalServerError extends Error {
@NaniteFactory
NaniteFactory / messagebox.go
Last active January 28, 2026 06:32
Win32 API MessageBox() in Golang
import (
"syscall"
"unsafe"
)
// MessageBox of Win32 API.
func MessageBox(hwnd uintptr, caption, title string, flags uint) int {
ret, _, _ := syscall.NewLazyDLL("user32.dll").NewProc("MessageBoxW").Call(
uintptr(hwnd),
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(caption))),
@harishanchu
harishanchu / openssl.MD
Created January 12, 2018 14:49 — forked from jchandra74/openssl.MD
HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

Overview

My main development workstation is a Windows 10 machine, so we'll approach this from that viewpoint.

Recently, Google Chrome started giving me a warning when I open a site that uses https and self-signed certificate on my local development machine due to some SSL certificate issues like the one below:

Self-Signed SSL Issue in Chrome

@rxaviers
rxaviers / gist:7360908
Last active March 20, 2026 15:43
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: