Note: Run this script as the root user (no sudo calls are used in the script).
You will need the curl package installed, though I would have no idea why it wouldn't be installed by default:
zypper --non-interactive install curl
| #!/bin/sh | |
| # Setup log4j for Tomcat logging as per http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j | |
| # @author Collin Peters | |
| # Download log4j.properties | |
| echo "Getting log4j.properties..." | |
| wget -q --output-document /opt/tomcat/lib/log4j.properties https://gist.github.com/collinpeters/2845875/raw/caef85e03e7b586bace0dbc14da17a4f78d1757a/log4j.properties | |
| # Download log4j.tgz and extract jar directly to Tomcat |
| import java.util.*; | |
| import java.lang.*; | |
| import java.util.Map; | |
| public class PhoneNumberSolver{ | |
| //3 numbers just for examples sake so far | |
| private static Integer[] phoneNumber = new Integer[]{new Integer(3) , new Integer(5), new Integer(5)}; | |
| /* | |
| String{]{"d","e","f"}) |
| import java.util.*; | |
| import java.lang.reflect.*; | |
| public class LiveScript | |
| { | |
| private LiveScript() throws UnsupportedOperationException | |
| { | |
| throw new UnsupportedOperationException(); | |
| } |
| wget http://mirror.ox.ac.uk/sites/rsync.apache.org/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz | |
| sudo tar xzf apache-maven-3.0.5-bin.tar.gz -C /usr/local | |
| cd /usr/local | |
| sudo ln -s apache-maven-3.0.5 maven | |
| mkdir libext | |
| cd libext | |
| wget http://extjs.com/deploy/ext-2.2.zip | |
| export DSE_LIB=/usr/share/dse |
| ################################################################################# | |
| # start and stop the vpn from the command line from now on with these two commands | |
| ################################################################################# | |
| startvpn() { | |
| sudo launchctl load -w /Library/LaunchDaemons/net.pulsesecure.AccessService.plist | |
| launchctl load -w /Library/LaunchAgents/net.pulsesecure.pulsetray.plist | |
| } | |
| quitvpn() { | |
| launchctl unload -w /Library/LaunchAgents/net.pulsesecure.pulsetray.plist | |
| sudo launchctl unload -w /Library/LaunchDaemons/net.pulsesecure.AccessService.plist |
| #!/bin/sh | |
| echo Install all AppStore Apps at first! | |
| # no solution to automate AppStore installs | |
| read -p "Press any key to continue... " -n1 -s | |
| echo '\n' | |
| echo Install and Set San Francisco as System Font | |
| ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)" | |
| echo Install Homebrew, Postgres, wget and cask | |
| ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" |
Paprika doesn't have their API documented, so this is me reverse-engineering it from an Android device
Estimated time: 10 minutes