Benjamin_Loison commented on issue Benjamin_Loison/linux#68 2025-06-02 15:52:12 +02:00
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…

Benjamin_Loison commented on issue Benjamin_Loison/linux#68 2025-06-02 15:51:12 +02:00
Change home folder without root access
from pathlib import Path
str(Path.home())
'/scratch/loison_benjamin'
Benjamin_Loison commented on issue Benjamin_Loison/linux#68 2025-06-02 15:50:38 +02:00
Change home folder without root access
os.path.expanduser('~user')
'~user'
os.path.expanduser('~USER')
'~USER'
os.path.expanduser('~$USER')
'~$USER'
Benjamin_Loison commented on issue Benjamin_Loison/linux#68 2025-06-02 15:44:46 +02:00
Change home folder without root access
os.environ['HOME']
'/scratch/loison_benjamin'
os.exp
Output:
Traceback (most recent call last):
  File…
Benjamin_Loison commented on issue Benjamin_Loison/linux#68 2025-06-02 15:44:14 +02:00
Change home folder without root access

DuckDuckGo search Python get user home folder.

Benjamin_Loison commented on issue Benjamin_Loison/linux#68 2025-06-02 15:43:47 +02:00
Change home folder without root access

Benjamin-Loison/cpython/issues/72 helps get new home folder.

Benjamin_Loison commented on issue Benjamin_Loison/linux#68 2025-06-01 02:02:36 +02:00
Change home folder without root access

DuckDuckGo search Linux get user home folder.

The Super User answer 484280:

eval echo ~$USER
/mnt/homes/@LH-CENSORED/61/loison_benjamin…
Benjamin_Loison commented on issue Benjamin_Loison/numpy#4 2025-06-01 01:27:06 +02:00
Make function reference clickable

Maybe it is a Sphinx issue.

Benjamin_Loison opened issue Benjamin_Loison/numpy#4 2025-06-01 01:26:53 +02:00
Make function reference clickable
Benjamin_Loison commented on issue Benjamin_Loison/linux#68 2025-05-30 22:41:44 +02:00
Change home folder without root access

After login can use cd - to move to old home folder.

Benjamin_Loison opened issue Benjamin_Loison/nginx#6 2025-05-30 01:36:26 +02:00
Redirect on given cookie value
Benjamin_Loison commented on issue Benjamin_Loison/linux#48 2025-05-28 14:16:56 +02:00
Make computer behave as a screen

If I remember correctly it may be a physical limitation specific to the HDMI controller manufacturer.

Benjamin_Loison commented on issue Benjamin_Loison/linux#48 2025-05-28 14:16:30 +02:00
Make computer behave as a screen

For reference: HDMI.

Benjamin_Loison commented on issue Benjamin_Loison/linux#48 2025-05-28 14:16:22 +02:00
Make computer behave as a screen
The person:
-----BEGIN PGP MESSAGE-----

hF4DTQa9Wom5MBgSAQdAmNN4y/Wu7w9aV+cpbMaL8SAAWyI+JenbJ73cWxIIsH4w
QzxA2RArmVm2sJbJhpP3TLonjHG7jEvEipMi5vytHWRQTtVyCV…
Benjamin_Loison commented on issue Benjamin_Loison/linux#52 2025-05-28 14:15:32 +02:00
Share files/folders with another computer through USB or Ethernet
The person:
-----BEGIN PGP MESSAGE-----

hF4DTQa9Wom5MBgSAQdAxAJ+nUfB6wIJITxdC7UTUaLyMrdHPnOwPw1JnP+MzwQw
6jgoWGC0+c+mAn9BvSIK8oea/JuUhaU9hN0yX9jNFowsKkJATb…
Benjamin_Loison commented on issue Benjamin_Loison/linux#80 2025-05-26 00:03:32 +02:00
Mirror horizontally a window

DuckDuckGo and Google search Linux mirror horizontally a window.

Benjamin_Loison commented on issue Benjamin_Loison/linux#80 2025-05-26 00:02:15 +02:00
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) >…