This file contains hidden or 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
| >>> re.compile(r'(jump|off)\s+the\s+ramp', re.DEBUG) | |
| subpattern 1 | |
| branch | |
| literal 106 | |
| literal 117 | |
| literal 109 | |
| literal 112 | |
| or | |
| literal 111 | |
| literal 102 |
This file contains hidden or 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
| version: '3' | |
| services: | |
| kong: | |
| image: kong:0.12-alpine | |
| environment: | |
| KONG_DATABASE: postgres | |
| KONG_PG_HOST: db | |
| KONG_PROXY_ACCESS_LOG: /dev/stdout | |
| KONG_ADMIN_ACCESS_LOG: /dev/stdout |
This file contains hidden or 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
| WARNING: Dependency conflict: an older version of the 'docker-py' package may be polluting the namespace. If you're experiencing crashes, run the following command to remedy the issue: | |
| pip uninstall docker-py; pip uninstall docker; pip install docker |
This file contains hidden or 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
| # Pending apply... needs https://github.com/terraform-providers/terraform-provider-aws/issues/2484 | |
| # | |
| resource "aws_vpc_peering_connection" "north-virginia-to-ohio" { | |
| provider = "aws.us-east-1" | |
| vpc_id = "${module.us-north-virginia.vpc_id}" | |
| peer_region = "us-east-2" | |
| peer_vpc_id = "${module.us-ohio.vpc_id}" | |
| accepter { | |
| allow_remote_vpc_dns_resolution = true |
This file contains hidden or 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 frameworkpython { | |
| if [[ ! -z "$VIRTUAL_ENV" ]]; then | |
| PYTHONHOME=$VIRTUAL_ENV /usr/bin/python "$@" | |
| else | |
| /usr/bin/python "$@" | |
| fi | |
| } | |
| function jupyter { | |
| jcmd=$1 |
This file contains hidden or 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
| digraph layers { | |
| size = "8, 8" | |
| splines = true | |
| ranksep = 1.5 | |
| node [shape = "plaintext"] | |
| transit -> transit_vrrp -> lb -> lb_floating -> dmz -> internal | |
| node [shape = "rect"] | |
| {rank = "same"; transit br1 br2; } |
This file contains hidden or 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
| if [ -d "${HOME}/Library/Python/2.7" ]; then | |
| export PATH="${PATH}:${HOME}/Library/Python/2.7/bin" | |
| fi | |
| function frameworkpython { | |
| if [[ ! -z "$VIRTUAL_ENV" ]]; then | |
| PYTHONHOME=$VIRTUAL_ENV /usr/bin/python "$@" | |
| else | |
| /usr/bin/python "$@" | |
| fi |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| segments = %w( / - \\ | ) | |
| 20.times do | |
| segments.each do |segment| | |
| print segment | |
| sleep 0.1 | |
| print "\r" | |
| end |
This file contains hidden or 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
| dep: | |
| npm install --only=dev | |
| watch: dep | |
| webpack-dev-server --progress --colors --watch | |
| .PHONY: watch |
This file contains hidden or 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
| import json | |
| import requests | |
| def lambda_handler(event, context): | |
| message_id = event.get('message_id') | |
| if not message_id: | |
| return None | |
| ccypair = event.get('ccypair') |