Skip to content

Instantly share code, notes, and snippets.

View wezell's full-sized avatar

Will Ezell wezell

View GitHub Profile
@wezell
wezell / dotcms-get-demo-site-starter-urls.sh
Created April 13, 2022 21:59 — forked from yolabingo/dotcms-get-demo-site-starter-urls.sh
Gets the CUSTOM_STARTER_URL for a specific version of dotCMS
#!/bin/bash
# https://gist.github.com/yolabingo/f11e81b2cbdb00fff9b1ae0ef8076263
# checks out dotcms/core GH repo, then prints the CUSTOM_STARTER_URL for demo site content
# for each tagged version release
# output formatted for docker-compose.yml
# local_ip=$(ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}')
gitdir=/var/tmp/dotcms-get-starter-urls-repo

GraphlQL introspection query via curl

cat introspection_query.json

{ 
  "query": "query IntrospectionQuery {
      __schema {
        queryType { name }
        mutationType { name }
@wezell
wezell / 0_reuse_code.js
Created June 17, 2017 23:46
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console