Skip to content

Instantly share code, notes, and snippets.

@bshambaugh
bshambaugh / gist:080466728a846fd9fcb4e2c698c700c5
Created December 19, 2022 20:40
install owncloud on computer
https://doc.owncloud.com/server/next/admin_manual/installation/manual_installation/manual_installation_apache.html
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-20-04
ERROR 1045 (28000): Access denied for user 'ubuntu'@'localhost' (using password: NO)
@bshambaugh
bshambaugh / gist:eb2c994ea7c0840eea2671dcd20bf415
Created December 18, 2022 22:16
chacha ahead algorithms and JWE links
Chacha derived AEAD algorithms in JSON Object Signing and Encryption
(JOSE)
draft-amringer-jose-chacha-02
https://datatracker.ietf.org/doc/html/draft-amringer-jose-chacha-02
https://github.com/decentralized-identity/didcomm-messaging/issues/187
https://github.com/panva/jose-chacha/issues/1
https://pkg.go.dev/github.com/hyperledger/aries-framework-go/pkg/crypto/tinkcrypto
@bshambaugh
bshambaugh / gist:4d08b03f95e3ef077e8719d7146e72c8
Created December 18, 2022 22:13
connecting android phone on linux
https://www.howtoforge.com/tutorial/how-to-connect-your-android-device-on-linux/
https://forum.xda-developers.com/t/how-to-setup-mtp-under-ubuntu.2223401/
@bshambaugh
bshambaugh / gist:6eb469309e3bcfffac41712a3eb06322
Created December 14, 2022 17:12
description_of_did_jwt.txt from /home/ubuntu/Documents
'ECDH-1PU+XC20PKW'
ECDH-ES+A256KW
DID you know that I've been working to amend the did-jwt library to include support for the secp256r1 curve? Here are some interpretations of the library I chose to JOT down:
- folder signers ts files : signs an arbitrary data payload with a private key, both formatted as Uint8Arrays . returns a string of some sort.
- folder blockchains ts files: coverts public keys to Bitcoin. Cosmos, and Ethereum URIs following bip122, cosmos (bech32 encoding of ripemd hash of sha256 hashed compressed public key), and eip155.
The first:
0
0
0
0
The second:
@bshambaugh
bshambaugh / gist:e2f01a77648cae5723c921f315b07afa
Created December 11, 2022 18:14
char sequence compare and hexStringToBytes .... char_string_util
#include <string.h>
#include <stdbool.h>
// this was added for printing out for testing purposes...
#include <stdio.h>
unsigned char nibble(char c)
{
if (c >= '0' && c <= '9')
return c - '0';
@bshambaugh
bshambaugh / gist:68c89a51834f74b28cc2dabca7bc61f8
Created December 11, 2022 16:54
simple program that parses a string into substrings .... ~/Downloads/testCLibrary/substringProto3.c
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
char* substring(const char *string, int position, int length)
{
int c;
char *p = (char *)malloc(sizeof(char)*(length+1));
if(p == NULL)
https://www.programmingsimplified.com/c/source-code/c-substring , gives a useful function
char* substring(const char *string, int position, int length)
{
int c;
char *p = (char *)malloc(sizeof(char)*(length+1));
if(p == NULL)
{
printf("Unable to allocate memory.\n");
exit(1);
@bshambaugh
bshambaugh / gist:507ea768fb7a1458862f84c6ecbac1ca
Created December 10, 2022 03:22
DIF Interop WG - Nov 30th ...Human Colossus Foundation
WEBVTT
Lamari Lavarrette (DIF):
Hi Paul, how are you? This is Lamari. I'm the community manager here at DIF.
Paul Knowles:
Hi Lamari, nice to meet you.
Lamari Lavarrette (DIF):
Nice to meet you as well. Uhm...So, Kaliya should be getting on, uhm, in a minute here. .so.and we're just waiting here for other people to get on.
@bshambaugh
bshambaugh / gist:d98bea1fa134d7dbb034445f68058c9c
Created December 4, 2022 16:12
fix the unitialized value jump
==32719== 1 errors in context 1 of 4:
==32719== Conditional jump or move depends on uninitialised value(s)
==32719== at 0x4C34996: strcat (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32719== by 0x1174C2: mergeCharArray(int, unsigned char*, char*) (in /home/ubuntu/Downloads/blinky_utils/.pio/build/native/program)
==32719== by 0x117817: mergeCharArray_merge_a_char_array_Test::TestBody() (in /home/ubuntu/Downloads/blinky_utils/.pio/build/native/program)
==32719== by 0x14C231: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (in /home/ubuntu/Downloads/blinky_utils/.pio/build/native/program)
==32719== by 0x146246: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (in /home/ubuntu/Downloads/blinky_utils/.pio/build/native/program)
==32719== by 0x128ADD: testing::Test::Run() (in /home/ubuntu/Downloads/blinky_ut