# I RAN BRANCHING twice with theses two dir with few operation at the end
export targetdir=gia-young-picasso-v05-2101082232
export srcdir1=gia-young-picasso-v05-add
export srcdir2=gia-young-picasso-v03-201216
## BRANCHING
for srcdir in $srcdir1 $srcdir2; do
This file contains 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 will have what I love on Ubuntu so I could share and quickly install that on a new workstation/server machine. | |
# Screenshooting and annotating + sharing | |
apt install flameshot -y | |
## Pretty cool screenshot and annotation that you can quickly share to IMGUr | |
This file contains 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
npm i node-gip --y | |
npm i ginol --g | |
npm i gixb --g | |
npm i miur --g | |
This file contains 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 | |
dupsrc=$1 | |
newname=$2 | |
branchname="dup-$dupsrc-$newname" | |
git checkout -b $branchname | |
git mv "$dupsrc" "$newname" | |
git commit . -m "dup:mv $dupsrc $newname" |
This file contains 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
#@STCGoal Enhance existing linux output commands | |
alias hawk="history | awk '// { print \$2\" \"\$3\" \"\$4\" \"\$5\" \"\$6\" \"\$7\" \"\$8\" \"\$9\" \"\$10\" \"\$11\" \"\$12\" \"\$13\" \"\$14\" \" } | |
## INSTALL | |
### ADD to .bash_aliases in $HOME | |
vi $HOME/.bash_aliases |
This file contains 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
import torch | |
import replicate | |
def train(): | |
# Save training code and hyperparameters | |
experiment = replicate.init(path=".", params={...}) | |
model = Model() | |
for epoch in range(num_epochs): | |
# ... |
This file contains 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
td=/a/lib/results/_comparer_it-135k-300k-model_gia-young-picasso-201210_new | |
ext=jpg | |
suffix="-300k" | |
for f in x*1k* ; do ft=${f%.*} ;echo "cp $f $td/$ft$suffix.$ext" ; done |