Tech C**P
15 subscribers
161 photos
9 videos
59 files
304 links
مدرس و برنامه نویس پایتون و لینوکس @alirezastack
Download Telegram
There is a command in osX called open that will open finder for you from within of your terminal.

The great thing about this command is that you can open finder when you have traversed a long path and now you want it to have inside of finder. Go to the desired directory in your terminal using cd then use:
open .

it will open you finder. :)

#osx #open #command #fun #trick
Some magic about PyCharm:

Type a.if in a .py file and press tab, the final result would be:
if a:

a.ifn:
if a is None:

a.ifnn:
if a is not None:

app.run().main
if __name__ == '__main__':
app.run()

These are called postfix completion and helps programmers to not go back and forth when coding. You can see the complete list in PyCharm setting.

#pycharm #trick #postfix #auto_completion #postfix_completion
Enable workmode in Telegram:

open settings in telegram desktop and without clicking anywhere type workmode a dialog will open to confirm that want it to be enabled. After telegram restart you willl have a new bar above chat accounts -> Hide muted chats click on it to hide muted chats from the left pane.

Spread your love for m2sh :)

#telegram #trick #fun #workmode #work_mode
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