Skip to content

Instantly share code, notes, and snippets.

View mikestaub's full-sized avatar
🐝
working hard on peapods.com

Michael Staub mikestaub

🐝
working hard on peapods.com
View GitHub Profile
const fetchRssFeed = async () => {
const response = await fetch(
"https://hnrss.org/frontpage?points=100&count=10"
);
const text = await response.text();
const items = text.split("<item>").slice(1);
return items.map((item) => {
let title = item.match(/<title>(.*?)<\/title>/)[1];
@mikestaub
mikestaub / bitcoin-transaction-sequence-diagram
Created September 23, 2023 13:15
bitcoin transaction ilograph.com sequence diagram
resources:
- id: User
name: User
- id: WalletSoftware
name: Wallet Software
- id: BitcoinNetwork
name: Bitcoin Network
- id: MinerNodes
name: Miner Nodes
Verifying my Blockstack ID is secured with the address 1FPXrj8zt93w9cXBCacSLhpXaiJJMx4i3y https://explorer.blockstack.org/address/1FPXrj8zt93w9cXBCacSLhpXaiJJMx4i3y

Keybase proof

I hereby claim:

  • I am mikestaub on github.
  • I am mikestaub (https://keybase.io/mikestaub) on keybase.
  • I have a public key ASBiXIvpy5rbGiops51gxgs7QdTOJTu9tFjymrqp9bEIUQo

To claim this, I am signing this object:

9a9710fbd36210e32d814af5877986b1c5f04ca222bffbea8c66a49a9a93d53a6fc63dcad794fde17abc103bf3c19f1cfcafd50e78240f224200f4180f8e461d
@mikestaub
mikestaub / .hyper.js-windows
Created November 11, 2018 17:58
.hyper.js-windows
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
windowSize: [1280, 720],
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
@mikestaub
mikestaub / .zshrc
Created November 11, 2018 17:35
.zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export GOPATH=$HOME/gocode
export PATH=$PATH:$GOPATH/bin
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
export ANDROID_HOME=/Users/staubm/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH/:$ANDROID_HOME/platform-tools
@mikestaub
mikestaub / docker-compose.arangodb-cluster.yml
Last active April 4, 2020 20:15
Get started with arangodb by running a cluster with docker-compose. 3 db servers, 3 coordinators, and 3 agents. Visit http://localhost:8080 to view databases
version: "3"
# contents of ./nginx.conf
# worker_processes 1;
# events {
# worker_connections 1024;
# }
# http {
# upstream arangodb-servers {
@mikestaub
mikestaub / blockstack verification
Created November 6, 2017 21:33
blockstack verification
Verifying my Blockstack ID is secured with the address 1K4yaEpar7g7LLx9UxyzQPK7FxsZd1RqXs https://explorer.blockstack.org/address/1K4yaEpar7g7LLx9UxyzQPK7FxsZd1RqXs
@mikestaub
mikestaub / .zshrc
Last active September 24, 2017 21:05
# Path to your oh-my-zsh installation.
export ZSH=/Users/staubm/.oh-my-zsh
export ANDROID_HOME=/usr/local/opt/android-sdk
GRADLE_OPTS="-Dorg.gradle.daemon=true"
# load nvm
export NVM_DIR="/Users/staubm/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm