This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am shanestillwell on github. | |
* I am northernv (https://keybase.io/northernv) on keybase. | |
* I have a public key ASCI7x0nYCqJz0f9S6KPpCk23iPMItWwooRg6Le2gKn_VQo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ApolloGateway } from "@apollo/gateway"; | |
import { ApolloServer, gql } from "apollo-server-express"; | |
const gateway = new ApolloGateway({ /* Options, maybe! */ }); | |
const server = new ApolloServer({ | |
subscriptions: false, | |
typeDefs: gql` | |
type Query { | |
book: String | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example Dockerfile | |
FROM hello-world |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IMAGE_NAME=registry.gitlab.com/shanestillwell/goscouter-api; | |
CURR_COMMIT=$(git rev-parse HEAD); | |
CURR_VERSION=$(node -e "console.log(require('./package.json').version);"); | |
VER_HASH=$(git rev-list -n 1 v$CURR_VERSION); | |
# Don't want to redo version bump | |
if [ $CURR_COMMIT == $VER_HASH ] | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
nginx: | |
image: registry.gitlab.com/shanestillwell/goscouter-nginx:latest | |
restart: unless-stopped | |
ports: | |
- 443:443 | |
volumes: | |
- /root/ssl:/etc/nginx/ssl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker volume rm $(docker volume ls -q -f dangling=true); | |
docker rmi $(docker images -f "dangling=true" -q) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Argument = -u user -p password -k key -s secret -b bucket | |
# | |
# To Do - Add logging of output. | |
# To Do - Abstract bucket region to options | |
set -e | |
export PATH="$PATH:/usr/local/bin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'), | |
http = require('http'), | |
longRes = require('./data'), | |
app = express(); | |
app.disable('x-powered-by'); | |
// this is the function utilized to stage a request | |
express.response.stage = function(body, cb) { | |
this.stagedResponse = {body: body} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var uiRouter = require('./common/angular-ui-router'), | |
common = require('./common/common'), | |
home = require('./home'), | |
signup = require('./account'); | |
angular.module('sw', [ | |
'sw.home', | |
'sw.signup', | |
'ui.router', | |
'sw.common' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var input = "BMC_TEST_INPUT_MAGIC" | |
input = input.split(','); | |
var evenRow = ""; | |
var oddRow = ""; | |
var board = ""; | |
// gen columns | |
for(i = 0; input[0] > i; i++){ | |
if(i % 2 == 1){ |
NewerOlder