Skip to content

Instantly share code, notes, and snippets.

View Artemissian's full-sized avatar

Artemis Artemissian

View GitHub Profile
@Artemissian
Artemissian / Bookmarklets.js
Created February 26, 2018 19:13
Bookmarklets
// rot13
javascript:function convert(inText){var outText='',t;for(i=0;i<inText.length;i++){t=inText.charCodeAt(i);if((t>64&&t<78)||(t>96&&t<110))t += 13;else if((t>77&&t<91)||(t>109&&t<123))t -= 13;outText += String.fromCharCode(t);}return outText;}var sel=window.getSelection().getRangeAt(0);if(sel==''){var act=document.activeElement;if(act.type=="textarea"){var start=act.selectionStart,end=act.selectionEnd;if(start!=end){var prefix=act.value.substring(0,start);var middle=convert(act.value.substring(start,end));var suffix=act.value.substring(end);act.value=prefix;act.value += middle;void(act.value += suffix);}}else{void(inText=prompt('Phrase...',''));if(inText)alert(convert(inText));}}else{out=convert(sel.toString());sel.deleteContents();var span=document.createElement("span");span.innerHTML=out;sel.insertNode(span);}
//Decode base64
javascript:function c()%7B%7Dc.prototype.get=function()%7Bvar a="";window.getSelection?a=window.getSelection().toString():document.selection&&"Control"!=document.selection.type&
@Artemissian
Artemissian / publickeys.txt
Last active October 25, 2016 06:28
public keys
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQSuBFgGf08RDADcr7h8PZvZXzaf6YD/eThiIcUOpjSoj4A9Qg91/dayv6URfUIp
epxA4py9pHE9Tmzih7bKdl4xaBE4Rzpg5oCnAzLAlE1pPli/xP42QYlg7FtlnaLD
Fpsn7oRAgrIcx8dgby+ZRC86nxNwkhY3fxzDYXdRVsywf+78QuO1tUjrCahcAkS2
ddRsQGDdLABQnn9undo3HCL0YIKAd1hW6SbRIhnYO+NbLUymuY+hiGrZj8M31+Ls
TgER9ucGFG6K032xUPuDTICCxz/mK/LDv2MG09UjZzuk1Y3kOt0/VdwpGKoJheq2
zXRfsanQsYZvm9m9WFtNopWIRBuwGrPovf/Fxk+TTQfheR8rGKzzvTuLzjt6dc/d
GT1BFrapRlfvOlWoS6NV/8JxZuFkJTfKZOApYTgpJp5llE5NQCWAGhFkh7M4PJNE
XGsGWRsdEt0pyo9JcoPJV5tZIfeykxioQG6gLFYUQ0TOQ0kP3xtwzvyYy3DiaERN

Keybase proof

I hereby claim:

  • I am Artemissian on github.
  • I am artemissian (https://keybase.io/artemissian) on keybase.
  • I have a public key whose fingerprint is 143C 9944 30A0 C460 ECE9 FE5D C77A A771 95D6 3CB8

To claim this, I am signing this object: