$ sudo rpm -ihv jdk-8u91-linux-x64.rpm
$ java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
$ javac -version
javac 1.8.0_91
This file contains hidden or 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
| yum install libmpc-devel mpfr-devel gmp-devel | |
| cd /usr/src/ | |
| curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.3/gcc-4.9.3.tar.bz2 -O | |
| tar xvfj gcc-4.9.3.tar.bz2 | |
| cd gcc-4.9.3 | |
| ./configure --disable-multilib --enable-languages=c,c++ | |
| make -j `grep processor /proc/cpuinfo | wc -l` | |
| make install |
This file contains hidden or 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
| var buttons; | |
| buttons = document.getElementsByClassName('_42ft'); | |
| for (var i = 0; i < buttons.length; i++) { | |
| if(buttons[i].getAttribute('ajaxify') != null){ | |
| if(buttons[i].getAttribute('ajaxify').indexOf('invite') != -1){ | |
| buttons[i].click(); | |
| } | |
| } | |
| } |
This file contains hidden or 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
| import org.json.simple.JSONObject; | |
| import org.json.simple.parser.JSONParser; | |
| import org.json.simple.parser.ParseException; | |
| public class TestJSON { | |
| public static void main(String[] args) { | |
| JSONObject jObject = new JSONObject(); |
This file contains hidden or 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 | |
| # | |
| # A simple Arch Linux backup script. | |
| # | |
| # Example config that targets external mount, keeping backups for a week and | |
| # mirror the backups to local and external disks: | |
| # | |
| # $ cat /etc/backuprc | |
| # backup_target=/mnt/data01/myhost | |
| # backup_days_kept=7 |
This file contains hidden or 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
| import java.io.File; | |
| import java.io.IOException; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.Set; | |
| import java.util.TreeSet; | |
| import javax.xml.parsers.DocumentBuilder; | |
| import javax.xml.parsers.DocumentBuilderFactory; | |
| import javax.xml.parsers.ParserConfigurationException; |
This file contains hidden or 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
| # Disable SELinux | |
| echo 0 > /selinux/enforce | |
| perl -pi -e 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config | |
| # Install required packages | |
| yum install pdksh compat-libstdc++-33 compat-libstdc++-33.i686 libaio libaio.i686 \ | |
| pam-1.1.1-17.el6.x86_64 pam-1.1.1-17.el6.i686 nfs-utils openssh-clients \ | |
| numactl | |
| # Update Kernel Parameters (http://ibm.co/1czEKb4) |