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 javax.crypto.Cipher; | |
| import java.io.InputStream; | |
| import java.security.*; | |
| import java.util.Base64; | |
| import static java.nio.charset.StandardCharsets.UTF_8; | |
| public class RsaExample { | |
| public static KeyPair generateKeyPair() throws Exception { | |
| KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA"); |
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
| cp $JENKINS_HOME/deployment-context/.env . | |
| #rm ~/.ssh/known_hosts | |
| #rm -rf /var/lib/jenkins/workspace/gitlab-repo/.git | |
| if [ -e "run.pid" ]; then | |
| if ! kill $(cat run.pid) > /dev/null 2>&1; then | |
| echo "Could not send SIGTERM to process $(cat run.pid)" >&2 | |
| fi | |
| fi |
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
| " Use spaces instead of tabs | |
| set expandtab | |
| " Be smart when using tabkey | |
| set smarttab | |
| " 1 tab == 4 spaces | |
| set shiftwidth=2 | |
| set tabstop=2 |
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
| <!DOCTYPE html> | |
| <head> | |
| <title>Build report</title> | |
| <style type="text/css"> | |
| body | |
| { | |
| margin: 0px; | |
| padding: 15px; | |
| } |
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
| <html> | |
| <body> | |
| <form id="completeChallenge2" action="https://10.20.20.50/user/csrfchallengethree/plusplus" method="POST" > | |
| <input type="hidden" name="userid" value="exampleId" /> | |
| <input type="submit"/> | |
| </form> | |
| <script> | |
| document.forms["completeChallenge2"].submit(); | |
| </script> | |
| </body> |
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 | |
| dir="/usr/share/cloud-ats-v1-portal" | |
| user="" | |
| cmd="npm start" | |
| name=`basename $0` | |
| stdout_log="/var/log/$name.log" | |
| stderr_log="/var/log/$name.err" | |
| publicip=`wget http://ipinfo.io/ip -qO -` |
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 | |
| dir="/usr/share/rest/bin" | |
| user="" | |
| cmd="bash rest" | |
| name=`basename $0` | |
| stdout_log="/var/log/$name.log" | |
| stderr_log="/var/log/$name.err" |
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
| @Note: Becarefully with default user in cloud. We shoud create our self-user | |
| sudo adduser cloudats | |
| sudo usermod -a -G sudo cloudats | |
| == CloudATS Portal - Ubuntu Server 14.04 LTS == | |
| * Install MongoDB 3.0.5 | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
| echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list |
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 | |
| dir="/usr/share/jmeter-2.13/bin" | |
| user="" | |
| cmd="sh jmeter-server" | |
| name=`basename $0` | |
| pid_file="/var/run/$name.pid" | |
| stdout_log="/var/log/$name.log" | |
| stderr_log="/var/log/$name.err" |
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
| start on login-session-start | |
| script | |
| x11vnc -xkb -noxrecord -noxfixes -noxdamage -repeat -display :0 -auth /home/cloudats/.XAUTHORITY/database -forever -shared -bg -o /var/log/x11vnc.log -rfbauth /home/cloudats/.vnc/passwd -rfbport 5900 -24to32 | |
| end script |