Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
# For connecting to the DremioREST API
# Getting a list of Catalogs and then
# doing some other things with it
# https://docs.dremio.com/rest-api/catalog/get-catalog/
function check_creds {
if [ $DREMIO_USER"x" = "x" ] || [ $DREMIO_PASS"x" = "x" ]
then

Keybase proof

I hereby claim:

  • I am markcurtis1970 on github.
  • I am mc1970 (https://keybase.io/mc1970) on keybase.
  • I have a public key ASDNoAlUo_lJ1ZJDAe09ON26p5gJB4dqcW38__nJr4B3Rwo

To claim this, I am signing this object:

@markcurtis1970
markcurtis1970 / .screenrc-main-example
Last active August 30, 2017 18:41 — forked from ChrisWills/.screenrc-main-example
A nice default screenrc
# GNU Screen - main configuration file
# All other .screenrc files will source this file to inherit settings.
# Author: Christian Wills - [email protected]
# Allow bold colors - necessary for some reason
attrcolor b ".I"
# Tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
@markcurtis1970
markcurtis1970 / control.py
Last active December 12, 2015 16:23
Control for energenie sockets
#!/usr/bin/python
#import the required modules
import sys
import RPi.GPIO as GPIO
import time
# Check arguments
# (note 3 includes arg 0 which is this script!)
if len(sys.argv) != 3: