Skip to content

Instantly share code, notes, and snippets.

View jdewinne's full-sized avatar

Josh De Winne jdewinne

View GitHub Profile
@jdewinne
jdewinne / analytics.png
Last active August 27, 2022 05:57
Run kURL k8s on a GPU enabled node
analytics.png

Keybase proof

I hereby claim:

  • I am jdewinne on github.
  • I am jdewinne (https://keybase.io/jdewinne) on keybase.
  • I have a public key ASCkl55Fyq7_-_LTBZU7cj-tPHPZopJoVndAM0pcTVuYRgo

To claim this, I am signing this object:

@jdewinne
jdewinne / dockertags
Last active September 12, 2018 23:47
dockertags
#!/bin/bash
if [ $# -lt 1 ]
then
cat << HELP
dockertags -- list all tags for a Docker image on a remote registry.
EXAMPLE:
- list all tags for ubuntu:
#!/usr/bin/python
# This script processes a JSON data file and updates all dates in the demo data.
# It does this by comparing the dates in the demo data with a reference date for the data set.
# All dates are updated to be exactly the same number of days from today as they were from the reference date (either in the future or in the past).
# This updates the demo data to always be "current".
import json
import sys
import re
@jdewinne
jdewinne / dataInserter.py
Last active February 9, 2018 15:30
XLR Data inserter using python
import json
import urllib, urllib2, base64
def get_config_id(title, username="admin", password="admin"):
params = {"configurationType": "configuration.HttpConnection", "title":title}
request = urllib2.Request("http://localhost:5516/api/v1/config/byTypeAndTitle?%s" % urllib.urlencode(params))
base64string = base64.encodestring('%s:%s' % (username, password)).replace('\n', '')
request.add_header("Authorization", "Basic %s" % base64string)
result = urllib2.urlopen(request)
return json.load(result)[0]["id"]
@jdewinne
jdewinne / install_intellij.sh
Last active December 26, 2017 03:48
install intellij
#!/bin/sh
echo "Installing IntelliJ IDEA..."
# We need root to install
# Fetch the most recent ultimate edition URL
URL="https://download.jetbrains.com/idea/ideaIU-2017.3.1-no-jdk.tar.gz"
INSTALLATION_DIR="/opt/idea"