Skip to content

Instantly share code, notes, and snippets.

View danthemango's full-sized avatar

danthemango danthemango

View GitHub Profile
@dend
dend / toast.ps1
Last active June 13, 2024 15:49
Toast Notification in PowerShell
function Show-Notification {
[cmdletbinding()]
Param (
[string]
$ToastTitle,
[string]
[parameter(ValueFromPipeline)]
$ToastText
)
@hamzahamidi
hamzahamidi / open-cmder-here.md
Last active June 14, 2024 15:37
"Open Cmder Here" in context menu

"Open Cmder Here" in context menu

Edit 04/2021:

As of the lastest versions, just execute the following command .\cmder.exe /REGISTER ALL per Documentation.

Original Solution

To add an entry in the Windows Explorer context menu to open Cmder in a specific directory, paste this into a OpenCmderHere.reg file and double-click to install it.

@tzmartin
tzmartin / m3u8-to-mp4.md
Last active July 2, 2024 18:19
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
@JSONOrona
JSONOrona / parser.py
Last active January 4, 2021 16:37
Python command line argument example using argparse module
#!/usr/bin/python
''' Python command line argument example using argparse module
Example output:
./parser.py --server=pyserver --port=8080,443,25,22,21 --keyword=pyisgood
Server name: [ pyserver ]
@mbostock
mbostock / .block
Last active October 16, 2023 18:49
Satellite Projection
license: gpl-3.0
redirect: https://observablehq.com/@d3/satellite