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/bash | |
function getpage() | |
{ | |
nodejs <<HEREDOC | |
// npm install request cheerio | |
var request = require("request"); | |
var cheerio = require("cheerio"); | |
request({ uri: "http://www.epicbundle.com/game" }, function(error, response, 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
mkdir /opt/taskboard-data | |
mkdir /opt/smashing-data | |
mkdir /opt/jenkins-data | |
# Jenkins | |
docker run -p 8080:8080 --name lf-jenkins -v /opt/jenkins-data:/var/lib/jenkins/ -d -it devopsobj/liferay-jenkins | |
-- After finishing instructions, stop with CTRL+C and then run the following: | |
docker start lf-jenkins |
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
[Unit] | |
Description=Taskboard service | |
Requires=docker.service | |
[Service] | |
Type=simple | |
User=root | |
ExecStart=/etc/init.d/taskboard-service start | |
ExecStop=/etc/init.d/taskboard-service stop |
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
[Unit] | |
Description=IpForward | |
[Service] | |
Type=oneshot | |
User=root | |
ExecStart=/etc/init.d/ip-forward | |
StandardOutput=tty | |
RemainAfterExit=yes | |
Requires=network.target |
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
To setup Work Adventure to authenticate with google oauth: | |
If you still don't have an Oauth Client: | |
- Access https://console.developers.google.com/ and create a project | |
- Setup the OAuth Consent Screen | |
- Go to credentials and create a new credential of type "Oauth Client ID" | |
- Under "Authorized Redirection URLs" make sure to fill with your Work Adventure full domain (https://play...) | |
- Save the configuration | |
- Next, you can either download the credentials or edit the credential. You will need the Cliend ID and the Client Secret |