Below documents a simple "Standalone" Airflow server that can run Docker tasks.
sudo dnf upgrade --refresh -y
sudo dnf install -y mysql-server mysql-devel gcc
systemctl enable --now mysqld| import boto3 | |
| autoscaling = boto3.client('autoscaling') | |
| codedeploy = boto3.client('codedeploy') | |
| hookMap = {} | |
| print 'Gathering valid lifecycle hooks from CodeDeploy deployment groups...' | |
| for applicationName in codedeploy.list_applications()['applications']: | |
| for deploymentGroupName in codedeploy.list_deployment_groups(applicationName=applicationName)['deploymentGroups']: |
| settings = { | |
| 'settings': { | |
| 'analysis': { | |
| 'analyzer': { | |
| 'html': { | |
| 'type': 'custom', | |
| 'tokenizer': 'standard', | |
| 'filter': ['standard', 'lowercase', 'stop'], | |
| 'char_filter': ['html_strip'] | |
| } |
| syntax enable | |
| set number | |
| set ruler | |
| set autoindent | |
| set smartindent | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| set expandtab | |
| set background=dark | |
| set nohlsearch |
| #!/usr/bin/python | |
| def parse_address_str(address): | |
| parts = { | |
| 'address': '', | |
| 'address2': '', | |
| 'city': '', | |
| 'state': '', | |
| 'zip': '' |
| import logging | |
| logging.basicConfig(level=logging.DEBUG) | |
| logger = logging.getLogger('peewee') | |
| logger.setLevel(logging.DEBUG) |
| {id : 12 , data: [{column: 1, value : 'foo'}, {column : 2, value : 'bar'}]} | |
| {id : 12 , data: { 1: {value : 'foo'}, 2 : {value : 'bar'}}} |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="//www.formstack.com/api/js/1.0.0/embedkit.js"></script> | |
| </head> | |
| <body onload="init();"> | |
| <div id="embed" style="width:800px;"></div> | |
| <script> | |
| function responseHandler(res) { | |
| console.log(res); |
| mkdir foo | |
| cd foo | |
| hg init | |
| touch foo.txt | |
| hg add | |
| hg commit -m "foo.txt" | |
| cd .. | |
| hg clone foo foo-bar | |
| cd foo-bar |
| <?php | |
| namespace Framework; | |
| use \PDO; | |
| use \Exception; | |
| abstract class Model { | |
| private static $_host; | |
| private static $_username; | |
| private static $_password; | |
| private static $_database; |