Skip to content

Instantly share code, notes, and snippets.

@mattcollier
mattcollier / path.md
Last active September 29, 2021 13:27 — forked from nex3/path.md

The PATH is an important concept when working on the command line. It's a list of directories that tell your operating system where to look for programs, so that you can just write script instead of /home/me/bin/script or C:\Users\Me\bin\script. But different operating systems have different ways to add a new directory to it:

Windows

  1. The first step depends which version of Windows you're using:
  • If you're using Windows 8 or 10, press the Windows key, then search for and
node_modules
.vscode
.clinic
@mattcollier
mattcollier / fetcherror.txt
Created July 22, 2020 19:19
fetch error rsvp
{
error: FetchError: request to https://wallet.qa.nacsav.com/rsvps failed, reason: Client network socket disconnected before secure TLS connection was established
at ClientRequest.<anonymous> (/root/45e61e69d31357cd42bf20e25a21d5cb/node_modules/node-fetch/dist/index.cjs:1221:11)
at ClientRequest.emit (events.js:314:20)
at ClientRequest.EventEmitter.emit (domain.js:486:12)
at TLSSocket.socketErrorListener (_http_client.js:469:9)
at TLSSocket.emit (events.js:314:20)
at TLSSocket.EventEmitter.emit (domain.js:486:12)
at emitErrorNT (internal/streams/destroy.js:100:8)
at emitErrorCloseNT (internal/streams/destroy.js:68:3)
@mattcollier
mattcollier / gist:db7e02f6dbf682827cb369600e091127
Created March 25, 2020 17:08
proper credential svip interop
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
{
"ex": "https://example.org/examples#",
"schema": "http://schema.org/",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"BachelorDegree": "ex:BachelorDegree",
"UniversityDegreeCredential": "ex:UniversityDegreeCredential",
"degree": "ex:degree",
@mattcollier
mattcollier / gist:4559c1e52becab86aa590a4ff2cff328
Created January 30, 2020 00:14
gnome update keys alt tab dconf
https://superuser.com/questions/394376/how-to-prevent-gnome-shells-alttab-from-grouping-windows-from-similar-apps
@mattcollier
mattcollier / gist:6b04f8fa98e52e82bf9f57c09b9eb697
Created January 26, 2020 16:39
fix amd screen tearing ubuntu rx570
# works on Ubuntu 19.10
sudo mkdir /etc/X11/xorg.conf.d
sudo nano /etc/X11/xorg.conf.d/20-amdgpu.conf
Section "Device"
Identifier "AMD"
Driver "amdgpu"
Option "TearFree" "true"
EndSection
{
"@context": "https://www.w3.org/2018/credentials/v1",
"type": "VerifiablePresentation",
"holder": "did:v1:test:nym:z6MkjrFvxZyHF6pNLqMynYSfL14oUkSPvENaqCUE2ygrtDNV",
"capability": [
{
"@context": "https://w3id.org/security/v2",
"id": "urn:zcap:z1AG2QMLAG894Wx8X1iYegUXQ",
"invoker": "did:key:z6MktVoCaFAcStwxYfqgVRWerky9kFk5adXRAsm3fPRES18g",
"delegator": "did:key:z6MktVoCaFAcStwxYfqgVRWerky9kFk5adXRAsm3fPRES18g",
@mattcollier
mattcollier / 10.60.80.30.txt
Created October 25, 2019 13:15
7e2690416d2ff26e5ea4278435ebb143fd062b30 (origin/latest-rules-10-23-2019, latest-rules-10-23-2019) 75fe5003c91786982e2c498b1a3b40376948720a (HEAD -> xblocktest, origin/xblocktest)
ubuntu@continuity-480a5e16-55b7-4a65-aeb0-8290640ee653:~$ cat /dev/shm/test-pass.log
> bedrock-ledger-consensus-continuity-test@0.0.1-0 test /mnt/db/test/bedrock-ledger-consensus-continuity/test
> redis-cli flushall && node --preserve-symlinks test test
OK
Running Test Frameworks...
Running Mocha tests...
curl -k -H "Accept: application/json" https://genesis.veres.one.localhost:42443/ledger-agents | json_pp
curl -k -H "Accept: application/json" https://genesis.veres.one.localhost:42443/ledger-agents/19ade110-2ef1-4194-ba53-df305a88c738/plugins/danube-agent -d {} | json_pp