Skip to content

Instantly share code, notes, and snippets.

View Rehzende's full-sized avatar
🎯
Focusing

Marcos Vinicius Rezende Rehzende

🎯
Focusing
View GitHub Profile
@Rehzende
Rehzende / jobs.js
Last active December 4, 2019 19:23 — forked from maximilianschmitt/jobs.js
Automated MySQL backups to S3 with node.js
'use strict';
var mysqlBackup = require('./mysql-backup');
var schedule = require('node-schedule');
schedule.scheduleJob({ hour: 22, minute: 0 }, mysqlBackup);
@Rehzende
Rehzende / webjob_deploy.py
Last active April 27, 2021 00:17
Pyhton script to deploying Azure Web Jobs
import requests, time, argparse, zipfile, sys
parser = argparse.ArgumentParser(description='Azure Webjob deploy script!')
parser.add_argument("--AUTH", required=True, type=str, help="Basic Auth, base64. Ex: 'Basic LjsdI...JGSJH")
parser.add_argument("--APPNAME", required=True, type=str, help="AppService Name")
parser.add_argument("--WEBJOBNAME", required=True, type=str, help="WebJob Name")
parser.add_argument("--ZIPFILEPATH", required=True, type=str, help="Zip file to deploy")
args = parser.parse_args()
AUTH = args.AUTH