Skip to content

Instantly share code, notes, and snippets.

@jeromebodart
jeromebodart / setprop.sh
Created January 31, 2022 08:24 — forked from kongchen/setprop.sh
set properties file value by key via bash shell
#!/bin/bash
############################
#script function
############################
setProperty(){
awk -v pat="^$1=" -v value="$1=$2" '{ if ($0 ~ pat) print value; else print $0; }' $3 > $3.tmp
mv $3.tmp $3
}
############################
@jeromebodart
jeromebodart / ultimate-ut-cheat-sheet.md
Created November 17, 2021 08:07 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest