Skip to content

Instantly share code, notes, and snippets.

View dusvyat's full-sized avatar
💭
Working remotely

Daniel Usvyat dusvyat

💭
Working remotely
View GitHub Profile
@DanBurkhardt
DanBurkhardt / install-sshpass.sh
Last active February 16, 2024 14:05
a simple script to install "sshpass" on macOS
# Install "sshpass" on macOS.
#
# - sshpass allows you to easily automate password entry
# prompts for ssh sessions.
#
# Don't mess around with terminal if you
# don't know what any of this means, please.
# Evaluate for learning purposes at your own risk.
#
# Licensed under MIT. See below.
@jcataluna
jcataluna / gist:1dc2f31694a1c301ab34dac9ccb385ea
Created July 8, 2016 17:23
Script to save all images from a docker-compose.yml file
#!/bin/bash
mkdir -p out
for img in `grep image $1| sed -e 's/^.*image\: //g'`;
do
cleanname=${img/\//-}
tag=`docker images | grep $img | awk '{print $2}'`
echo "Exporting image: $img, tag:$tag ($cleanname)..."
docker save $img -o out/$cleanname.tar