- Create a .gitignore file in the git repository if it does not contain one
touch .gitignore
- Open up the .gitignore and add the following line to the file
**/node_modules
[ | |
{ | |
"timestamp":1612121212, | |
"id":"", | |
"datetime":"10 Oct 2020 - 6:00 to 7:30 PM IST", | |
"logo_url":"", | |
"status":"", | |
"speaker":"", |
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", |
#!/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 |
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'); |
using namespace Microsoft.IdentityModel.Clients.ActiveDirectory | |
[CmdletBinding()] | |
param ( | |
$tenant, | |
$username, | |
$password | |
) | |
# Load the latest version of ADAL |
https://codelabs.developers.google.com/codelabs/cloud-builder-gke-continuous-deploy/index.html#1 | |
cat <<EOF > branch-build-trigger.json | |
{ | |
"triggerTemplate": { | |
"projectId": "${PROJECT}", | |
"repoName": "default", | |
"branchName": "[^(?!.*master)].*" | |
}, | |
"description": "branch", |
import React, { Component } from "react"; | |
const omit = (obj, omitKey) => | |
Object.keys(obj).reduce((result, key) => { | |
if (key !== omitKey) { | |
result[key] = obj[key]; | |
} | |
return result; | |
}, {}); | |
const overlayStyles = { |
const { google } = require("googleapis"); | |
const { auth } = require("google-auth-library"); | |
var sqladmin = google.sqladmin("v1beta4"); | |
// Based on https://medium.com/@kennethteh90/how-to-schedule-daily-cloud-sql-export-to-google-cloud-storage-4c1bd360af06 | |
exports.backup = async (_req, res) => { | |
const authRes = await auth.getApplicationDefault(); | |
let authClient = authRes.credential; | |
var request = { |