Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# Sublime Text 3 install with Package Control (last update: 25 August 2016)
#
# No need to download this script, just run it on your terminal:
#
# $ curl -L git.io/sublimetext | sh
#
# When you need to update Sublime Text, run this script again.
#!/bin/bash
# You must accept the Oracle Binary Code License
# http://www.oracle.com/technetwork/java/javase/terms/license/index.html
# usage: get_jdk.sh <rpm|tar> <jdk_version>
# jdk_version: default 8
# rpm
EXT="tar.gz"
JDK_VERSION="8"
@RobertTheNerd
RobertTheNerd / post-install.sh
Last active August 27, 2016 16:04
ubuntu-post-script
#!/bin/bash
# get script folders. http://stackoverflow.com/questions/4774054/reliable-way-for-a-bash-script-to-get-the-full-path-to-itself
SCRIPT=$(readlink -f $0)
SCRIPTPATH=`dirname $SCRIPT`
post_install() {
# NOPASSWD in sudoer for current user
echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee -a /etc/sudoers > /dev/null