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://docs.google.com/document/d/1YepRdBZKcGNjUC6QcopmG7_jpaOucxbGxlQJOwI7BxM/pub | |
| Latest list: | |
| http://appsrv.cse.cuhk.edu.hk/~acmprog/ | |
| Latest data please read this map: https://www.google.com/maps/d/u/0/embed?mid=zIh97OmUhBNA.kGMqBtuPdCO4 | |
| 各區物資需求表︰ | |
| https://docs.google.com/spreadsheets/d/1psp1mPDWoT29KAcjuBrbywNumUvBEPNJG5tuUjJ8uaQ/pubhtml |
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
| /* NOTICE: This file is written in ES2015. | |
| * Please use the --harmony flag for nodejs environment. | |
| * | |
| * License: CC BY-SA 4.0 by Ivan Ip<m@lifeho.me> | |
| */ | |
| var iconv = require('iconv-lite'), | |
| request = require('request'), | |
| cheerio = require('cheerio'), | |
| cheerioTableparser = require('cheerio-tableparser'), |
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
| const fs = require('fs'), | |
| maths = require('mathjs'), | |
| restify = require('restify'), | |
| rp = require('request-promise'), | |
| cheerio = require('cheerio'), | |
| cheerioTableparser = require('cheerio-tableparser') | |
| server = restify.createServer({ | |
| name: 'wrench-jumbo', | |
| version: '1.0.1' | |
| }), |
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
| #!/bin/bash | |
| aria2PROTOCOL="http" | |
| aria2HOST="127.0.0.1" | |
| aria2PORT="6800" | |
| aria2TOKEN="1234567890abcdef" | |
| aria2ENDPOINT="/jsonrpc" | |
| discordNotification=true | |
| discordActorUsername="Aria2 Torrent Automator" |
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
| function onFormSubmit(e) { | |
| var data = { | |
| "form": { | |
| "id": e.source.getId(), | |
| "title": e.source.getTitle() ? e.source.getTitle() : "Untitled Form", | |
| "is_private": e.source.requiresLogin(), | |
| "is_published": e.source.isAcceptingResponses(), | |
| }, | |
| "response": { | |
| "id": e.response.getId(), |
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
| location ~ \.php$ { | |
| include /etc/nginx/fastcgi_params; | |
| fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
| fastcgi_pass unix:/run/php-fpm/php-fpm.sock; | |
| fastcgi_param HTTPS true; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| } |
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
| { | |
| "HUH": { | |
| "vid": "000", | |
| "en_name": "Hung Hom", | |
| "zh_name": "紅磡" | |
| }, | |
| "MKK": { | |
| "vid": "001", | |
| "en_name": "Mong Kok East", | |
| "zh_name": "旺角東" |
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
| ### ### | |
| # ----------------------------- # | |
| # Service-wide configs # | |
| # ----------------------------- # | |
| ### ### | |
| # Listening port for the SSH server | |
| Port 311 | |
| # Listening addresses |
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
| # The directory to watch | |
| WATCH_DIR=/.fresh_torrents | |
| # Interval between command execution. | |
| # Format: HH:MM:SS or just how many seconds | |
| SETTLE_DURATION=5 | |
| # Execute command immediately if incoming changes have persisted for a spcified of time period. | |
| # Format: HH:MM:SS or just how many seconds | |
| MAX_WAIT_TIME=300 |
OlderNewer