| Action | Shortcut |
|---|---|
| Scroll line up | ctrl+shift+up (also ⌥+⌘+⇞ and ⌘+↑ on macOS) |
| Scroll line down | ctrl+shift+down (also ⌥+⌘+⇟ and ⌘+↓ on macOS) |
| Scroll page up | ctrl+shift+page_up (also ⌘+⇞ on macOS) |
| Scroll page down | ctrl+shift+page_down (also ⌘+⇟ on macOS) |
Note: The following content is a written version of the [XDR spec][xdr-spec]
As of [js-soroban-client v0.1.3][js-client] and [soroban-cli v0.2.1][soroban-tools] it's still really funny to work with custom types required for soroban so I will explain to the best of my knowledge how to build a custom Soroban Type in JSON format (but you should probably ask @tdep...)
Note: many of these types actually have helper functions and can be entered
We can export a mermaid diagram to PNG very simply using the official Mermaid CLI Tool.
Installation via npm
npm i -g mermaid.cliUsage:
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
| ["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", | |
| "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", | |
| "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", | |
| "BN", "BG", "BF", "BI", "CV", "KH", "CM", "CA", "KY", "CF", "TD", | |
| "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", | |
| "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", | |
| "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", | |
| "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", | |
| "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", | |
| "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", |
You will need:
This guide is based on Ubuntu, for other OS, use their package manager instead.
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
| # Reliable persistent SSH-Tunnel via systemd (not autossh) | |
| # https://gist.github.com/guettli/31242c61f00e365bbf5ed08d09cdc006#file-ssh-tunnel-service | |
| [Unit] | |
| Description=Tunnel for %i | |
| After=network.target | |
| [Service] | |
| User=tunnel | |
| ExecStart=/usr/bin/ssh -o "ExitOnForwardFailure yes" -o "ServerAliveInterval 60" -N tunnel@%i |
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
| """ | |
| This file contains a middleware and functions that makes possible to access | |
| requests globally. This is very usefull when you need to check the current user | |
| or some request headers in model's save() method, for example. | |
| The middleware will store the current request in the _requests dictionary, so | |
| you can use it later calling the get_current_requet or get_current_user | |
| functions. | |
| You just have to add the middleware to the MIDDLEWARE list (at the bottom is | |
| ok), and the use the provided functions to access the request data. | |
| """ |
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
| # To regenerate the test key and certificates | |
| # Generate an RSA private key and convert it to PKCS8 wraped in PEM | |
| openssl genrsa 2048 | openssl pkcs8 -topk8 -inform pem -outform pem -nocrypt -out rsa.key | |
| # Generate a certificate signing request with the private key | |
| openssl req -new -key rsa.key -out rsa.csr | |
| # Sign request with private key | |
| openssl x509 -req -days 10000 -in rsa.csr -signkey rsa.key -out rsa.crt | |
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 | |
| set -e | |
| echo "install docker bash completion" | |
| curl -L https://raw.githubusercontent.com/docker/docker/v$(docker version --format '{{.Server.Version}}')/contrib/completion/bash/docker -o /etc/bash_completion.d/docker | |
| echo "install docker-compose bash completion" | |
| curl -L https://raw.githubusercontent.com/docker/compose/$(docker-compose version --short)/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose | |
| echo ".... done!" |
NewerOlder