Skip to content

Instantly share code, notes, and snippets.

View jdhuntington's full-sized avatar
🏎️
-><-

JD Huntington jdhuntington

🏎️
-><-
View GitHub Profile
@jdhuntington
jdhuntington / aws-select
Created November 8, 2024 18:06
Select aws credentials
#!/bin/bash
# Colors for output
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
AWS_DIR="$HOME/.aws"
CREDENTIALS_LINK="$AWS_DIR/credentials"
--- Pomodoro module
--------------------------------------------------------------------------------
-- Configuration variables
--------------------------------------------------------------------------------
local pom={}
pom.bar = {
indicator_height = 0.2, -- ratio from the height of the menubar (0..1)
indicator_alpha = 0.3,
indicator_in_all_spaces = true,
@jdhuntington
jdhuntington / renameProp.ts
Created April 10, 2019 18:43
rename a prop for OUFR
import ts from 'typescript';
import { migration } from '../../migration';
import { mod } from 'riceburn';
const inFooJsxTag = (node: ts.Node): boolean => {
if (!node) {
return false;
}
if (ts.isJsxSelfClosingElement(node) || ts.isJsxOpeningElement(node)) {
const tagName = node.tagName;
import * as React from 'react';
import { Label } from 'office-ui-fabric-react/lib/Label';
import { Pivot, PivotItem } from 'office-ui-fabric-react/lib/Pivot';
import * as exampleStylesImport from '../../../common/_exampleStyles.scss';
const exampleStyles: any = exampleStylesImport;
export class PivotBasicExample extends React.Component<any, any> {
constructor(props: any) {
super(props);
this.state = {
@jdhuntington
jdhuntington / Dockerfile
Created August 29, 2017 22:05
Dockerfile to build azure iot edge
FROM ubuntu:16.04
WORKDIR /work
RUN apt-get update
RUN apt-get install -y \
build-essential \
git \
aptitude \
cmake \
libssl-dev \
curl libcurl4-openssl-dev \
@jdhuntington
jdhuntington / What to run
Created May 4, 2016 18:45
templating with bash
./setup.sh foo 10.0.0.4 10.0.0.5 10.0.0.6
<?xml version="1.0" encoding="utf-8"?>
<CoverageSession xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Summary numSequencePoints="24" visitedSequencePoints="18" numBranchPoints="7" visitedBranchPoints="5" sequenceCoverage="75" branchCoverage="71.43" maxCyclomaticComplexity="2" minCyclomaticComplexity="1" visitedClasses="1" numClasses="1" visitedMethods="4" numMethods="5" />
<Modules>
<Module skippedDueTo="Filter" hash="11-30-36-D6-3F-6D-53-13-C4-27-61-52-FD-1A-C1-DA-D8-39-D7-E3">
<ModulePath>C:\windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll</ModulePath>
<ModuleTime>2016-03-24T02:20:50.7849777Z</ModuleTime>
<ModuleName>mscorlib</ModuleName>
<Classes />
</Module>
FROM ubuntu
RUN apt-get update
RUN apt-get install git-core -y
RUN apt-get install nodejs -y
RUN apt-get install npm -y
RUN mkdir /var/app
RUN (cd /var/app && git clone https://github.com/jdhuntington/effacious-adventure.git)
WORKDIR /var/app/effacious-adventure
RUN npm install
EXPOSE 8081
@jdhuntington
jdhuntington / template.json
Created July 2, 2015 19:44
provisioningtemplate
This is a test

Keybase proof

I hereby claim:

  • I am jdhuntington on github.
  • I am jdhuntington (https://keybase.io/jdhuntington) on keybase.
  • I have a public key whose fingerprint is BCEA 5F12 DA19 9B1B 5F28 9FE0 9892 4E15 31ED EF0E

To claim this, I am signing this object: