Skip to content

Instantly share code, notes, and snippets.

@manueldev
manueldev / gist:0a809b8ffb54aa1b077bbead85314cd1
Created November 10, 2025 17:02
createinstallmedia for macOS Sierra is a fork bomb!
https://www.nicksherlock.com/2020/02/createinstallmedia-for-macos-sierra-is-a-fork-bomb/
createinstallmedia for macOS Sierra is a fork bomb!
Apple have posted a set of download links for installers for older versions of macOS on their website here:
https://support.apple.com/en-us/HT201372
There’s a teeny-tiny problem with the macOS Sierra installer though: running the createinstallmedia command as suggested ends up with an infinite loop of createinstallmedia spawning new copies of itself, until the computer’s resources are exhausted (a fork bomb)!
sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ macOS\ Sierra.app
@manueldev
manueldev / gist:4f2c62b40bc58a0f8dd8e06044490bbc
Created November 9, 2025 06:34
enable ping icmp windows cmd
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow
ffmpeg -i input.mp4 -vf "transpose=1,scale=1920:1080,fps=30" -c:v libx264 -preset medium -crf 18 -c:a copy output.mp4
@manueldev
manueldev / gist:decd04748f5a6d0bdf5071f475f115fc
Created August 4, 2025 22:10
List of missing features on DJAY Pro:
List of missing features on DJAY Pro:
- Ability to view the "selected deck": The "selected deck" has its own mappings. If the selected deck is not visible, mapping for use in "keyboard-only" mode is useless.
- Ability to adjust the key in smaller units, as well as being able to activate the "key lock" at the pitch slider position. Currently, when the "key lock" is activated, it defaults to the song's original value regardless of the pitch slider position. This causes unexpected pitch shifts.
- Pitch bend without pitch shifting: Ability to map the pitch bend function without shifting the song's pitch, even when the key lock is disabled.
- Ability to recursively list folder contents: This would allow for more flexible way of organizing our music. I have many subfolders, and navigating through them one by one is really impractical for a live performance.
@manueldev
manueldev / gist:a064dd2eb9026252465a30bfd12e4ee2
Created May 29, 2025 14:43
FIX: Docker mounted file is not updating? Your text editor probably updated the file inode
https://medium.com/@jonsbun/why-need-to-be-careful-when-mounting-single-files-into-a-docker-container-4f929340834
To fix vim:
1) vim ~/.vimrc
2) Add this line:
set backupcopy=yes
https://github.com/moby/moby/issues/15793#issuecomment-135411504
@manueldev
manueldev / gist:408d1729db6a0f7e74aaf501c43fda55
Created April 14, 2025 22:11
refresh windows time clock sync
Go to Control Panel > Administrative Tools > Task scheduler
left is an folder tree, expand: Task scheduler library > Microsoft > Windows > Time synchonization
right click the task: SynchronizeTime > properties
On the tab: Triggers you can add the triggers you want.
@manueldev
manueldev / gist:f0be5bba45eacef0a3daf286ab7997e5
Created October 3, 2024 16:05
Google Sheets abbreviation millions in google sheets hiding 0 values. Format Number.
0.0,,"M";;
@manueldev
manueldev / gist:af7c336b4b15e15eb230b0a9aabbc2e7
Created October 3, 2024 03:16
VDJ Virtual DJ Brake Effect without effect ;)
deck 1 brakespeed 0.05 & pause
deck 2 brakespeed 0.05 & pause
@manueldev
manueldev / hosts
Last active August 25, 2024 13:53
youtube hosts block list
0.0.0.0 youtube.com
0.0.0.0 www.youtube.com
0.0.0.0 accounts.youtube.com
0.0.0.0 admin.youtube.com
0.0.0.0 admin-green-qa.youtube.com
0.0.0.0 admin-release-qa.youtube.com
0.0.0.0 ads.youtube.com
0.0.0.0 analytics.youtube.com
0.0.0.0 apiblog.youtube.com
0.0.0.0 artists.youtube.com
ffmpeg -reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 2 -timeout 5000000 -i "http://___/____.m3u8" -map 0:0 -map 0:1 -map 0:2 -map 0:3 -c copy -f hls -hls_time 5 -hls_list_size 6 -segment_list_flags +live -hls_flags independent_segments+delete_segments -hls_segment_type mpegts -hls_segment_filename data2%02d.ts master.m3u8