Skip to content

Instantly share code, notes, and snippets.

View busches's full-sized avatar

Scott Busche busches

  • Des Moines, Iowa
View GitHub Profile
@busches
busches / rover_check_markdown.sh
Last active September 23, 2021 19:15 — forked from EverlastingBugstopper/rover_check_markdown.sh
A shell script to parse the JSON output of `rover subgraph check` or `rover graph check`
#!/usr/bin/env sh
set -euo pipefail
# This script performs a subgraph check and generates a markdown file from Rover's JSON output
# Change the following line to refer to your graph ref, schema, and subgraph name
CHECK_OUTPUT=$(rover subgraph check my-graph --schema ./products.graphql --name products --output json) || true
CHECK_SUCCESS=$(echo $CHECK_OUTPUT | jq '.data.success')
if [ $CHECK_SUCCESS = "true" ]; then
@busches
busches / Main.kt
Created July 20, 2021 01:59
Check if a video will play in the Pacifica
import org.w3c.dom.Document
import org.xml.sax.InputSource
import java.io.File
import java.io.IOException
import java.io.StringReader
import java.math.BigInteger
import java.util.concurrent.TimeUnit
import javax.xml.parsers.DocumentBuilderFactory
import javax.xml.xpath.XPathConstants
import javax.xml.xpath.XPathFactory
@busches
busches / bumpme
Last active December 11, 2019 19:01
Wed Dec 11 19:01:40 UTC 2019
@busches
busches / npm.log
Created April 12, 2016 14:37
NPM install log of npm swapping to npmjs.org's registry instead of user defined registry
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
npm verb cli 'C:\\Users\\buschs1\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli 'install',
npm verb cli '-ddd' ]
npm info using npm@3.8.6
npm info using node@v5.10.0
npm sill loadCurrentTree Starting
npm sill install loadCurrentTree
npm sill install readLocalPackageData
@busches
busches / gulpfile.js
Created July 26, 2015 23:56
Gulpfile with ES5
var gulp = require('gulp');
var args = require('yargs').argv;
var browserSync = require('browser-sync');
var del = require('del');
var path = require('path');
var assign = require('lodash.assign');
var config = require('./gulp.config')();
var $ = require('gulp-load-plugins')({lazy: true});
var port = process.env.PORT || config.defaultPort;
@busches
busches / gulpfile.babel.js
Created July 26, 2015 23:56
Gulpfile with Babel and ES6
import gulp from 'gulp';
import { argv as args } from 'yargs';
import browserSync from 'browser-sync';
import del from 'del';
import path from 'path';
import assign from 'lodash.assign';
import configRaw from './gulp.config';
const config = configRaw();
import gulpPlugins from 'gulp-load-plugins';
const $ = gulpPlugins({lazy: true});
@busches
busches / changeLog.sh
Created June 22, 2015 23:16
Changelog for CM builds
#export WORKSPACE=/var/lib/jenkins/jobs/Build_CM12/workspace/builds
#export WORKSPACE=~/Downloads
export WORKSPACE=~/Dropbox/CM
export CHANGESPATH=$WORKSPACE/CHANGES-$(date -u +%Y%m%d).txt
rm $CHANGESPATH 2>/dev/null
# export CM_NIGHTLY
# get the name of the file we just built
lastBuild=$(ls -lt $WORKSPACE/cm*.zip | sed -e "s/ / /" | cut -d ' ' -f9 | head -1)
@busches
busches / ConEmu-2015-06-03-p49224.log
Created June 3, 2015 18:25
Complex package.json npm hung with -dd
This file has been truncated, but you can view the full file.
C:\Users\buschs1\Desktop\npmBug
λ npm install -dd
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
npm verb cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli 'install',
npm verb cli '-dd' ]
npm info using npm@2.11.0
npm info using node@v0.12.4
npm verb readDependencies loading dependencies from C:\Users\buschs1\Desktop\npmBug\package.json
@busches
busches / ConEmu-2015-05-12-p36148.log
Created May 12, 2015 13:43
NPM Bug log - real npm -ddd
This file has been truncated, but you can view the full file.
C:\Users\buschs1\Desktop\npmBug
λ npm install -ddd
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
npm verb cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli 'install',
npm verb cli '-ddd' ]
npm info using npm@2.9.1
npm info using node@v0.12.2
npm verb node symlink C:\Program Files\nodejs\\node.exe
@busches
busches / ConEmu-2015-05-12-p37444.log
Created May 12, 2015 13:42
NPM Bug log - real npm -dd
This file has been truncated, but you can view the full file.
C:\Users\buschs1\Desktop\npmBug
λ node -v
v0.12.2
C:\Users\buschs1\Desktop\npmBug
λ npm install -dd
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
npm verb cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli 'install',