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");} | |
} | |
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
Get Qemu | |
https://www.qemu.org/download/ | |
Get ubuntu for risc v5 - I choose ubuntu-20.04.4-preinstalled-server-riscv64+unmatched.img | |
https://wiki.ubuntu.com/RISC-V | |
Uncompress with xz and give yourself some more space - I did this using a WSL 2 ubuntu shell as it was easier to use the tools from linux | |
xz -dk ubuntu-20.04.4-preinstalled-server-riscv64+unmatched.img.xz | |
qemu-img resize -f raw ubuntu-20.04.4-preinstalled-server-riscv64+unmatched.img + 25G | |
Now you need some firmware and a kernel for risc V which can be downloaded from here |
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 'package:at_lookup/at_lookup.dart'; | |
import 'package:at_onboarding_cli/at_onboarding_cli.dart'; | |
import 'package:at_client/at_client.dart'; | |
import 'package:at_commons/at_commons.dart'; | |
void main() async { | |
OnboardingService onboardingService = OnboardingService('blackdeath'); | |
await onboardingService.authenticate(); | |
AtLookupImpl atLookup = onboardingService.getAtLookup(); | |
var keys = await atLookup.scan(auth: true); |
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:async'; | |
import 'package:http/http.dart' as http; | |
import 'dart:convert'; | |
import 'package:flutter/material.dart'; | |
Future<void> main() async { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatefulWidget { |
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 'package:http/http.dart' as http; | |
import 'dart:convert'; | |
void main() async { | |
PublicHamRadio hamradio = PublicHamRadio(radioName: 'ic7100'); | |
await lookupRadio('ai6bh','ic7100',hamradio); | |
print(hamradio.vfoaFrequency); | |
} |
NewerOlder