Skip to content

Instantly share code, notes, and snippets.

View jashmenn's full-sized avatar

Nate Murray jashmenn

View GitHub Profile
const fs = require("fs");
const CoinGecko = require("coingecko-api");
const { table } = require("table");
const chalk = require("chalk");
const cg = new CoinGecko();
const coins = [
{ "id": "ethereum", "symbol": "ETH" },
{ "id": "bitcoin", "symbol": "BTC" },
jashmenn / Dockerfile
Created January 15, 2021 19:46 — forked from yefim/
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
# Example Dockerfile
FROM hello-world
jashmenn / dynamic_forms_builder.sql
Created August 19, 2020 15:48 — forked from firmanelhakim/dynamic_forms_builder.sql
Dynamic Forms Builder using PostgreSQL
CREATE TABLE master.forms
form_id serial NOT NULL,
properties jsonb,
audit_trails jsonb,
sort_order INTEGER,


Get a speedcube, they're way more fun. Do not buy original Rubiks cube brand.


Start with the "Beginners Method". Like anything, you might have to try a few different resources before you "get it".

jashmenn / s3-upload-node.js
Created March 23, 2020 15:13
Simple example of uploading to S3 from the filesystem with Node.js - If you're trying to learn how to do this, checkout Fullstack Node.js
const fs = require('fs')
const AWS = require('aws-sdk')
const { promisify } = require('util')
const s3 = new AWS.S3()
s3.uploadP = promisify(s3.upload)
const params = {
Bucket: 'fullstack-printshop',
Key: 'profile-photos/thedude.jpg',
Body: fs.createReadStream('thedude.jpg')
jashmenn / generatePath.js
Last active March 6, 2020 03:35
Deconstruction of the curves on @Wattenberger's Thinking in Hooks Post
// This code is from:
// It generates the SVG path for the curve between two lines on the post "Thinking in React Hooks", located here:
// It's a good idea to pull up the documentation on SVG paths here:
// As you may know, SVG paths are specified by a string where a
// letter is the "command" and the numbers following are the "arguments"
// We'll be using 4 commands:
jashmenn /
Created September 27, 2018 17:52
Use S3 as a url short-linker / redirection service
#!/bin/bash -x
if [[ $# -eq 0 ]] ; then
echo 'Usage: cmd <s3 path> <redirect-location>'
echo 'e.g.'
echo ''
exit 0
jashmenn / geth-and-remix.scpt
Created November 16, 2017 17:48
open geth and remix in tabs via applescript
-- osascript services.scpt
tell application "iTerm 3"
set myterm to (create window with default profile)
tell myterm
set mysession to (current session)
tell mysession
set name to "geth"
write text "cd ~/projects/fs/newline/newline-content-internal/fullstack-web3/private-net"
write text "./bin/geth --datadir=./datadir --nodiscover --rpc --rpcapi \"db,personal,eth,net,web3,debug\" --rpccorsdomain='*' --rpcaddr=\"localhost\" --rpcport 8545 --ws --wsapi \"db,personal,eth,net,web3,debug\" --wsorigins='*' --wsaddr=\"localhost\" --wsport 8546 console"
Verifying my Blockstack ID is secured with the address 1EZ6kY8mCk1sPj4n1qbsZh6YFCRNsUaMy1
jashmenn / final-cut-it-out.js
Created September 21, 2017 11:44
Remove Silence from Final Cut Pro clips, automatically, using ffmpeg timecodes and OSX JavaScript Automation - Demo:
#!/usr/bin/env osascript -l JavaScript
* Delete silence from Final Cut Pro timeline using a script.
* Demo:
* This script accepts an ffmpeg silencedetect log as input.
* To setup, have fcp running along with your clip selected. Ensure that the
* timecode will start at zero before running this script. That is, if your clip