Skip to content

Instantly share code, notes, and snippets.

View gulrich1's full-sized avatar

German Ulrich gulrich1

View GitHub Profile
#!/usr/bin/python
import prestodb
import getpass
def build_presto_connector(user, password):
conn=prestodb.dbapi.connect(
host='datalake.despegar.com',
port=443,
@gulrich1
gulrich1 / reset_idea_trial.sh
Created March 22, 2021 13:46
reset intellij trial
#!/bin/sh
#https://github.com/PythonicNinja/jetbrains-reset-trial-mac-osx/blob/master/runme.sh
for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine Rider; do
echo "Closing $product"
ps aux | grep -i MacOs/$product | cut -d " " -f 5 | xargs kill -9
echo "Resetting trial period for $product"
#!/bin/bash
############################
# Dependencies: jq, recode #
############################
# PARAMETERS:
# 1 - project name
# 2 - pull request
########################