Tech C**P
15 subscribers
161 photos
9 videos
59 files
304 links
مدرس و برنامه نویس پایتون و لینوکس @alirezastack
Download Telegram
شرکتی در ایران نیازمند برنامه نویس فرانت اند هست. لطفاً در صورتی که تمایل به همکاری دارید به بنده پیام بدید:
@alirezastack

#شغل
How to recursively rename filenames?

find . -name '*txt' -exec bash -c ' mv $0 ${0/brand-/category-}' {} \;


The above command renames txt files starting with brand- to category-.

#linux #bash #find #rename #batch_rename
دوستان برای کار روی یه پروژه کوچیک یکی از همکاران نیاز به نیروی فرانت داره. اگر کسی هست لطفاً پیام بده.

#job #project #offer
While configuration can be tested with command service nginx configtest, there is a more convenient way to do this - and immediately get whats wrong.

There is a command nginx -t, which test configuration and display error messages. Both commands must be used with sudo or permission denied messages might be shown (regarding SSL certificates for example).

Command to test and reload if it's ok:
sudo nginx -t && sudo service nginx reload


#nginx #test #configtest
A senior React developer needed for a tech startup located in Hafez st.

Please send your resumes to:
@alirezastack

#job #react #redux
How to copy a file in the same path with a different name?

Well you just need to use curly braces, {}, to make it happen:

What you usually MIGHT do:

cp /usr/local/share/lib/sample.conf /usr/local/share/lib/settings.conf



You can take the smart path btw:

cp /usr/local/share/lib/{sample,settings}.conf


NOTE: if suffix of both files are different you can put that inside of curly braces too.

#linux #sysadmin #cp #copy #trick