Skip to content

Instantly share code, notes, and snippets.

{
"folders": [
{
"name": "adapters",
"path": "open-plus-integrator-adapters"
},
{
"name": "integrator",
"path": "open-plus-integrator-backend"
},
@thiagosouza
thiagosouza / repl.md
Last active April 29, 2024 13:56
REPL

REPL

image

Javascript REPL in VSCode

Name: JavaScript REPL

Id: achil.vscode-javascript-repl

@thiagosouza
thiagosouza / README.md
Created March 5, 2024 03:22 — forked from typebrook/README.md
A bash script for gist management #bash #gist
@thiagosouza
thiagosouza / generate-bitcoin-address.sh
Last active January 24, 2024 02:29 — forked from colindean/generate_bitcoin_address.sh
Bitcoin address generator in bash
#!/bin/bash
#
# This is free and unencumbered software released into the public domain.
#
# Requires bc, dc, openssl, xxd
# sudo apt-get install bc dc openssl xxd
#
# by grondilu from https://bitcointalk.org/index.php?topic=10970.msg156708#msg156708
base58=({1..9} {A..H} {J..N} {P..Z} {a..k} {m..z})
@thiagosouza
thiagosouza / Bitcoin Full Node Setup via Bash.txt
Last active November 17, 2023 10:38
[Bitcoin Full Node Setup via Bash] Bitcoin Full Node setup install #bash #bitcoin #setup
https://gist.github.com/System-Glitch/cb4e87bf1ae3fec9925725bb3ebe223a
How to Bitcoin regtest
Setup
Download bitcoin core
Unpack it wherever you want.
Create a directory named data inside the unpacked folder.
Create a directory named .bitcoin inside your home folder: mkdir ~/.bitcoin
Copy bitcoin.conf into ~/.bitcoin
Copy rpcauth into <unpacked_folder>/share/rpcauth
@thiagosouza
thiagosouza / zsh setup.sh
Last active November 1, 2021 00:36
[Zsh] Zsh terminal setup and usage #terminal by @thiagosouza
#Zshell
#http://www.zsh.org/
sudo apt-get install -y zsh
#post-install instructions
apt-cache show fzf
#debian info
cat /usr/share/doc/fzf/README.Debian
@thiagosouza
thiagosouza / postman tests - pos-request.ts
Last active April 2, 2024 14:11
[Postman Tests] Postman test suite config and code examples #postman #test
pm.test("Successful POST request", function () {
pm.expect(pm.response.code).to.be.oneOf([200, 201, 202]);
});
pm.test("Response time is less than 10s", function () {
pm.expect(pm.response.responseTime).to.be.below(10000);
});
pm.test('Response has all properties', function () {
let data = pm.response.json();
@thiagosouza
thiagosouza / app.ts
Created January 20, 2021 00:07
[Airtable API] Airtable API call #airtable
/**
* This code bellow is an Airtable implementation and should be placed there with the proper params for tables and fields
*/
let table = base.getTable("users");
let query = await table.selectRecordsAsync();
let recordsToUpdate = query.records.filter(record => {
let notified = (record.getCellValue("notified") !== null && record.getCellValue("notified").name == "true") ? true : false;
return !notified
})
@thiagosouza
thiagosouza / synchronous vs asynchronous promises.js
Last active January 14, 2021 15:25
[Javascript / sync vs async promises] Synchronous vs Asynchronous Promises in Javascript #javascript
//asynchronous
; (async () => {
console.time('testAsynchronous')
let start = new Date()
let hrstart = process.hrtime()
let testAsync = await Promise.all([
Promise.resolve(1),
new Promise(async (resolve, reject) => {