Skip to content

Instantly share code, notes, and snippets.

Avatar

Scott Busche busches

  • Des Moines, Iowa
View GitHub Profile
@busches
busches / rover_check_markdown.sh
Last active Sep 23, 2021 — forked from EverlastingBugstopper/rover_check_markdown.sh
A shell script to parse the JSON output of `rover subgraph check` or `rover graph check`
View rover_check_markdown.sh
#!/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 Jul 20, 2021
Check if a video will play in the Pacifica
View Main.kt
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
View bumpme
Wed Dec 11 19:01:40 UTC 2019
@busches
busches / npm.log
Created Apr 12, 2016
NPM install log of npm swapping to npmjs.org's registry instead of user defined registry
View npm.log
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 Jul 26, 2015
Gulpfile with ES5
View gulpfile.js
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 Jul 26, 2015
Gulpfile with Babel and ES6
View gulpfile.babel.js
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 Jun 22, 2015
Changelog for CM builds
View changeLog.sh
#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 Jun 3, 2015
Complex package.json npm hung with -dd
View ConEmu-2015-06-03-p49224.log
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
@busches
busches / ConEmu-2015-05-12-p36148.log
Created May 12, 2015
NPM Bug log - real npm -ddd
View ConEmu-2015-05-12-p36148.log
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
@busches
busches / ConEmu-2015-05-12-p37444.log
Created May 12, 2015
NPM Bug log - real npm -dd
View ConEmu-2015-05-12-p37444.log
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',