All your notes, scripts, config files and snippets deserve version control and tagging!
gist
is a simple bash script for gist management.
It is lightweight(~700LOC) and dependency-free! Helps you to boost coding workflow.
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
/** | |
* 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 | |
}) |
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
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(); |
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
#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 |
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
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 |
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 | |
# | |
# 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}) |
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
Show hidden characters
{ | |
"folders": [ | |
{ | |
"name": "adapters", | |
"path": "open-plus-integrator-adapters" | |
}, | |
{ | |
"name": "integrator", | |
"path": "open-plus-integrator-backend" | |
}, |
OlderNewer