Skip to content

Instantly share code, notes, and snippets.

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
[Unit]
Description=IpForward
[Service]
Type=oneshot
User=root
ExecStart=/etc/init.d/ip-forward
StandardOutput=tty
RemainAfterExit=yes
Requires=network.target
[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
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
@taksan
taksan / gist:96da2e536406cfc969ad
Created June 2, 2014 16:23
Epic Bundle Scrapping
#!/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) {