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
| #!/bin/bash | |
| # ============================================================================= | |
| # NoPorts sshnpd Setup Script | |
| # ============================================================================= | |
| # Installs NoPorts via apt, enrolls an APKAM key, writes | |
| # /etc/noports/sshnpd.yaml, and starts sshnpd in the foreground. | |
| # | |
| # Intended to run as root at container start (Ubuntu Docker image). | |
| # | |
| # Required environment variables: |
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 python3 | |
| """ | |
| at_doctor - atPlatform Environment Diagnostic Tool (Python Version) | |
| A diagnostic tool for checking if your environment is ready to run atPlatform applications. | |
| """ | |
| import argparse | |
| import socket | |
| import ssl |
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
| services: | |
| atplatform-portable: | |
| image: atsigncompany/ephemeral | |
| # Add if you need more environment variables | |
| # env_file: "./atplatform.env" | |
| environment: | |
| FIRST_PORT: 2500 | |
| # Edit if you have a custom DNS domain | |
| DNS_FQDN: "vip.ve.atsign.zone" | |
| ports: |
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
| Send this URL to the recipient: | |
| https://furl.host/furl.html?atSign=@colin&key=_furl_d34be590cbfd4c3f911948f6f820fe02 | |
| They will need the PIN: D[T?S7b)b | |
| PIN expires: 2025-09-03 22:22:39 (TTL: 6d) |
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
| try { | |
| await atClient.put( | |
| mutexKey, | |
| 'lock', | |
| putRequestOptions: pro, | |
| ); | |
| logger.shout('😎 Will handle request from ${notification.from}' | |
| '; acquired mutex $mutexKey'); | |
| } catch (err) { | |
| if (err.toString().toLowerCase().contains('immutable')) { |
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
| #!/bin/sh | |
| # disable "var is referenced but not assigned" warning for template | |
| # shellcheck disable=SC2154 | |
| # Configuration of sshnpd service | |
| # This script is a template for the sshnpd background service. | |
| # You can configure the service by editing the variables below. | |
| # This service file covers the common configuration options for sshnpd. | |
| # To see all available options, run `sshnpd` with no arguments. |
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
| checknetisolation LoopbackExempt -a -n="Microsoft.RemoteDesktop_8wekyb3d8bbwe" |
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
| import 'dart:ffi'; | |
| import 'dart:io'; | |
| import 'package:ffi/ffi.dart'; | |
| import 'package:libssh_binding/libssh_binding.dart'; | |
| import 'dart:ffi' as ffi; | |
| import 'package:path/path.dart' as path; | |
| void main() async { | |
| // Some vars (change to suit) | |
| String remoteFile = "/home/cconstab/testfile"; |
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
| sequenceDiagram | |
| participant @alicePhone | |
| participant @aliceTablet | |
| participant @aliceSecondary | |
| participant @bobSecondary | |
| participant @bobPhone | |
| @alicePhone ->> @aliceSecondary: lookup:publicKey@bob | |
| @aliceTablet ->> @aliceSecondary: lookup:publicKey@bob | |
| Note left of @alicePhone: AESkey Generated if not available locally<br/> @bobRSApublicKey<br/>used to encrypt<br/>AESkey | |
| Note left of @aliceTablet: AESkey Generated if not available locally<br/> @bobRSApublicKey<br/>used to encrypt<br/>AESkey |
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
| void main() { | |
| String trueString = "true"; | |
| String falseString = "false"; | |
| if (!falseString.parseBool()) { print("falseString is:false");} | |
| if (trueString.parseBool()) { print("trueString is: true");} | |
| } | |
NewerOlder