Skip to content

Instantly share code, notes, and snippets.

View l1n's full-sized avatar

Nova l1n

View GitHub Profile
@l1n
l1n / webp2png-userscript.js
Created November 10, 2024 01:29
Adds a download as PNG option to images, transcode using canvas.
// ==UserScript==
// @name WebP to PNG Converter
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Adds context menu option to convert and download WebP images as PNG
// @match *://*/*
// @grant GM_registerMenuCommand
// @grant GM_xmlhttpRequest
// @grant GM_openInTab
// @grant GM_notification
#!/bin/perl
use strict;
use warnings;
use utf8;
use JSON;
use HTML::WikiConverter;
my $DEBUG = 0;
my $wc = new HTML::WikiConverter( dialect => 'Markdown', encoding => 'utf8', link_style => 'inline' );
my ($start_date, $end_date);
$start_date = `date +%s`;
<strong>There’s no pwnage like self-pwnage</strong></p><p>Remember when I covered the not-amazing Twitter hack last month and I suggested that maybe<em> </em>whoever did it <a href="https://au.news.yahoo.com/twitter-bitcoin-scam-social-engineering-hack-access-193040357.html" rel="nofollow noopener" target="_blank">just really sucked at crime</a>? Because who would blow up that absolute gold mine of access and information so fast *and* in the light of day. Yep, that.&nbsp;</p><p>So the OPSEC Dumbass Of The Year award goes to… Florida Man. I mean, Florida Boy. Hop on the boat: we’re touring Dipshit Island.</p><p>When Twitter's “hack” happened, thought Leader Infosec Twitter went nuclear rumoring nation-state attacks. Brian Krebs got so hard he doxed the wrong guy. (Again.) But one shared truth across the board was that <a href="https://www.engadget.com/twitter-hack-bitcoin-money-laundering-140031258.html" rel="nofollow noopener" target="_blank">those Bitcoin transactions were going to be traced</a>. I mean, onl
@l1n
l1n / keybase.md
Created September 11, 2019 18:38

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@l1n
l1n / email-message.js
Created October 13, 2017 20:49 — forked from patrickcoombe/email-message.js
JSON-LD markup for rich email messages
<script type="application/ld+json">
{
"@context":"http://schema.org",
"@type": "EmailMessage",
"description": "View this Pull Request on GitHub",
"action": {
"@type": "ViewAction",
"url":"https://github.com/perma-id/w3id.org/pull/47",
"name":"View Pull Request"
}

Keybase proof

I hereby claim:

  • I am l1n on github.
  • I am l1n (https://keybase.io/l1n) on keybase.
  • I have a public key whose fingerprint is EA63 9924 C2BA AA4B F249 1E96 6CFB 9460 79FD 5D50

To claim this, I am signing this object:

from datetime import datetime
from math import *
#result in hours
def get_LST(datestr,long):
dt1 = datetime.strptime(datestr,"%Y %m %d %H %M %S")
dd=dt1-datetime(2000,1,1,0,0,0)
utc = dt1.hour+dt1.minute/60.0+dt1.second/(3600.0)
return ((100.46+0.985647*dd.total_seconds()/(86400.0)+long)/15.0 +utc)%24

Keybase proof

I hereby claim:

  • I am linuxgeek96 on github.
  • I am l1n (https://keybase.io/l1n) on keybase.
  • I have a public key whose fingerprint is EA63 9924 C2BA AA4B F249 1E96 6CFB 9460 79FD 5D50

To claim this, I am signing this object: