Skip to content

Instantly share code, notes, and snippets.

View heavensrevenge's full-sized avatar

Eric heavensrevenge

  • Ontario, Canada
View GitHub Profile
@heavensrevenge
heavensrevenge / validation.js
Created February 24, 2025 23:37
generate or import private and public key pairs, sign and validate
async function generateKeyPair() {
let algoritm = {
name: "ECDSA",
namedCurve: "P-521"
};
let exportable = true;
let usage = ["sign", "verify"];
return await window.crypto.subtle.generateKey(algoritm, exportable, usage);
}
@heavensrevenge
heavensrevenge / keybase.md
Last active August 29, 2015 14:03
Keybase Proof

Keybase proof

I hereby claim:

  • I am heavensrevenge on github.
  • I am heavensrevenge (https://keybase.io/heavensrevenge) on keybase.
  • I have a public key whose fingerprint is 468A 8E4C C0F5 B372 DB95 341B AD50 9880 B339 6DA0

To claim this, I am signing this object:

@heavensrevenge
heavensrevenge / gist:791261
Created January 22, 2011 17:10
H264 Rant
About h264... something is "weird". Yes I agree h264 is AMAZING and basically
IS the best quality codec for the size and FAST to encode to. But they can
encode it... us as personal consumers CANNOT encode to it legally if it is for
commercial use in any way/shape/form.
**We cant, period, end of story**
That doesnt include the h264 videos you or me have which are created with a
camera licenced to create the encoding internally for personal use, but if you
transcode to h264 FROM a source codec not h264, and display the video for other
than personal use you ARE requireed to pay since the 2 parts which are suppoed
to be payed for are the encoding process and the decoding process of an h264
@heavensrevenge
heavensrevenge / gist:712735
Created November 23, 2010 23:09
Bookmarklets
javascript:function tinycc_bookmarklet(){var script=document.createElement('script');script.src='http://tiny.cc/public/javascript/bookmarklet.js';scriptObj=document.body.appendChild(script);}tinycc_bookmarklet();
javascript:void(window.open('http://3.ly/?bm=1&u='+encodeURIComponent(location.href)))
javascript:(function(){var%20d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://identi.ca//index.php?action=bookmarklet',l=d.location,e=encodeURIComponent,g=f+'&status_textarea=%E2%80%9C'+((e(s))?e(s):e(document.title))+'%E2%80%9D%20%E2%80%94%20'+e(l.href);function%20a(){if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=450,height=200')){l.href=g;}}a();})()
javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.