This file contains 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
""" | |
Module for jenkinsapi requester (which is a wrapper around python-requests) | |
""" | |
import requests | |
import urllib.parse as urlparse | |
from jenkinsapi.custom_exceptions import JenkinsAPIException, PostRequired | |
# import logging |
This file contains 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
# iam_policy_statements = { | |
# MountTarget = { | |
# effect = "Allow" | |
# principals = [ | |
# { | |
# "type" = "AWS", | |
# "identifiers" = ["*"], | |
# } | |
# ] | |
# actions = [ |
This file contains 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 bash | |
env=${1} | |
project_name='' | |
bucket_name='' | |
path='terraform' | |
init_file="${path}/init.tf" | |
region='' | |
lock_table="${project_name}-locks" |
This file contains 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
Mar 2 10:13:24 Latitude-5491 NetworkManager[209052]: <info> [1614672804.1404] audit: op="connection-activate" uuid="a4264465-5253-445b-9256-476373860228" name="vpnhost-UDP4-1203-config" pid=3623 uid=1001 result="success" | |
Mar 2 10:13:24 Latitude-5491 NetworkManager[209052]: <info> [1614672804.1548] vpn-connection[0x555885034320,a4264465-5253-445b-9256-476373860228,"vpnhost-UDP4-1203-config",0]: Started the VPN service, PID 210283 | |
Mar 2 10:13:24 Latitude-5491 NetworkManager[209052]: <info> [1614672804.1709] vpn-connection[0x555885034320,a4264465-5253-445b-9256-476373860228,"vpnhost-UDP4-1203-config",0]: Saw the service appear; activating connection | |
Mar 2 10:13:24 Latitude-5491 NetworkManager[209052]: <info> [1614672804.3525] vpn-connection[0x555885034320,a4264465-5253-445b-9256-476373860228,"vpnhost-UDP4-1203-config",0]: VPN plugin: state changed: starting (3) | |
Mar 2 10:13:24 Latitude-5491 NetworkManager[209052]: <info> [1614672804.3526] vpn-connection[0x555885034320,a4264465-5253-445b-9256-47637386022 |
This file contains 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
dev tun | |
persist-tun | |
persist-key | |
cipher AES-256-CBC | |
ncp-ciphers ... | |
auth SHA256 | |
tls-client | |
client | |
resolv-retry infinite | |
remote xx.xx.xxx.xxx 1195 udp |
This file contains 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
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"). | |
# You may not use this file except in compliance with the License. | |
# A copy of the License is located at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# or in the "license" file accompanying this file. This file is distributed | |
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either |
This file contains 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' | |
networks: | |
flask: | |
services: | |
flask: | |
image: webapp-flask | |
build: | |
context: . |
This file contains 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
#!/bin/bash | |
# Wait until it's up | |
until curl host:port &>/dev/null; do | |
sleep 1 | |
done |
This file contains 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
#!/bin/bash | |
# Wait until it's up | |
until curl host:port &>/dev/null; do | |
sleep 1 | |
done |
This file contains 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
num_lines = sum(1 for line in open('myfile.txt')) |
NewerOlder