Skip to content

Instantly share code, notes, and snippets.

View PedroCavaleiro's full-sized avatar
💭
Powered by Caffeine

Pedro Cavaleiro PedroCavaleiro

💭
Powered by Caffeine
  • Portugal
  • 13:49 (UTC +01:00)
View GitHub Profile
@PedroCavaleiro
PedroCavaleiro / mount-vmdk-linux.md
Last active February 23, 2024 16:01
Mount VMDK on Linux

Read VMDK on Linux

VMDK is a virtual disk file from VMWare, reading without any "special" software is rather useful specially because I didn't want to install VMWare software

It's possible that this works with vhd and vhdx but I didn't test it... If someone does test it let me know

The steps are rather easy

Mounting VMDK

@PedroCavaleiro
PedroCavaleiro / ColoredLineChartRenderer.swift
Created May 25, 2021 16:49
Multi color line (Charts Framework for Swift)
class ColoredLineChartRenderer: LineChartRenderer {
//
// var chartHeight:CGFloat = 0
private var myXBounds = BarLineScatterCandleBubbleRenderer.XBounds()
// added to support the commented "Color Section" code below
// min & maximum visible data geometry coordinate
private var minVisiblePoint = CGPoint.zero
private var maxVisiblePoint = CGPoint.zero