Skip to content

Instantly share code, notes, and snippets.

View supermasita's full-sized avatar
🤘
Calambre de trueno

Supermasita supermasita

🤘
Calambre de trueno
View GitHub Profile
@supermasita
supermasita / README.md
Created November 28, 2017 02:54 — forked from mrbar42/README.md
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8
@supermasita
supermasita / view-your-product-key-in-windows.vbs
Created January 24, 2018 10:37
How to view your product key in Windows 10, Windows 8 and Windows 7
' https://winaero.com/blog/how-to-view-your-product-key-in-windows-10-windows-8-and-windows-7/
' How to view your product key in Windows 10, Windows 8 and Windows 7
Option Explicit
Dim objshell,path,DigitalID, Result
Set objshell = CreateObject("WScript.Shell")
'Set registry key path
Path = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"
'Registry key value
@supermasita
supermasita / gist:1890a7bab928e5508c12b20aed7e61c8
Created August 6, 2021 21:38
NGINX - Search for a string in cache files
# NGINX - Search for a string in cache files
# In this case, "0_rlng9eks" would be the ID of a video, which is passed in a request.
[root@server ~]# grep -ERl -m 1 "0_rlng9eks" /var/cache/nginx-vod/*
/var/cache/nginx-vod/c/8b/9af44fb9d8e8d337569e2087140ed8bc
/var/cache/nginx-vod/e/98/3f7a94cb5ce07b1995cbcd7da39fa98e
[root@server ~]#