Skip to content

Instantly share code, notes, and snippets.

@LucasLarson
LucasLarson / keys.pub
Created Jan 31, 2021
keys.pub self-identity: re-voilà moi
View keys.pub
BEGIN MESSAGE.
pPurSRDjhu4V5sQ FisPoPjh3YzIDWp mnPLFauJ48y0ohI Y3PLWhQrAmobbsc
tk7BT5uLlEMlgS0 COveWvl2ViSTCKq 6Xr2MZHgg79rOtz kMRtTwIYQyV5vW0
uDmrxHUBvCBdHkO U7i9tEPfKKRCIIZ JmtqAquW2kjszvO 3b0iQY2BUV9smnB
DhcgD9TC88KQZp3 jzLxunLuFUPGr3g o3YO90aLMzWSiL.
END MESSAGE.
@LucasLarson
LucasLarson / gtag.js
Last active Oct 11, 2020
Google Analytics local `gtag.js` but less unreadable
View gtag.js
window.dataLayer = window.dataLayer || []
function gtag () {
window.dataLayer.push(arguments)
}
gtag(
'js',
new Date()
)
gtag(
'config',
View stdc++.h
// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2020 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.
@LucasLarson
LucasLarson / 1Password–Microsoft.md
Last active Mar 13, 2021
Microsoft websites for 1Password
View 1Password–Microsoft.md

This list doesn’t include all @Microsoft properties, just second-level domains that load on HTTPS, plus microsoftonline.com and windows.net, which load on HTTPS with some subdomains only.

I collected them by combining two Office configuration files12 and regexing the domains only, then keeping only the second-level domains that didn’t fail on HTTPS.

These are in alphabetical order except the first entry, whence @1Password supplies its rich icon.

https://microsoft.com
https://azure.com
https://bing.com
https://dynamics.com

@LucasLarson
LucasLarson / www±.js
Last active Nov 25, 2019
www±: A bookmarklet to toggle between a website’s 𝚠𝚠𝚠 and 𝚗𝚘-𝚠𝚠𝚠 URIs
View www±.js
/**
* www±
* v. 0.1
*
* Description: This is the JavaScript behind a bookmarklet to move back and
* forth between the 𝚠𝚠𝚠 and 𝚗𝚘-𝚠𝚠𝚠 versions of a
* website’s URI.
*
* Installation: See bottom
*
@LucasLarson
LucasLarson / mementos.txt
Last active Nov 29, 2020
Find Mementos: a repaired bookmarklet to search the UK Web Archive, whose results include those of the Internet Archive
View mementos.txt
The UK Web Archive’s recommended bookmarklet no longer works because it escapes the referer’s address.
Then in 2020, they stopped serving their site over HTTPS (!).
Use this code instead as your bookmarklet’s address:
javascript:/* eslint-env browser */location.href='http://webarchive.org.uk/mementos/search/'+location.href
@LucasLarson
LucasLarson / cspheader.php
Last active Apr 9, 2019 — forked from rattfieldnz/cspheader.php
Content Security Protocol: LAMP-flavored CSP header for Content-Security-Policy
View cspheader.php
<?php
/**
* @author Dave LaRonde
* @author Lucas Larson
* @link https://gist.github.com/phpdave/24d879514e7411047267
*/
// Content Security Protocol (CSP) works only in modern browsers Chrome ≥25,
// Firefox ≥23, Safari ≥7
@LucasLarson
LucasLarson / mars.asm
Created Mar 27, 2019
MIPS MARS blue-on-yellow bitmap
View mars.asm
#-------------------\
# |
# MIPS MARS Bitmap |
# |
# Lucas Larson |
# 2019-03-26 |
# |
# # # # # # # # # # /
.data
View Verifying my Peepeth
Verifying my identity on Peepeth.com 0x2b4ffc87584f860a17ec7f143819d18c6df81f39
@LucasLarson
LucasLarson / icons.scss
Last active Nov 10, 2018 — forked from mrmartineau/icons.scss
SVG social icons
View icons.scss
// 3rd party brand colors - find more at brandcolors.net
$color-twitter : #55acee;
$color-facebook : #3b5998;
$color-youtube : #cd201f;
$color-pinterest : #bd081c;
$color-instagram : #e4405f;
$color-whatsapp : #25D366;
.socialCTA {
background-color: rgba(#fff, .2);