Skip to content

Instantly share code, notes, and snippets.

@lunitrixx
lunitrixx / updateJetbrains.sh
Created November 2, 2018 19:43 — forked from danielcosta/updateJetbrains.sh
Script to update PhpStorm and others Jetbrains products
#!/usr/bin/env bash
VERSION_PATTERN="([0-9]+\.[0-9]+\.[0-9]+)"
case "${1}" in
"phpstorm")
TOOL_NAME="PhpStorm"
INSTALL_DIR="/opt/phpstorm"
case "${2}" in
"eap")
@lunitrixx
lunitrixx / sysctl-conf.sh
Created November 2, 2018 19:42 — forked from trajakovic/sysctl-conf.sh
High performance sysctl.conf
#!/bin/bash
#check if this script is running in su mode
func_check_for_root() {
if [ ! $( id -u ) -eq 0 ]; then
echo "ERROR: $0 Must be run as root, Script terminating" ;exit 7
fi
}
func_check_for_root