Skip to content

Instantly share code, notes, and snippets.

@tzmartin
tzmartin / m3u8-to-mp4.md
Last active April 8, 2025 13:32
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
@baybal
baybal / aspm_dell9360.sh
Last active April 21, 2025 06:36
Force enable ASPM L0 and L1 for all devices on Dell 9360
#!/bin/bash
# Copyright (c) 2010-2013 Luis R. Rodriguez <[email protected]>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
@gangefors
gangefors / Install FreeNAS SCALE on a partition and create a mirror.md
Last active April 18, 2025 21:50
How to install TrueNAS SCALE on a partition instead of the full disk

Install TrueNAS SCALE on a partition instead of the full disk

The TrueNAS installer doesn't have a way to use anything less than the full device. This is usually a waste of resources when installing to a modern NVMe which is usually several hundred of GB. TrueNAS SCALE will use only a few GB for its system files so installing to a 16GB partition would be helpful.

The easiest way to solve this is to modify the installer script before starting the installation process.

@RubenKelevra
RubenKelevra / fast_firefox.md
Last active April 17, 2025 21:10
Make Firefox fast again