So this thing:
class BotoConnection(object):
def __new__(cls, profile_name, services):
if not hasattr(cls, '__instance__'):
cls.__instance__ = super(BotoConnection, cls)\
.__new__(cls, profile_name, services)| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "SAM CLI Python Hello World", | |
| "type": "python", | |
| "request": "attach", | |
| "port": 5890, | |
| "host": "127.0.0.1", | |
| "pathMappings": [ |
| import ptvsd | |
| ptvsd.enable_attach(address=(‘0.0.0.0’, 5890), redirect_output=True) | |
| ptvsd.wait_for_attach() |
| Set fileSystemObject = CreateObject ("Scripting.FileSystemObject") | |
| Set stdout = fileSystemObject.GetStandardStream (1) | |
| Set stderr = fileSystemObject.GetStandardStream (2) | |
| Function ExportAccessToCSV() | |
| stdout.WriteLine "Exporting Access table " & table & " to CSV" | |
| Dim database: database = WScript.Arguments(0) | |
| Dim table: table = WScript.Arguments(1) | |
| Set wshShell = WScript.CreateObject("WScript.Shell") |
| #! /bin/bash | |
| ./pan.sh \ | |
| /rep:"kettle-dev-repo" \ | |
| /trans:"lab-data-csv-to-postgresql" \ | |
| /user:admin \ | |
| /pass:********************** \ | |
| /param:LABS_DATA_CSV_FILE=/opt/labs-data.csv \ | |
| /level:Basic |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| upstream elasticsearch { | |
| server 127.0.0.1:9200; | |
| keepalive 15; |
So this thing:
class BotoConnection(object):
def __new__(cls, profile_name, services):
if not hasattr(cls, '__instance__'):
cls.__instance__ = super(BotoConnection, cls)\
.__new__(cls, profile_name, services)| function _forward_mysql_via_ssh() { | |
| CMD_START="ssh" | |
| CMD_END=" -f $1 -L $2:$3:3306 -N" | |
| CMD="$CMD_START $CMD_END" | |
| eval $CMD | |
| } | |
| function forward-dashboard-dev-mysql() { | |
| PORT=8806 | |
| _forward_mysql_via_ssh toolkit-apps-dev.tangentlabs.co.uk $PORT 192.168.125.23 |