Skip to content

Instantly share code, notes, and snippets.

View pedropalhari's full-sized avatar

Pedro Palhari pedropalhari

View GitHub Profile
// ==UserScript==
// @name [GITHUB] Create branch from issue
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Creates a branch using the issue. Adds a button to the interface.
// @author Pedro Palhari
// @match https://github.com/*/*/issues/*
// @grant none
// ==/UserScript==
@pedropalhari
pedropalhari / mod.js
Created January 5, 2021 15:14
Streaming and static video serving with Deno & Oak
import {
Application,
Router,
send,
} from "https://deno.land/x/[email protected]/mod.ts";
const app = new Application();
const router = new Router();
@pedropalhari
pedropalhari / get_blob_from_img.js
Created October 30, 2020 12:51
Get blob from <img /> using Canvas. In that way you can append it to a FormData and make a POST with it.
//let img = document.querySelector("img");
async function imgSourceToBlob(img) {
let canvas = document.createElement('canvas');
canvas.width = img.width;
canvas.height = img.height;
let ctx = canvas.getContext('2d');
ctx.drawImage(img, 0, 0);
@pedropalhari
pedropalhari / whatsapp_web_speedup_audio.js
Last active August 2, 2023 14:35
Whatsapp Web Speedup audio
// ==UserScript==
// @name Whatsapp Audio Speedup
// @namespace https://palhari.dev
// @version 0.1
// @description try to take over the world!
// @author Pedro Palhari
// @match https://web.whatsapp.com/*
// @grant none
// ==/UserScript==