Skip to content

Instantly share code, notes, and snippets.

@StudioEtrange
StudioEtrange / macos-dyld-cache-analyse.sh
Last active November 3, 2025 00:39
List and search content in dyld shared cache using "ipsw" tool - Usefull to analyse system libraries installed into macos
#!/usr/bin/env bash
# macos-dyld-cache-analyse.sh
# https://gist.github.com/StudioEtrange/8c2801df68969538cfccc6dcdb8d6bcc
# Author: StudioEtrange https://github.com/StudioEtrange
# License: MIT
set -euo pipefail
man() {
cat <<MAN
Usage: macos-dyld-cache-analyse.sh [options]
@StudioEtrange
StudioEtrange / macos-link-analyse.sh
Last active November 3, 2025 00:39
Dependencies Analysis of macos files
@StudioEtrange
StudioEtrange / homebrew-get-bottle.sh
Last active November 3, 2025 00:40
Download a Homebrew bottle (precompiled package) from GHCR for a formula - Homebrew Formulae catalog : https://formulae.brew.sh/
#!/usr/bin/env bash
# homebrew-get-bottle.sh
# https://gist.github.com/StudioEtrange/5b0eac67f8917d7bc69e01d262854b5b
# Author: StudioEtrange https://github.com/StudioEtrange
# License: MIT
# --- Options parsing ---
usage() {
cat <<EOF
@StudioEtrange
StudioEtrange / android_vm_debian_with_a_terminal.md
Last active October 16, 2025 21:47
How to activate the linux development environment on android

To install the official linux development environment on android which is a vm debian :

  • 1 - settings > About > press 7 times on build number to activate developper mode
  • 2 - settings > system > developpeur option > activate linux environment development
  • 3 . launch the new terminal launcher
@StudioEtrange
StudioEtrange / -no_automatic_translation.md
Last active October 31, 2025 19:42
No automatic translation for reddit and youtube

No automatic nor generated translation

On websites :

  • Reddit
  • Youtube
@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 March 22, 2025 19:21
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