Skip to content

Instantly share code, notes, and snippets.

View tkakantousis's full-sized avatar

Theofilos Kakantousis tkakantousis

View GitHub Profile
@kai-chi
kai-chi / build-on-vm.sh
Last active November 12, 2019 07:28
Deploy new hopsworks-ear with one click. Run the "deploy-hopsworks.sh" script and enjoy few minutes of free time
#!/bin/bash
set -e
BRANCH=$1
echo "Executing on vm. Branch: $BRANCH"
cd /home/vagrant/hopsworks
git fetch origin
git reset --hard "origin/$BRANCH"
@kai-chi
kai-chi / hopsworks-postman-pre-request-script.md
Last active November 14, 2019 10:59
Postman Pre-request Script for setting Hopsworks JWT token

To automatically set jwt token before a request:

  1. In "Authorization" tab - set "No Auth"
  2. In "Headers" tab - add header with key "Authorization" and value "{{Authorization}}"
  3. You can set a script for the whole collection/folder/single request. To set it for every single request from the collection right-click on the collection name and "Edit". Go to "Pre-request Scripts" tab and paste:
    pm.sendRequest({
        url: "https://localhost:8181/hopsworks-api/api/auth/login",
        method: 'POST',
        header: {
    

'Content-Type': 'application/x-www-form-urlencoded'

@gdamjan
gdamjan / ssl-check.py
Last active April 14, 2024 07:16
Python script to check on SSL certificates
# -*- encoding: utf-8 -*-
# requires a recent enough python with idna support in socket
# pyopenssl, cryptography and idna
from OpenSSL import SSL
from cryptography import x509
from cryptography.x509.oid import NameOID
import idna
from socket import socket