Skip to content

Instantly share code, notes, and snippets.

View tomverelst's full-sized avatar
🙃

Tom tomverelst

🙃
View GitHub Profile
@tomverelst
tomverelst / idea
Created November 17, 2017 11:33 — forked from chrisdarroch/idea
Open a project in IntelliJ IDEA from your command line!
#!/bin/sh
# check for where the latest version of IDEA is installed
IDEA=`ls -1d /Applications/IntelliJ\ * | tail -n1`
wd=`pwd`
# were we given a directory?
if [ -d "$1" ]; then
# echo "checking for things in the working dir given"
wd=`ls -1d "$1" | head -n1`
@tomverelst
tomverelst / gist:e9a1d0cf0496be343a39741bc89e1171
Created April 18, 2017 22:43
Container max memory limit
#!/bin/sh
# Detected container limits
# If found these are exposed as the following environment variables:
#
# - CONTAINER_MAX_MEMORY
# - CONTAINER_CORE_LIMIT
#
# This script is meant to be sourced.