openstack floating ip list -f value | while read fip; do echo -e "\e[32m===> Check IP $(echo $fip | awk '{print $2}')\e[0m"; openstack port show $(echo $fip | awk '{print $4}') -c security_group_ids -f json | jq '.security_group_ids[]' -r | while read sg; do openstack security group rule list $sg --ingress --protocol tcp --ethertype IPv4 -c "Port Range" -f value | while read ports; do nc -nzv -w2 $(echo $fip | awk '{print $2}') $(echo $ports | sed 's/:.*//g') ; done; done ; 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# Reference: https://github.com/frostschutz/SourceLib/blob/master/SourceRcon.py | |
# Converted to Python3 by Guillaume "Elektordi" Genty (Tested on 3.7) | |
#------------------------------------------------------------------------------ | |
# SourceRcon - Python class for executing commands on Source Dedicated Servers | |
# Copyright (c) 2010 Andreas Klauer <Andreas.Klauer@metamorpher.de> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy |
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/python | |
# -*- coding: utf-8 -*- | |
import re | |
import sys | |
import markdown | |
from markdown.extensions.codehilite import CodeHilite, CodeHiliteExtension, parse_hl_lines | |
CODE_WRAP = '<ac:structured-macro ac:name="code">%s<ac:plain-text-body><![CDATA[%s]]></ac:plain-text-body></ac:structured-macro>' |
Add logging round tripper:
import (
"fmt"
"net/http"
"net/http/httputil"
)
// This type implements the http.RoundTripper interface.
Your repository should have Dockerfile in the root directory. Specification of Dockerfile you can find here: https://docs.docker.com/engine/reference/builder/
For Node.JS application it can be something like this:
FROM node:12.10.0
# Create directory where we will place the application
WORKDIR /usr/src/app
Install jexia-sdk
pip install jexia-sdk
Example:
from jexia_sdk.http import HTTPClient
JEXIA_PROJECT_ID = '<PROJECT_HERE>'
NewerOlder