Test
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
[ | |
{ | |
"timestamp":1612121212, | |
"id":"", | |
"datetime":"10 Oct 2020 - 6:00 to 7:30 PM IST", | |
"logo_url":"", | |
"status":"", | |
"speaker":"", |
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 mysql = require("mysql"); | |
const fastcsv = require("fast-csv"); | |
const Json2csvParser = require("json2csv").Parser; | |
const fs = require("fs"); | |
var pool = mysql.createPool({ | |
connectionLimit : 10, | |
host: "host", | |
user: "root", | |
password: "", | |
database: "master", |
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
#!/bin/sh | |
# | |
# This script deploys the given manifest, | |
# tracks the deployment, and rolls back on failure. | |
# | |
# First execute this with "myapp.yaml" and then try it with "myapp.failing.yaml" | |
# | |
MANIFEST_PATH=$1 | |
DEPLOYMENT_NAME=myapp |
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
using namespace Microsoft.IdentityModel.Clients.ActiveDirectory | |
[CmdletBinding()] | |
param ( | |
$tenant, | |
$username, | |
$password | |
) | |
# Load the latest version of ADAL |
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 WebSocket = require('ws'); | |
const readline = require('readline'); | |
const url = process.argv[2]; | |
const ws = new WebSocket(url); | |
ws.on('open', () => console.log('connected')); | |
ws.on('message', data => console.log(`From server: ${data}`)); | |
ws.on('close', () => { | |
console.log('disconnected'); |
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
function processKindleFiles() { | |
try { | |
var folderId = "0BwgWw6nnA_fCQW5XQzhtUU00TjQ"; | |
// Get folder by id | |
var parentFolder = DriveApp.getFolderById(folderId); | |
var files = parentFolder.getFiles(); | |
while (files.hasNext()) { | |
var childFile = files.next(); |