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:
I hereby claim:
To claim this, I am signing this object:
#!/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 |
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"] |
#!/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" | |