Skip to content

Instantly share code, notes, and snippets.

View willmitchell's full-sized avatar

Will Mitchell willmitchell

  • Developer
  • Virginia, USA
View GitHub Profile
@willmitchell
willmitchell / bootstrap.sh
Created June 2, 2022 17:18 — forked from pahud/bootstrap.sh
My AWS SSO setup script for Gitpod workspaces
# watch the demo at https://youtu.be/cGUNf1FMNvI
KUBECTL_URL='https://amazon-eks.s3.us-west-2.amazonaws.com/1.20.4/2021-04-12/bin/linux/amd64/kubectl'
AWS_CLI_V2_URL='https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip'
CRED_PROCESS_URL='https://raw.githubusercontent.com/pahud/vscode/main/.devcontainer/bin/aws-sso-credential-process'
DEFAULT_PROFILE='default'
DEFAULT_REGION='ap-northeast-1'
DEFAULT_OUTPUT='json'
SSO_START_URL='https://pahud-sso.awsapps.com/start'
@willmitchell
willmitchell / Install-Apps.ps1
Created January 5, 2022 20:35 — forked from asears/Install-Apps.ps1
Chocolatey Installs for a new Windows PC build (2020) - Don't run this, reference only.
# Run as Administrator in Powershell prompt
# https://chocolatey.org/
# Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Restart shell as administrator
# Restart pc after each install requiring restart.
choco feature enable -n allowGlobalConfirmation
# Sudo for Windows (Run as Administrator in command prompt)
# Chocolatey installs are run as admin
choco install sudo
@willmitchell
willmitchell / index.vue
Created September 18, 2017 20:24
sample gist with vuetify and nuxt
<template>
<v-layout column justify-center align-center>
<v-flex xs12 sm8 md6>
<div class="text-xs-center">
<img src="/v.png" alt="Vuetify.js" class="mb-5" />
</div>
<v-card>
<v-card-title class="headline">Welcome to the Vuetify + Nuxt.js template</v-card-title>
<v-card-text>
<p>Vuetify is a progressive Material Design component framework for Vue.js. It was designed to empower developers to create amazing applications.</p>
@willmitchell
willmitchell / fullnode.md
Created August 10, 2017 15:01 — forked from romanz/fullnode.md
Bitcoin Full Node on AWS Free Tier

Bitcoin Full Node on AWS Free Tier

Provisioning

  • Launch one T2 micro instance, using Ubuntu 14.04 LTS AMI.
  • Open SSH and Bitcoin Protocol TCP ports: 22, 8333.
  • Attach 40GB EBS (General-Purpose SSD) volume for blockchain storage to /dev/sdf.

The pricing should be ~3$ for the first year (assuming 30GB upload per month). See here for more details.

@willmitchell
willmitchell / index.html
Created July 8, 2017 18:14
Theme Example
<div id="app">
<md-toolbar>
<h1 class="md-title" style="flex: 1">My Title</h1>
<md-button class="md-icon-button">
<md-icon>more_vert</md-icon>
</md-button>
</md-toolbar>
<md-theme md-name="teal">
<md-button class="md-primary">Primary Button</md-button>
@willmitchell
willmitchell / UserService.java
Created June 7, 2016 20:16
Surprisingly limited built-in UserService within neo4j -- no create capability.
/*
* Copyright (c) 2002-2016 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
@willmitchell
willmitchell / change_set_1.sql
Created March 8, 2015 21:02
a non-trivial postgresql data model with nested accounts and support for role based access control.
CREATE TABLE "user" (
id SERIAL PRIMARY KEY NOT NULL,
login VARCHAR(64) NOT NULL UNIQUE
);
CREATE TABLE account (
id SERIAL PRIMARY KEY NOT NULL,
name VARCHAR(128) NOT NULL,
parent_account_id BIGINT REFERENCES account NULL,
owner_id BIGINT REFERENCES "user" NOT NULL
@willmitchell
willmitchell / jooq-tests-output.log
Created March 8, 2015 21:00
Shows hte output from running the unit tests
/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java -ea -Didea.launcher.port=7535 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 14.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 14.app/Contents/plugins/testng/lib/testng-plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/jre/lib/javaws.jar:/L
@willmitchell
willmitchell / TestJooq.groovy
Created March 8, 2015 20:59
Demonstration of JOOQ CRUD and query ops.
import org.jooq.Configuration
import org.jooq.DSLContext
import org.jooq.Row1;
import org.jooq.SQLDialect
import org.jooq.TransactionalRunnable;
import org.jooq.impl.DSL
import org.jooq.impl.DefaultConfiguration
import org.jooq.impl.DefaultDSLContext
import org.testng.annotations.AfterTest
import org.testng.annotations.BeforeTest;
@willmitchell
willmitchell / designer.html
Created December 23, 2014 22:21
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">