This file contains 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
# Licensed to the Apache Software Foundation (ASF) under one | |
# or more contributor license agreements. See the NOTICE file | |
# distributed with this work for additional information | |
# regarding copyright ownership. The ASF licenses this file | |
# to you under the Apache License, Version 2.0 (the | |
# "License"); you may not use this file except in compliance | |
# with the License. You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
This file contains 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
# Author: Tony Breyal | |
# Date: 2011-11-18 | |
# Modified: 2011-11-18 | |
# Description: Extracts all text from a webpage (aims to extract only the text you would see in a web browser) | |
# Packages Used: RCurl, XML | |
# Blog Reference: Not published | |
# Copyright (c) 2011, under the Creative Commons Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0) License | |
# For more information see: https://creativecommons.org/licenses/by-nc/3.0/ | |
# All rights reserved. |
This file contains 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
#Build a docker image using DockerFil | |
docker build -t gengine-python-app . | |
#Pruning Commands | |
docker container prune | |
docker image prune | |
#Run docker image with the posts exposed | |
docker run -d -p 8667:8667 gengine-python-app | |
#Link to an diffrent image |
This file contains 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
passport.use(new Strategy({ | |
domain: process.env.AUTH0_DOMAIN, | |
clientID: process.env.AUTH0_CLIENT_ID, | |
clientSecret: process.env.AUTH0_CLIENT_SECRET, | |
callbackURL: process.env.AUTH0_CALLBACK_URL, | |
passReqToCallback: true | |
}, | |
function(req, issuer, audience, profile, accessToken, refreshToken, params, cb) { | |
console.log('issuer',issuer); // https://your-domain.auth0.com/ |
This file contains 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
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo | |
sudo rpm --import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key | |
sudo yum update jenkins |
This file contains 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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch", | |
"type": "node", | |
"request": "launch", | |
"program": "${workspaceRoot}/src/server.js", | |
"stopOnEntry": false, | |
"args": [], |
This file contains 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
{ | |
"messages": [ | |
"Chrome Arpeggio Links", | |
"Fischinger Links", | |
"Hip Hop Links", | |
"15th Birthday Links", | |
"Cricket Links", | |
"Halloween 2016 Links", | |
"Beethoven Links", | |
"Rockmore Links", |
This file contains 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
df | |
df -H | |
cat /proc/meminfo | |
sudo yum remove docker docker-common docker-selinux docker-engine | |
yum remove docker docker-common docker-selinux docker-engine | |
sudo yum remove docker docker-common docker-selinux docker-engine | |
yum | |
yum list | |
sudo yum install -y yum-utils device-mapper-persistent-data lvm2 | |
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo |
This file contains 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
#The --no-check-certificate is optional | |
cd /opt | |
wget --no-check-certificate https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz | |
tar xf Python-2.7.6.tar.xz | |
cd Python-2.7.6 | |
./configure --prefix=/usr/local | |
make && make altinstall |
This file contains 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
$scope.storeFile = function () { | |
//Use Sqllite | |
var db = new PouchDB('mydb.db', { | |
adapter: 'cordova-sqlite' | |
}); | |
//Create index - pouchdb-find plugin | |
db.createIndex({ | |
index: { | |
fields: ['name'], | |
name: 'nameidx' |
NewerOlder