To run in a given container:
export C={container name} && curl https://gist.githubusercontent.com/Fusion/a81a6b5c90e40846e2f9f5ab03d41bc0/raw/sshon | bash
To run in a given container:
export C={container name} && curl https://gist.githubusercontent.com/Fusion/a81a6b5c90e40846e2f9f5ab03d41bc0/raw/sshon | bash
| #!/bin/bash | |
| pos=() | |
| while [[ $# -gt 0 ]]; do | |
| case "$1" in | |
| -h) | |
| echo "Syntax: $0 [-o <file name>][-O] URL" | |
| exit 0 | |
| ;; | |
| -o) |
| echo | openssl s_client -connect {domain}:443 2>/dev/null | openssl x509 -text |
You will be able to keep your public/private key pairs on a USB stick with a reasonable level of security.
Using this script, you will create a local ssh keystore, use it to decrypt your key, and delete it when you are done.
| bash | |
| if [ -z "$(which dialog)" ]; then sudo apt-get update && sudo apt-get install -y dialog; fi \ | |
| && dialog --menu 'Pick container to instrument' 20 79 20 $(docker ps --format '{{.ID}} {{.Names}}') 2>/tmp/dialog.pick \ | |
| && C="$(cat /tmp/dialog.pick)" \ | |
| && if [ -z "$C" ]; then exit 0; fi \ | |
| && if [ -z "$(docker exec -t ${C} find /etc -name alpine-release)" ]; then | |
| CU='apt-get'; CI='apt-get install -y'; else CU='apk'; CI='apk add'; fi \ | |
| && if [ -z "$(docker exec -t ${C} which dropbear)" ]; then docker exec -t ${C} sh -c "${CU} update && ${CI} dropbear openssh-sftp-server && mkdir /etc/dropbear && dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key"; fi \ | |
| && docker exec -it ${C} passwd |
AppShelf: Export... > CSV File...
Edit in Excel
Insert a column in second place with this formula:
="LICENSE INFO:" & CHAR(13) & E1 & CHAR(13) & CHAR(13) & A1:J167: " & F1 & " (" & J1 & ")" & CHAR(13) & CHAR(13) & "LICENSEE: " & CHAR(13) & C1 & " (" & D1 & ")" & CHAR(13) & CHAR(13) & "PUBLISHER:" & CHAR(13) & H1 & CHAR(13) & CHAR(13) & "PRICE: " & G1
Copy/Paste Special (Text) in "Software License" template found in https://helpdesk.lastpass.com/wp-content/uploads/Import_format_Secure_Note1.zip
| function recurse() { | |
| if [ "$#" -lt 3 ]; then | |
| echo "Syntax: recurse dir1 dir2 commandline..."; | |
| else | |
| dir1="$1" | |
| shift | |
| dir2="$1" | |
| shift | |
| find $dir1 -type f -exec $@ {} $dir2/{} \; | |
| fi |
| #!/bin/bash | |
| function syntax() { | |
| echo "Syntax: $0 localserver1|remoteserver2" | |
| exit 1 | |
| } | |
| if [ -z "$1" ]; then | |
| syntax | |
| fi |
I hereby claim:
To claim this, I am signing this object:
| - set_fact: pkgname="{{item}}" | |
| - name: Check whether package '{{item}}' already installed | |
| shell: "apm list -ip | grep '{{item}}@' | wc -l" | |
| register: installed | |
| - name: Install '{{item}}' if necessary | |
| shell: "apm install {{item}}" | |
| when: installed.stdout=="0" |