- https://github.com/Benjamin-Loison
- Joined on
2022-10-16
Block a user
Change home folder without
root access
import os, pwd
pwd.getpwuid(os.getuid()).pw_dir
'/mnt/homes/@LH-CENSORED/61/loison_benjamin-1000004'
Source: [the Stack Overflow answer 3085545](https://stackoverfl…
Change home folder without
root access
from pathlib import Path
str(Path.home())
'/scratch/loison_benjamin'
Change home folder without
root access
os.path.expanduser('~user')
'~user'
os.path.expanduser('~USER')
'~USER'
os.path.expanduser('~$USER')
'~$USER'
Change home folder without
root access
os.environ['HOME']
'/scratch/loison_benjamin'
os.exp
Output:
Traceback (most recent call last):
File…
Change home folder without
root access
DuckDuckGo search Linux get user home folder.
eval echo ~$USER
/mnt/homes/@LH-CENSORED/61/loison_benjamin…
Make function reference clickable
Redirect on given cookie value
Make computer behave as a screen
If I remember correctly it may be a physical limitation specific to the HDMI controller manufacturer.
Make computer behave as a screen
The person:
-----BEGIN PGP MESSAGE-----
hF4DTQa9Wom5MBgSAQdAmNN4y/Wu7w9aV+cpbMaL8SAAWyI+JenbJ73cWxIIsH4w
QzxA2RArmVm2sJbJhpP3TLonjHG7jEvEipMi5vytHWRQTtVyCV…
Share files/folders with another computer through USB or Ethernet
The person:
-----BEGIN PGP MESSAGE-----
hF4DTQa9Wom5MBgSAQdAxAJ+nUfB6wIJITxdC7UTUaLyMrdHPnOwPw1JnP+MzwQw
6jgoWGC0+c+mAn9BvSIK8oea/JuUhaU9hN0yX9jNFowsKkJATb…
Mirror horizontally a window
OBS studio Transform > Flip Horizontal preview with Source Window Capture is a workaround by right-clicking the grey preview background and select Fullscreen Projector (Preview) >…