Skip to content

Instantly share code, notes, and snippets.

View activescott's full-sized avatar
👋
Working and Playing

Scott Willeke activescott

👋
Working and Playing
View GitHub Profile
@activescott
activescott / deploy-to-dev.sh
Created February 24, 2024 04:21
rocket-pool/smartnode-install scripts
#!/usr/bin/env bash
THISDIR=$(cd $(dirname "$0"); pwd) #this script's directory
do_sync() {
source=$1
dest=$2
if [[ ! -e "$source" ]]; then
echo "source does not exist: $source"
return
@activescott
activescott / build-builder.sh
Last active February 26, 2024 20:07
rocket-pool/smarnode development scripts
#!/bin/bash
# Print usage
usage() {
echo "Usage: build-release.sh -v <version number>"
echo "This script builds the Smartnode builder image used to build the daemon binaries."
exit 0
}
# =================
@activescott
activescott / ssr-server.ts
Created December 14, 2019 22:29
Example of Manual Server-Side Rendering (SSR) with React & TypeScript
// This file doesn't go through babel or webpack transformation.
// Make sure the syntax and sources this file requires are compatible with the current node version you are running
// See https://github.com/zeit/next.js/issues/1245 for discussions on Universal Webpack or universal Babel
import { createServer } from "http"
import { parse } from "url"
import next from "next"
import render from "./lib/ssr"
const dev = process.env.NODE_ENV !== "production"
const app = next({ dev })
@activescott
activescott / web-dev-node-react-javascript.md
Last active November 8, 2018 05:10
Intro Notes on Web Development with Node & React

Here are a few notes:

Node

JavaScript

Please publicly post the following Gist, and name it keybase.md

Keybase proof

I hereby claim:

  • I am activescott on github.
  • I am activescott (https://keybase.io/activescott) on keybase.
  • I have a public key ASBmvvoEETnE4AWunKr5rZBriEhhJQz_hSGxJOF6Exx7Dgo
@activescott
activescott / export evernote notebooks.scpt
Created July 1, 2016 01:02
Export All Evernote Notebooks
exportEvernote()
on exportEvernote()
set outputDir to (do shell script "echo ~/Downloads/")
set theDate to current date
set timeStamp to (do shell script "date +'%y-%m-%d-%T'")
tell application "Evernote"
@activescott
activescott / onename-verify
Created August 21, 2015 00:52
one name verify
Verifying that +activescott is my blockchain ID. https://onename.com/activescott
@activescott
activescott / 0_reuse_code.js
Created December 13, 2013 03:43
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console