- Create the start and stop scripts of your application.
- Example:
#!/bin/bash
cd /home/ubuntu/myapp/
java -jar myapp.jar --server.port=8888 &
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; |
#!/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 |
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(); |
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(); | |
} | |
} | |
} |
$ 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
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 |
#!/bin/bash | |
# Usage | |
# First create an encrypted password to be used as connection pass | |
# and pass as a parameter with the script. To create use: slappasswd | |
# Clean packages | |
sudo yum clean all | |
# Install openldap as service manager | |
sudo yum -y install openldap-servers openldap-clients |