Skip to content

Instantly share code, notes, and snippets.

tiblu

Block or report user

Report or block tiblu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View DDSProxyNginx.conf
server {
listen 8000;
server_name dds.mydomain.com;
access_log /var/log/nginx/dds.mydomain.com.access.log;
error_log /var/log/nginx/dds.mydomain.com.error.log;
ssl on;
ssl_certificate /my/server/cert/dds.mydomain.com.bundle.crt;
ssl_certificate_key /my/server/cert/private/dds.mydomain.com.key;
@tiblu
tiblu / GoogleAppScriptLogger.gs
Created Apr 12, 2017
GoogleAppScript - Logger
View GoogleAppScriptLogger.gs
/**
* LOG
*
* Basic HTTP logger.
*/
var Logger = function() {
var _LEVELS = {
DEBUG: 1,
INFO: 2,
ERROR: 3
@tiblu
tiblu / GoogleAppScriptSpreadsheetExportToJson.gs
Last active Apr 12, 2017
Google App Script - Spreadsheet - Export to JSON
View GoogleAppScriptSpreadsheetExportToJson.gs
/**
* Script to export Spreadsheet content as JSON
*
* The script, when onDocumentOpen is set up via triggers, creates an extra menu item "Actions" where the script can be run.
* Originally designed to use Spreadsheets as web translation tool. Sheet contains columns for each language and first row is considered header column which is not exported.
**/
//Global
var ss = SpreadsheetApp.getActiveSpreadsheet();
var activeSheet = ss.getActiveSheet();
You can’t perform that action at this time.