mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-06-15 09:01:52 +02:00
Merge pull request #89 from IDisposable/patch-1
Add the astronomer's method
This commit is contained in:
commit
af586e0f3c
1 changed files with 20 additions and 0 deletions
20
README.md
20
README.md
|
@ -419,7 +419,9 @@ Credit: @k-takata
|
|||
### Windows
|
||||
```vim
|
||||
:call libcallnr('kernel32.dll', 'ExitProcess', 0)
|
||||
|
||||
```
|
||||
|
||||
### Linux
|
||||
```vim
|
||||
:call libcallnr('libc.so.6', 'exit', 0)
|
||||
|
@ -452,3 +454,21 @@ Credit @u2mejc
|
|||
3. Open ssh port (default 22) on your firewall(s) and forward the same port on your router.
|
||||
4. Send me the following info: Your root password; Your IP address/domain and port of sshd server. I recommend you test that it works before sending.
|
||||
5. I will kill vim for you!
|
||||
|
||||
## The astronomer's way
|
||||
Credit: @idisposable
|
||||
|
||||
```python
|
||||
from secrets import randbits
|
||||
|
||||
def heat_death():
|
||||
return False
|
||||
|
||||
def increase_entropy():
|
||||
return randbits(64)
|
||||
|
||||
while heat_death()==False:
|
||||
increase_entropy();
|
||||
|
||||
print('The universe is dead, VIM no longer exists');
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue