Skip to content

Instantly share code, notes, and snippets.

@shanestillwell
shanestillwell / gateway-health-check-schema-only.js
Created March 4, 2021 18:26 — forked from abernix/gateway-health-check-schema-only.js
Apollo Gateway: Health Check: Schema Only
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
}
@shanestillwell
shanestillwell / Dockerfile
Created January 9, 2018 21:12 — forked from yefim/Dockerrun.aws.json
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
# Example Dockerfile
FROM hello-world
@shanestillwell
shanestillwell / install_puppet_mac.sh
Created November 27, 2012 18:32 — forked from rija/install_puppet_mac.sh
Installing Puppet on Mac OS X
#!/usr/bin/env bash
set -o errtrace
set -o errexit
facter_version=$1
puppet_version=$2
target_volume=$3
@shanestillwell
shanestillwell / amazonS3.js
Created October 18, 2012 18:46 — forked from zhendershot/gist:3607211
REST API Upload to S3 in Titanium
var config = require('/modules/config'); /// Holds information on amazonkey and secret
/**
*
* UTF-8 data encode / decode
* http://www.webtoolkit.info/
*
**/
var Utf8 = {
@shanestillwell
shanestillwell / index.js
Created August 20, 2012 21:57 — forked from jankuca/index.js
Simple Facebook Graph API Node.js Client
var HTTPS = require('https');
var QueryString = require('querystring');
/**
* Facebook API Wrapper
* @constructor
* @param {Object} info Info about a Facebook application
*/
var Client = function (info) {
if (!info.KEY || !info.SECRET || !info.ID) {
@shanestillwell
shanestillwell / OSX Lion pecl and pear.mdown
Created July 16, 2012 21:45 — forked from wearethefoos/OSX Lion pecl and pear.mdown
Native OSX Lion pecl and pear config
$ sudo /usr/bin/php /usr/lib/php/install-pear-nozlib.phar

$ cat >> ~/.bashrc <<'EOF' 

alias pear="php /usr/lib/php/pear/pearcmd.php" 
alias pecl="php /usr/lib/php/pear/peclcmd.php" 
EOF

$ . ~/.bashrc
function force_of_gravity() {
if (get_post_meta(get_the_ID(), "image", true)) || (get_post_meta(get_the_ID(), "text", true)): ?>
<b>Submitted by: </b><?php echo get_post_meta(get_the_ID(), "name", true) ?> in <?php echo get_post_meta(get_the_ID(), "location", true); ?>
<?php endif; ?>
<?php
}
add_action('thesis_hook_before_content', 'force_of_gravity');
function force_of_gravity() { ?>
if (get_post_meta(get_the_ID(), "image", true)) || (get_post_meta(get_the_ID(), "text", true)) { ?>
<b>Submitted by: </b><?php echo get_post_meta(get_the_ID(), "name", true) ?> in <?php echo get_post_meta(get_the_ID(), "location", true); ?>
<?php endif; ?>
<?php
}
add_action('thesis_hook_before_content', 'force_of_gravity');