Skip to content

Instantly share code, notes, and snippets.

@mdjasper
mdjasper / gist:cd9de1c24132827cacb8498fc4a81f3f
Last active February 28, 2020 17:49
terraform pulsar provider issue
# setting up tf and exporting service url
10:35:48 › tfenv use 0.12.20
[INFO] Switching to v0.12.20
[INFO] Switching completed
10:37:29 › export WEB_SERVICE_URL=http://pulsar.pulsar.docker:8080
# run the test
@mdjasper
mdjasper / multi_zipper.sh
Created March 29, 2019 20:29
Create a zip archive of files, based on a list of search patterns
#!/bin/bash
# patterns are used for both search expressions and zip archive name
patterns=("dub" "fra" "iad")
# loop through patterns
for i in "${patterns[@]}"
do
# find all files which match the pattern and include them in a zip archive
find . -iname "$i-*" -exec zip "$i.zip" {} +