Skip to content

Instantly share code, notes, and snippets.

View thejsa's full-sized avatar
Up to shenanigans

Eva Lauren Kelly thejsa

Up to shenanigans
View GitHub Profile
@thejsa
thejsa / is_even.js
Created July 30, 2020 10:19
is_even but really terrible (JS)
function is_even(n) {
if(n == 0) return true;
var even_numbers = [];
for (var i = 0; i < n; i++) {
if(is_even(i)) {
even_numbers.push(i);
}
}
return (even_numbers.indexOf(n - 1) === -1);
}
@thejsa
thejsa / gist:497c3f17ca3b98005a3d9cf2ca835d02
Created April 8, 2020 12:23
pinkolapas dot club // polstaklops dot club // baddaysdontdown.gq spam emails
Received: from VI1EUR04HT003.eop-eur04.prod.protection.outlook.com
(2603:10a6:4:67::25) by DB3PR0402MB3801.eurprd04.prod.outlook.com with HTTPS
via DB6PR0501CA0039.EURPRD05.PROD.OUTLOOK.COM; Tue, 7 Apr 2020 20:20:26 +0000
ARC-Seal: i=3; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass;
b=oJjNsDALydJ0lLel6ESy6J8KlQk23BybGn02qft6CtBISHGKKef2/favEtQt5yjDwrN+nbpNbyiAs7WQgt6Y1kJymakwAA+9D1p4U2JwIwVuoz7ELa+JDp4Inu611dikNwlpNraRNhr1LNTHygowe0gD06hAbrqxZQAR47xBJ1210VMNHCw2fpTjduMISBODHKUx6E9ST+JHgHYfQWoQAzSq570/XS9m3l8mGdmxzM/957lI79+lT2By8FJTVFPMxsv8p/vus+z2tIIXKI83J08TQfTFGgIOPwA2U+dXILKv9yKWK+kR79dus11JB0fT5w40+gFOoqSPbnBl7IkJWg==
ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=Aqxzq8aFCCTsrd97Am2MxNphurPDsusOZXrHPGj0jDo=;
b=c9EeekLIVIn5qyLcy6F1uXKwDUVQAxRMpXbQ5okOq/YIfaXFzQPOl2h0sqiO/KgRQzqS2iod96I6S0uJ34r36kFSBTCSf/odQLvCbKV+ZNZTPLs0+LQep9DvJL8n1xIGsWLZ+orhaTfu5BWK9MZ

Keybase proof

I hereby claim:

  • I am thejsa on github.
  • I am thejsa (https://keybase.io/thejsa) on keybase.
  • I have a public key ASCkRkRrarlhMw_PkYrq3Wy07mq5Zy_pHMMcKE3A7IZa1go

To claim this, I am signing this object:

@thejsa
thejsa / parseURI.js
Created October 21, 2018 13:32
JavaScript function + regular expression to parse Spotify URIs
function parseURI(uri) {
var parse;
if(!(parse = /^(?:https?:\/\/open.spotify.com\/|spotify:)(track|album|artist|user|playlist)(?:\/|:)([a-zA-Z0-9_]+)(?:(?:\/|:)(playlist)(?:\/|:)([a-zA-Z0-9_]+))?(.*)$/.exec(uri))) {
return false;
}
var result = {
uri: parse[0],
raw: parse
};
@thejsa
thejsa / talking-to-transwomen.md
Last active August 19, 2018 09:17 — forked from anonymous/talking-to-transwomen.md
How to talk to and about trans women

How to talk to me

As of now, I ask that you try to call me by my preferred name, and refer to me using she, her, and hers.

Talking to someone who isn't conforming to gender expectations can be confusing. Here's how to make it easy:

  • If you mess up my name or pronouns at first, just acknowledge it and move on.
  • I may correct you, either directly, or by saying "who?" This doesn't mean I think you are being malicious. It's a process for all of us.
  • I may misgender myself sometimes. Habits can be cruel. I'll try to also acknowledge it and move on.
  • I'm (usually) not as fragile as people think. Treat me like any other woman.
@thejsa
thejsa / discord-aero.css
Created June 1, 2018 01:35
Windows Aero theme for Discord
/** remove grey backgrounds **/
.theme-light .friends-table, .theme-light .messages-wrapper, .theme-light .chat, .channels-Ie2l6A, .guilds-wrapper, .container-2lgZY8, .theme-light .layer-3QrUeG, .theme-light .layers-3iHuyZ, .theme-light .typing-2GQL18,
.theme-light .members-1998pB, .theme-light .chat>.content, .theme-light .title-3qD0b-, .container-PNkimc, .channels-Ie2l6A, #app-mount, .theme-light .chat form, .container-2Thooq, .theme-light .headerBar-UHpsPw,
.theme-light .friends-table .messages .divider:before, .theme-light .friends-table .messages .divider span, .theme-light .messages-wrapper .messages .divider:before, .theme-light .messages-wrapper .messages .divider span, .theme-light #friends
{
background:rgba(0,0,0,0) !important;
}/** remove grey backgrounds **/
.theme-dark .friends-table, .theme-dark .messages-wrapper, .theme-dark .chat, .channels-Ie2l6A, .guilds-wrapper, .container-2lgZY8, .theme-dark .layer-3QrUeG, .theme-dark .layers-3iHuyZ, .theme-dark .typing-2GQL18,
.theme-dark .members-199

Keybase proof

I hereby claim:

  • I am thejsa on github.
  • I am thejsa (https://keybase.io/thejsa) on keybase.
  • I have a public key ASC_sLiAiGOgueg14YvzVpgmkO-E6dR3kOS-EeAp_DdqTgo

To claim this, I am signing this object:

@thejsa
thejsa / .htaccess
Created January 28, 2018 21:55
Quick and dirty Flipnote Hatena server (with query string sessions + basic authentication)
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /index.php [L]
/* This will automatically update your theme to the latest release */
@import "https://rawgit.com/AlexFlipnote/Discord_Theme/master/theme.css";
/*
How to add plugins :D
1. Just add any @import from either my PLUGINS.md file or find some other @import stuff
2. Add them under this comment
3. Enjoy some fun stuff :P
*/
<?php
/* Xbox 360 Xval Decryption
* Ported to PHP (from C#) by Brandon Wilson
* Ported to C# (from...something) by CLK
* Original code by Redline99: http://www.xboxhacker.org/index.php?topic=16401.msg125000#msg125000
*/
function decryptXValue($serial, $xval)
{
$deskey = @substr(@hash_hmac("sha1", "XBOX360SSB", $serial."\0", TRUE), 0, 8);