Skip to content

Instantly share code, notes, and snippets.

View calderaro's full-sized avatar

Angel Calderaro calderaro

  • Mexico City
View GitHub Profile
@calderaro
calderaro / jwtRS256.sh
Created July 6, 2020 23:04 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@calderaro
calderaro / gif_test.cpp
Created May 6, 2021 16:42 — forked from suzumura-ss/gif_test.cpp
gif-lib basic example.
#include <iostream>
#include <sstream>
#include <string>
#include <string.h>
#include <gif_lib.h>
bool gif_write(const char* fileName)
{
int error;
// C++ bit . save it in an example.cpp file
#include "emscripten.h"
extern "C" {
inline const char* cstr(const std::string& message) {
char * cstr = new char [message.length()+1];
std::strcpy (cstr, message.c_str());
return cstr;
}
EMSCRIPTEN_KEEPALIVE
const char* getAMessage() {