- Adopted from: https://stubby4j.com/docs/admin_portal.html
- Inspired by Swagger API docs style & structure: https://petstore.swagger.io/#/pet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Configuration with additional popup keys (swipe up from an extra key) | |
| extra-keys = [ \ | |
| [ \ | |
| {key: ESC, display: ""}, \ | |
| {key: ESC, popup: {macro: "CTRL f d", display: "tmux exit"}}, \ | |
| {key: CTRL, popup: {macro: "CTRL f BKSP", display: "tmux ←"}}, \ | |
| {macro: "ESC :q ENTER", display: ":q", popup: {macro: "ALT g", display: A-g}}, \ | |
| {macro: 'y :%s/ CTRL r " //gic LEFT LEFT LEFT LEFT', display: ":%s"}, \ | |
| {macro: "cd SPACE TAB", display: "cd", popup: {macro: "ALT g", display: A-g}}, \ | |
| {macro: 'CTRL r', display: "<C-r>"}, \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Configuration with additional popup keys (swipe up from an extra key) | |
| extra-keys = [ \ | |
| [ \ | |
| {key: ESC, display: ""}, \ | |
| {key: ESC, popup: {macro: "CTRL f d", display: "tmux exit"}}, \ | |
| {key: CTRL, popup: {macro: "CTRL f BKSP", display: "tmux ←"}}, \ | |
| {macro: "ESC :q ENTER", display: ":q", popup: {macro: "ALT g", display: A-g}}, \ | |
| {macro: ",t", display: "tree", popup: {macro: ", n", display: "focus"}}, \ | |
| {macro: 'y :%s/ CTRL r " //gic LEFT LEFT LEFT LEFT', display: ":%s"}, \ | |
| {macro: "exa SPACE --long SPACE --tree ENTER", display: "exa", popup: {macro: "lsd SPACE --long SPACE --tree ENTER", display: "lsd"}}, \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // vars to keep track of the "mouse" during touchmove | |
| var mouseX; | |
| var mouseY; | |
| // create the custom events so you can dispatch them later | |
| var touchover = new Event("touchover"); | |
| var touchout = new Event("touchout"); | |
| var touchup = new Event("touchup"); | |
| var element = document.getElementById("dropTargetDivName"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """Extract the public key from the private key and write to a file. | |
| """ | |
| from Crypto.Hash import SHA256 | |
| from Crypto.Signature import PKCS1_v1_5 | |
| from Crypto.PublicKey import RSA | |
| with open("private_key.pem", "r") as src: | |
| private_key = RSA.importKey(src.read()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Generate RSA private key | |
| openssl genrsa -out private_key.pem 1024 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/data/data/com.termux/files/usr/bin/env python | |
| import sys | |
| from wand.image import Image | |
| filename = sys.argv[1] | |
| img = Image(filename=filename) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Configuration with additional popup keys (swipe up from an extra key) | |
| extra-keys = [ \ | |
| [ \ | |
| {macro: "", display: "", popup: {macro: "", display: ""}}, \ | |
| {macro: "", display: "", popup: {macro: "", display: ""}}, \ | |
| {macro: "CTRL e CTRL u vw SPACE ENTER", display: "𝚠𝚔𝚒", popup: \ | |
| {macro: "CTRL e CTRL u vwfunc ENTER", display: "vw📁"}}, \ | |
| {macro: "", display: "", popup: {macro: "", display: ""}}, \ | |
| {macro: "", display: "", popup: {macro: "", display: ""}}, \ | |
| {macro: "", display: "", popup: {macro: "", display: ""}}, \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [[ | |
| {macro: "", display: "", popup: {macro: "", display: ""}}, | |
| {macro: "ESC", display: "𝙴𝚂𝙲", popup: {macro: "", display: ""}}, | |
| {macro: "F1", display: "F1", popup: {macro: "", display: ""}}, | |
| {macro: "F2", display: "F2", popup: {macro: "", display: ""}}, | |
| {macro: "F3", display: "F3", popup: {macro: "", display: ""}}, | |
| {macro: "F4", display: "F4", popup: {macro: "", display: ""}}, | |
| {macro: "F4", display: "F5", popup: {macro: "", display: ""}}, | |
| {macro: "F6", display: "F6", popup: {macro: "", display: ""}}, | |
| {macro: "F7", display: "F7", popup: {macro: "", display: ""}}, |