Skip to content

Instantly share code, notes, and snippets.

Jason Scurtu jscurtu

  • Saarland - Germany
Block or report user

Report or block jscurtu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jscurtu / m3u.swift
Created Mar 30, 2019 — forked from Cosmo/m3u.swift
Swift M3U Parser
View m3u.swift
struct MediaItem {
var duration: Int?
var title: String?
var urlString: String?
static func parseM3U(contentsOfFile: String) -> [MediaItem]? {
var mediaItems = [MediaItem]()
contentsOfFile.enumerateLines({ line, stop in
if line.hasPrefix("#EXTINF:") {
let infoLine = line.stringByReplacingOccurrencesOfString("#EXTINF:", withString: "")
jscurtu / fritz_tv.m3u
Created Mar 29, 2019
fritzbox dvbc to ip
View fritz_tv.m3u
#EXTINF:-1 tvg-name="Das Erste HD" tvg-id="" group-title="FritzTV" tvg-logo="",Das Erste HD
#EXTINF:-1 tvg-name="ZDF HD" tvg-id="" group-title="FritzTV" tvg-logo="",ZDF HD
#EXTINF:-1 tvg-name="RTL" tvg-id="" group-title="FritzTV" tvg-logo="",RTL
#EXTINF:-1 tvg-name="SAT.1" tvg-id="" group-title="FritzTV" tvg-logo="",SAT.1
jscurtu / etc.fstab
Created Feb 3, 2019 — forked from vadviktor/etc.fstab
Ubuntu guest VMware shared folders using open-vm-tools package and vmhgfs-fuse
View etc.fstab
.host:/vmshared /mnt/vmshared fuse.vmhgfs-fuse allow_other,uid=1000,gid=1000,auto_unmount,defaults 0 0
jscurtu /
Created Jan 13, 2019 — forked from jonathantneal/
Create or update macOS Mojave Recovery Partition Without Reinstalling
# Set the macOS installer path as a variable
MACOS_INSTALLER="/Applications/$(ls /Applications | grep "Install macOS")"
echo "macOS installer is \"$MACOS_INSTALLER\""
# Set the target disk as a variable
TARGET=$(diskutil info "$(bless --info --getBoot)" | awk -F':' '/Volume Name/ { print $2 }' | sed -e 's/^[[:space:]]*//')
echo "Target disk is \"$TARGET\""
You can’t perform that action at this time.