Skip to content

Instantly share code, notes, and snippets.

@bleonard252
bleonard252 / upload.py
Last active August 6, 2023 15:47
Python file for Titan uploads on GmCapsule
#!/usr/bin/env python3
# upload.py - Titan script for remote management
# Copyright (c) 2023 Blake Leonard
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@bleonard252
bleonard252 / README.md
Last active August 1, 2022 18:52
Minetest Lua library files

Minetest Lua library files

These files are built for use with the VS Code Lua language server so that you can take advantage of Intellisense, built-in API documentation, and type hints.

Hints for use:

  • Please don't bundle this with your mods, because that's an unnecessary bloat on your mod's size, but feel free to bundle it with relevant VS Code extensions.
  • Do not import it, that'll screw up your mod and every other mod and maybe the engine itself as soon as your mod loads. Use the ---@module file annotation, the library setting, or (preferably) an extension that has the libraries bundled.

Note that, at present, the files only cover Minetest 5.5.1 and the (server-side) Modding API. It does not and probably will not support texture modifiers or formspecs; for that, you should use the [Minetest Tools extension](https://marketplace.visualstudio.com/items?itemName

@bleonard252
bleonard252 / main.dart
Created January 14, 2022 02:27
Aqua chat format demo
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
import 'dart:async';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@bleonard252
bleonard252 / GAID.ipynb
Last active August 7, 2020 03:02
Generic Anonymous ID
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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">
@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;
FROM alpine:latest
RUN apk add openssh
ENV SSHUSER username
ENV SSHHOST localhost
ENV SSHPORT 22
CMD ssh ${SSHUSER}@${SSHHOST} -p ${SSHPORT}

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
Verifying my Blockstack ID is secured with the address 126oZ9w4UNMhzo4uJuSPTqrpJ8MkUeyTN8 https://explorer.blockstack.org/address/126oZ9w4UNMhzo4uJuSPTqrpJ8MkUeyTN8
@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