Skip to content

Instantly share code, notes, and snippets.

@rvenugopal
rvenugopal / regen-domain-types.js
Created June 14, 2018 05:48 — forked from adamkl/regen-domain-types.js
Generating typescript definitions from .graphql files using apollo-codegen and graphql-code-generator
const { introspectSchema } = require("apollo-codegen");
const { executeWithOptions } = require("graphql-code-generator/dist/cli");
const fs = require("fs");
const path = require("path");
const graphqlPath = "./src/graphql/";
const schemaInput = "./src/graphql/temp.graphql";
const jsonOutput = "./src/graphql/temp.json";
const dtsOutput = "./src/graphql/domain.d.ts";
[Unit]
Description=App Redis Sidekick
Requires=docker.service
Requires=etcd.service
After=docker.service
After=etcd.service
After=app-redis.service
BindsTo=app-redis.service
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
/**
* Example of using an angular provider to build an api service.
* @author Jeremy Elbourn (jelbourn@google.com)
*/
/** Namespace for the application. */
var app = {};
/******************************************************************************/
@rvenugopal
rvenugopal / gist:6081745
Last active December 20, 2015 05:49
Unable to pass data between chained APIEasy calls. This only works for outgoing headers. However, passing state to modify post request body of subsequent calls does not work. It appears that APIEasy is caching the post data to be sent at initialization and instead of late binding
var APIeasy = require('api-easy'),
assert = require('assert');
///Initialization
var domain = 'localhost',
port = 62601,
clientId = 'MyClientId',
suiteText = 'Chained calls',
customerServiceBase = '/myServiceEndpoint/',
@rvenugopal
rvenugopal / javaUpgradeProcedure
Created February 12, 2013 16:15
Procedure for upgrading Java on Default Amazon Linux AMI (2012.09)
# You can also follow the procedure at https://gist.github.com/tankchintan/1335220
# You can update to OpenJDK 1.7 with AMI 2012.09. See release notes http://aws.amazon.com/amazon-linux-ami/2012.09-release-notes/
#First install OpenJDK 1.7
sudo yum install java-1.7.0-openjdk
# Check that 1.7 is installed and choose it
>sudo /usr/sbin/alternatives --config java
#- Choose option for jre-1.7(For me it was option 2)
@rvenugopal
rvenugopal / _.md
Created October 20, 2012 16:40
just another inlet to tributary
@rvenugopal
rvenugopal / _.md
Created October 20, 2012 03:19
just another inlet to tributary
@rvenugopal
rvenugopal / _.md
Created October 19, 2012 15:41
just another inlet to tributary