This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt-get purge -y maven | |
curl -OL http://mirror.olnevhost.net/pub/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz | |
sudo tar -zxf apache-maven-3.3.3-bin.tar.gz -C /usr/local/ | |
sudo ln -s /usr/local/apache-maven-3.3.3/bin/mvn /usr/bin/mvn | |
sudo echo "export M2_HOME=/usr/local/apache-maven-3.3.3" >> ~/.profile | |
. ~/.profile | |
sudo echo "Maven is on version `mvn -v`" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
sudo apt-get update | |
sudo apt-get install -y software-properties-common debconf-utils | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get update | |
sudo echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections | |
sudo apt-get install -y oracle-java8-installer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'gsettings set org.gnome.desktop.background picture-options "centered"' >> /home/vagrant/.profile | |
echo 'gsettings set org.gnome.desktop.background primary-color "#222222"' >> /home/vagrant/.profile | |
sudo apt-get install -y gnome-session-fallback | |
echo user-session=gnome-fallback >> /etc/lightdm/lightdm.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=Eclipse | |
Type=Application | |
Exec=/home/vagrant/eclipse/eclipse | |
Terminal=false | |
Icon=/home/vagrant/eclipse/icon.xpm | |
Comment=Integrated Development Environment | |
NoDisplay=false | |
Categories=Development;IDE; | |
Name[en]=Eclipse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
sudo apt-get update | |
sudo apt-get install -y google-chrome-stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/mars/R/eclipse-java-mars-R-linux-gtk-x86_64.tar.gz | |
tar xvfz eclipse-java-mars-R-linux-gtk-x86_64.tar.gz -C /home/vagrant | |
sudo ln -s /home/vagrant/eclipse /usr/bin/eclipse | |
wget -qO- https://goo.gl/j72ZWd > /usr/share/applications/eclipse.desktop | |
echo 'alias eclipse="$HOME/eclipse/eclipse &"' >> /home/vagrant/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://github.com/seeq12/eclipse-import-projects-plugin/archive/v1.3.0.tar.gz | |
tar xvfz v1.3.0.tar.gz -C /home/vagrant | |
cp /home/vagrant/eclipse-import-projects-plugin-1.3.0/jar/com.seeq.eclipse.importprojects_1.3.0.jar /home/vagrant/eclipse/plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){$(".table-responsive").find("table tr:contains('Taken')").hide();$(".table-responsive").find("tr").find('td:nth-child(2)').nextAll().hide();$(".table-responsive").find("tr").find('td:nth-child(2)').prevAll().hide();})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var v = "1.3.2"; | |
if (window.jQuery === undefined || window.jQuery.fn.jquery < v) { | |
var done = false; | |
var script = document.createElement("script"); | |
script.src = "http://ajax.googleapis.com/ajax/libs/jquery/" + v + "/jquery.min.js"; | |
script.onload = script.onreadystatechange = function(){ | |
if (!done && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) { | |
done = true; | |
initMyBookmarklet(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.biz-listing-large').each(function(index, listItem) { | |
var shopName = $(listItem).find('.biz-name').text().trim(); | |
var address = $(listItem).find('address').text().trim().replace(/Auckland/g,", Auckland"); | |
console.log(shopName + "," + address); | |
}); |
OlderNewer