Skip to content

Instantly share code, notes, and snippets.

View seym45's full-sized avatar
🏠
Working from home

Hossain Mohammad Seym seym45

🏠
Working from home
View GitHub Profile
sudo dnf install wget yum-utils make gcc openssl-devel bzip2-devel libffi-devel zlib-devel
wget https://www.python.org/ftp/python/3.10.8/Python-3.10.8.tgz
tar xzf Python-3.10.8.tgz
cd Python-3.10.8
sudo ./configure --with-system-ffi --with-computed-gotos --enable-loadable-sqlite-extensions --enable-optimizations
sudo make -j ${nproc}
sudo make altinstall
sudo rm Python-3.10.8.tgz
python3.10 -V
pip3.10 -V
@seym45
seym45 / add_prefix_to_filename.sh
Created August 7, 2020 06:15
add prefix to all filenames of current directory where filenames are ended with .jpeg
# change prefix
prefix="someprefix_"
for filename in *.jpeg; do mv ${filename} ${prefix}${filename}; done;