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
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac |
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
| diff --git a/services/endpoints/attendance.js b/services/endpoints/attendance.js | |
| index f5f5222..0f46fff 100644 | |
| --- a/services/endpoints/attendance.js | |
| +++ b/services/endpoints/attendance.js | |
| @@ -18,6 +18,112 @@ app.post("/api/attendance/import", (req, res) => { | |
| let parse_line = string_data.replace(/(?:\r\n|\r|\n)/g, "<br/>"); | |
| let split_line = parse_line.split("<br/>"); | |
| split_line.splice(0, 1); | |
| + /** | |
| + * CG Patch Starts Here |
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
| https://drive.google.com/open?id=0ByrfnAdEiGXpMndIV3BlRkxJWG8 |
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
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var concat = require('gulp-concat'); | |
| var sass = require('gulp-sass'); | |
| var minifyCss = require('gulp-minify-css'); | |
| var rename = require('gulp-rename'); | |
| var sh = require('shelljs'); | |
| var pump = require('pump'); | |
| var uglify = require('gulp-uglify'); | |
| var webserver = require('gulp-webserver'); |
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> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #fff; background-color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #d3d3d3; text-decoration: none; } | |
| </style> |
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
| Exec in terminal | |
| sudo certbot --authenticator webroot --webroot-path <path-to-webroot> --installer apache -d <your-domain> | |
| sudo certbot certonly --webroot --webroot-path= <path-to-webroot> -d <your-domain> | |
| var https = require('https'); | |
| var sslOptions = { | |
| key: fs.readFileSync('key.pem'), | |
| cert: fs.readFileSync('cert.pem'), | |
| }; | |
| https.createServer(sslOptions, app).listen(3000); |
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
| /*================================================== | |
| = Bootstrap 3 Media Queries = | |
| ==================================================*/ | |
| /*========== Mobile First Method ==========*/ | |
| /* Custom, iPhone Retina */ | |
| @media only screen and (min-width : 320px) { | |
| } |
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
| 1. Flashing the recovery image: | |
| fastboot flash recovery recovery.img | |
| 2. Flash the kernel and bootloader: | |
| fastboot flash boot boot.img | |
| 3. Erase a partition: | |
| fastboot erase cache |
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
| <video id="video" width="640" height="480" autoplay></video> | |
| <button id="snap">Snap Photo</button> | |
| <canvas id="canvas" width="640" height="480"></canvas> | |
| <script> | |
| /* { audio: true } */ | |
| /* Get camera access */ | |
| if(navigator.mediaDevices && navigator.mediaDevices.getUserMedia) { | |
| navigator.mediaDevices.getUserMedia({ video: true }).then(function(stream) { |
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
| /* Initialize options */ | |
| var options = { | |
| quality: 50, | |
| destinationType: Camera.DestinationType.DATA_URL, | |
| sourceType: Camera.PictureSourceType.PHOTOLIBRARY, | |
| allowEdit: true, | |
| encodingType: Camera.EncodingType.JPEG, | |
| targetWidth: 800, | |
| targetHeight: 800, | |
| popoverOptions: CameraPopoverOptions, |