Skip to content

Instantly share code, notes, and snippets.

@bleonard252
bleonard252 / README.md
Created September 21, 2018 23:29
SJCL Multipage Encrypt (Doubtmode)

Doubtmode

"Doubtmode" is my name for a method of page encryption based on the Stanford Javascript Crypto Library, also known as SJCL. You can configure it however you want, but it must have a password to decrypt it.

How to use (Single page)

To start, just slip the following into the <head> anywhere (it doesn't matter):

<script src='https://bitwiseshiftleft.github.io/sjcl/sjcl.js'></script>
@bleonard252
bleonard252 / cmsilver.md
Created September 23, 2018 23:54
Commonmark Silver - CommonMark extension
Error in user YAML: (<unknown>): did not find expected key while parsing a block mapping at line 1 column 1
---
author: bleonard252
title: Commonmark Silver
see-also: [Commonmark](commonmark.md)
---

CommonMark Silver

CommonMark Silver is an extension to the Commonmark syntax and functionality. It provides the means to run full websites with dynamic content and custom styling. This document shows changes between CommonMark and CommonMark Silver.

No HTML

@bleonard252
bleonard252 / december.html
Last active November 17, 2018 16:48
December: for config.jsons
<script>
var ianuam = {}
</script>
<div id="croissant_december">
<form id="chocolate_december">
<p><input type=checkbox january="Gateway.Writeable" id="writeable" /><label for="writeable">Writeable Gateway</label></p>
<p><input type=checkbox january="experiments.pubsub" id="pubsub" /><label for="pubsub">Publish/Subscribe (Pub/Sub)</label></p>
<input type=button value="Save" onclick="fsubmit_december('chocolate_december',ianuam)" />
</form>
</div>
@bleonard252
bleonard252 / ippd-whitepaper.md
Last active November 17, 2018 16:55
Inter-Planetary Processing Definition

InterPlanetary Processing Definition

The InterPlanetary Processing Definition is a file that determines how to process or handle other files on the network. It fulfills the purpose of a backend without the need for an actual backend.

Use Cases

  1. Say, for example, you want to have a Python script handle posting to a blog. You might use such a file as this:
#!ippd
type: py #python works too
apply-to: .post.py
@bleonard252
bleonard252 / github.css
Last active May 5, 2019 17:07
tasty css
@font-face {
font-family: octicons-link;
src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQyWe1smVPy/Lt7Kc+0vWY/gAgIIEqAN9we0pwKXreiMasxvabDQMM4riO+qxM2ogwDGOZTXxwxDiycQIcoYFBLj5K3EIaSctAq2kTYiw+ymhce7vwM9jSqO8JyVd5RH9gyTt2+J/yUmYlIR0s04n6+7Vm1ozezUeLEaUjhaDSuXHwVRgvLJn1tQ7xiuVv/ocTRF42mNgZGBgYGbwZOBiAAFGJBIMAAiz
Verifying my Blockstack ID is secured with the address 126oZ9w4UNMhzo4uJuSPTqrpJ8MkUeyTN8 https://explorer.blockstack.org/address/126oZ9w4UNMhzo4uJuSPTqrpJ8MkUeyTN8

Keybase proof

I hereby claim: * I am bleonard252 on github. * I am bleonard252 (https://keybase.io/bleonard252) on keybase. * I have a public key ASDNAXhgerdknFSobZC4w9M7MZMz_SqDcwaAP2911tZAxAo To claim this, I am signing this object:

{   "body": {     "key": {       "eldest_kid": "0120cd0178607ab7649c54a86d90b8c3d33b319333fd2a837306803f6f75d6d640c40a",       "host": "keybase.io",       "kid": "0120cd0178607ab7649c54a86d90b8c3d33b319333fd2a837306803f6f75d6d640c40a",       "uid": "92e49dc204e1fd975b587b151b46bf19",       "username": "bleonard252"     },     "merkle_root": {       "ctime": 1558610013,       "hash": "896fa590f9e5952a15a4c09ec1e9625abfe01f49212c5538250cf8b74fffa88c9d8d11342fb6b9161f2777e47b3e799d5657ffaf23640a8b12eaaf6776f8944c",       "hash_meta": "d6830918de3f839d02f4601865ab156d145d2b0d024ac383133e8f07c2e834ec",       "seqno": 5432675     },     "service": {       "entropy": "o/Jz9kNTXDHcy+fEJQGbxVdQ",       "name": "github",       "username": "bleonard252"     },     "ty
FROM alpine:latest
RUN apk add openssh
ENV SSHUSER username
ENV SSHHOST localhost
ENV SSHPORT 22
CMD ssh ${SSHUSER}@${SSHHOST} -p ${SSHPORT}
@bleonard252
bleonard252 / file.html
Created February 14, 2020 01:04
Caddy http.login / loginsrv Example Template File
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link uic-remove rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link uic-remove rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-social/5.1.1/bootstrap-social.min.css">
<link uic-remove rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css">
<style>
.vertical-offset-100{
padding-top:100px;
@bleonard252
bleonard252 / viewer.html
Last active June 27, 2020 10:53
Myfile viewer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Myfile Tester/Viewer/Thing</title>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/abodelot/jquery.json-viewer@master/json-viewer/jquery.json-viewer.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/abodelot/jquery.json-viewer@master/json-viewer/jquery.json-viewer.css">