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
| <!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
| 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
| 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
| 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
| # ~/.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
| { | |
| "data": [{ | |
| "type": "users", | |
| "id": "1", | |
| "attributes": { | |
| "name": "John" | |
| } | |
| },{ | |
| "type": "users", | |
| "id": "2", |
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
| { | |
| "color_scheme": "Packages/Monokai++/themes/Monokai++.tmTheme", | |
| "detect_indentation": false, | |
| "font_size": 12, | |
| "highlight_modified_tabs": true, | |
| "hot_exit": false, | |
| "ignored_packages": | |
| [ | |
| "Vintage" | |
| ], |
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
| { | |
| "editor.fontSize": 12, | |
| "editor.minimap.enabled": false, | |
| "editor.detectIndentation": false, | |
| "workbench.sideBar.location": "right", | |
| "files.associations": { | |
| "*.inc": "php", | |
| "*.vue": "html", | |
| "*.cgf": "shellscript" | |
| }, |
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
| cd ~ | |
| touch .gitignore_global | |
| git config --global core.excludesfile ~/.gitignore_global |