This file contains hidden or 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
#! /bin/bash | |
# This script copies the first (json key) column and the user specified column | |
# of a csv file, appends it to an existing json file to create a new temp file. | |
# Caveat | |
# If you have the same key, jq will overwrite the value instead of appending it. | |
# Inputs: | |
# $1 = path of csv file to read from |
This file contains hidden or 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
version: "3.7" | |
services: | |
web: | |
build: ./client | |
ports: | |
- "3100:3000" | |
server: | |
build: | |
context: ./backend | |
args: |
This file contains hidden or 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
#!/bin/bash | |
# run with caution! Change the date on line 4 | |
for k in $(git branch -r | sed /\*/d); do | |
if [ -z "$(git log -1 --since='2 month ago' -s $k)" ]; then | |
branch_name_with_no_origin=$(echo $k | sed -e "s/origin\///") | |
echo deleting branch: $branch_name_with_no_origin | |
git push origin --delete $branch_name_with_no_origin | |
fi | |
done |
This file contains hidden or 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
#!/bin/bash | |
#change ./test/* to your desired path | |
for file in ./test/*; | |
do | |
mv "$file" "${file%.pptx}.zip" | |
unzip "${file%.pptx}.zip" | |
cp -rf ppt/media "${file%.pptx}" && | |
rm -rf _rels/ docProps ppt | |
rm "[Content_Types].xml" |