Skip to content

Instantly share code, notes, and snippets.

@cmosgh
cmosgh / Survey.results.graphql
Created June 24, 2020 11:49
Survey.results.gprahql
type SurveyResult {
question: Question!
filter: SurveyResultsFilter
counts: SurveyResultCounts!
profileAnswerList(input: ProfileAnswerListInput!): SurveyProfileAnswer!
}
input SurveyResultsInput {
questionId: ID!
filter: SurveyResultsFilterInput
@cmosgh
cmosgh / gist:0b8249fc7202928910ad98d602146948
Created August 8, 2018 11:46 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@cmosgh
cmosgh / Jenkinsfile
Created March 12, 2018 06:56
Jenkins stages with different containers
podTemplate(label: 'mypod',
containers: [
containerTemplate(name: 'docker', image: 'docker', ttyEnabled: true, command: 'cat'),
containerTemplate(name: 'kubectl', image: 'lachlanevenson/k8s-kubectl:v1.9.3',command:'cat', ttyEnabled: true),
containerTemplate(name: 'node', image: 'node:8.10-alpine', command: 'cat', ttyEnabled: true),
containerTemplate(name: 'helm', image: 'lachlanevenson/k8s-helm', ttyEnabled: true, command: 'cat', priviledged: true)
],
volumes:[
hostPathVolume(mountPath: '/var/run/docker.sock', hostPath: '/var/run/docker.sock'),
]