Skip to content

Instantly share code, notes, and snippets.

View r8or0pz's full-sized avatar
🏠
Working from home

Roman Borysenko r8or0pz

🏠
Working from home
View GitHub Profile
"""
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
# iam_policy_statements = {
# MountTarget = {
# effect = "Allow"
# principals = [
# {
# "type" = "AWS",
# "identifiers" = ["*"],
# }
# ]
# actions = [
#!/usr/bin/env bash
env=${1}
project_name=''
bucket_name=''
path='terraform'
init_file="${path}/init.tf"
region=''
lock_table="${project_name}-locks"
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
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
# 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
version: '3'
networks:
flask:
services:
flask:
image: webapp-flask
build:
context: .
#!/bin/bash
# Wait until it's up
until curl host:port &>/dev/null; do
sleep 1
done
#!/bin/bash
# Wait until it's up
until curl host:port &>/dev/null; do
sleep 1
done
num_lines = sum(1 for line in open('myfile.txt'))