Skip to content

Instantly share code, notes, and snippets.

View install_sublime_text.sh
#!/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.
View gist:aa96c79ffcf4d417f193ffb406555667
#!/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 Aug 27, 2016
ubuntu-post-script
View post-install.sh
#!/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