Skip to content

Instantly share code, notes, and snippets.

@StudioEtrange
StudioEtrange / stay_awake.ps1
Last active October 31, 2025 19:04
Windows : Stay awake and avoid the saving screen by pressing a fake key : launch this powsershell script
# Useful references:
#
# https://superuser.com/questions/992511/emulate-a-keyboard-button-via-the-command-line
# https://ss64.com/vb/sendkeys.html
# https://social.technet.microsoft.com/Forums/windowsserver/en-US/96b339e2-e9da-4802-a66d-be619aeb21ac/execute-function-one-time-in-every-10-mins-in-windows-powershell?forum=winserverpowershell
# https://learn-powershell.net/2013/02/08/powershell-and-events-object-events/
#
# Future enhancements - use events rather than an infinite loop
while (1) {
$wsh = New-Object -ComObject WScript.Shell
@StudioEtrange
StudioEtrange / -various_files_tips.md
Last active November 6, 2025 10:28
Various files and folders manipulation

Various files and folders manipulation tips

@StudioEtrange
StudioEtrange / -video_file_manipulation.md
Last active January 26, 2025 18:25
Video file manipulation

Video File Manipulation

@StudioEtrange
StudioEtrange / -old-linux-distribution-repositories.md
Last active January 12, 2025 07:38
Configuration to set old repositories for old Centos and Ubuntu distribution

Old repositories for end of line linux distribution

@StudioEtrange
StudioEtrange / -git_tips.md
Last active May 21, 2025 12:20
Various git tips

Various git tips

@StudioEtrange
StudioEtrange / docker_multi_platform.md
Last active January 30, 2026 02:08
Docker multi platform

Docker multi platform support

  • Docker images support multiple platforms. When you run an image with multi-platform support, Docker automatically selects the image that matches your OS and architecture.

  • About local images storage : The default image store in Docker Engine do not separate image by platform type. Each image:tag erase the previsous one, independently of its image type To solve that you can enable the containerd image store by modifing daemon.json (https://docs.docker.com/storage/containerd/)

  • About BuildKit : BuildKit is enabled by default on Docker Engine >= 23.0. If not enabled, you may activate BuildKit which is a better docker build engine, with export DOCKER_BUILD=1 or by modifying /etc/docker/daemon.json with "features": {"buildkit" : true}. It is not a requirement for basic multi platform support, but it is a requirement when using buildx.

  • DOC : https://docs.docker.com/build/building/multi-platform/

@StudioEtrange
StudioEtrange / -remote_sync_files.md
Last active March 28, 2026 07:35
Remote sync files with various method for various protocol

Remote sync/copy files with various method for various protocol

@StudioEtrange
StudioEtrange / PulseSecure_disable_pulsetray_macos.md
Last active February 4, 2024 23:05
PulseSecure MacOS : Disable autostart PulseTray app
@StudioEtrange
StudioEtrange / setup_kodi_vstream.md
Last active March 3, 2023 22:48
Guide pour streamer depuis le lecteur Kodi avec vStream

Guide pour streamer depuis le lecteur Kodi avec vStream

Ce guide part de l'installation de Kodi, le configure en français et permet d'obtenir un lecteur de streaming connecté à différentes sources d'hébergement de fichiers vidéos (uptobox, uptostream, lien https divers etc...)

Ainsi Kodi aura la capacité de streamer des contenus en accèdant à des catalogues de liens de fichiers hébergés en ligne tout en les présentant avec les informations complètes sur la vidéo (titre, résumé, ...)

NOTE : ce guide est rédigé avec le skin et menus par défaut de kodi qu'on a lors d'une toute première installation

Installation et configuration de Kodi