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
const Router = require("express").Router; | |
///........ | |
const ensuredLoggedIn = require('connect-ensure-login').ensureLoggedIn(); | |
var app = new Router(); | |
app.get("/", ensuredLoggedIn, (req, res) => { | |
// ............. | |
}); |
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
/* | |
Some extra stuff for setting up the server | |
*/ | |
// Setting up bare passport. No Auth Strategy. | |
const passport = require("./middlewear/my-passport-init"); | |
app.use(passport.initialize()); | |
app.use(passport.session()); | |
// Setting up passport Strategies and Routes |
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
## Installing Chrome on Rasbian ## | |
# https://www.raspberrypi.org/forums/viewtopic.php?t=121195 # | |
wget https://dl.dropboxusercontent.com/u/87113035/chromium-browser-l10n_48.0.2564.82-0ubuntu0.15.04.1.1193_all.deb -P ~/Downloads/ | |
wget https://dl.dropboxusercontent.com/u/87113035/chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb -P ~/Downloads/ | |
wget https://dl.dropboxusercontent.com/u/87113035/chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb -P ~/Downloads/ | |
sudo dpkg -i ~/Downloads/chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb | |
sudo dpkg -i ~/Downloads/chromium-browser-l10n_48.0.2564.82-0ubuntu0.15.04.1.1193_all.deb ~/Downloads/chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb | |
## So Chrome shows up in the Application Launch Bar ## |
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: WORMSS | |
* | |
* Blink with no Delay | |
* - This allows for multiple LEDs to be used. | |
* - This allows for delayed start of sequence. | |
* - This allows for different on and off delays. | |
* | |
* Instructions: | |
* - Change the LENGTH variable below with the amount of LEDs you wish to use. |
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: WORMSS | |
* | |
* Blink with no Delay | |
* - This allows for multiple LEDs to be used. | |
* - This allows for delayed start of sequence. | |
* - This allows for different on and off delays. | |
* | |
* Instructions: | |
* - Change the LENGTH variable below with the amount of LEDs you wish to use. |
NewerOlder