$ pip install click requests
$ python query_export.py --redash-url "https://app.redash.io/" --api-key ""
| def multireplace(string, replacements, ignore_case=False): | |
| """ | |
| Given a string and a replacement map, it returns the replaced string. | |
| :param str string: string to execute replacements on | |
| :param dict replacements: replacement dictionary {value to find: value to replace} | |
| :param bool ignore_case: whether the match should be case insensitive | |
| :rtype: str | |
| """ |
| #!/bin/bash | |
| # | |
| # Usage: | |
| # | |
| # 1. Set SECURITY_GROUP and KEY_NAME to your value | |
| # 2. source ec2-ping-test.sh | |
| # 3. launch_all_instances | |
| # 4. terminate_all_instances | |
| # |
| import pymysql | |
| def execute(c, command): | |
| c.execute(command) | |
| return c.fetchall() | |
| db = pymysql.connect(host='localhost', port=3306, user='root', passwd='', db='mysql') #, charset='utf8') | |
| c = db.cursor() |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
| # import config. | |
| # You can change the default config with `make cnf="config_special.env" build` | |
| cnf ?= config.env | |
| include $(cnf) | |
| export $(shell sed 's/=.*//' $(cnf)) | |
| # import deploy config | |
| # You can change the default deploy config with `make cnf="deploy_special.env" release` | |
| dpl ?= deploy.env | |
| include $(dpl) |
| var fs = require('fs'); | |
| var Promise = require('promise'); | |
| var promises = []; | |
| var readline = require('readline'); | |
| var readFile = function (file) { | |
| return new Promise(function (resolve, reject) { | |
| var lines = []; | |
| var rl = readline.createInterface({ | |
| input: fs.createReadStream('./logs/' + file) |
| upstream redash { | |
| server redash:5000; | |
| } | |
| server { | |
| listen 80; | |
| location / { | |
| return 301 https://$host$request_uri; | |
| } |
| 000000 Officially Xerox | |
| 000001 SuperLAN-2U | |
| 000002 BBN (was internal usage only, no longer used) | |
| 000003 XEROX CORPORATION | |
| 000004 XEROX CORPORATION | |
| 000005 XEROX CORPORATION | |
| 000006 XEROX CORPORATION | |
| 000007 XEROX CORPORATION | |
| 000008 XEROX CORPORATION | |
| 000009 powerpipes? |