Skip to content

Instantly share code, notes, and snippets.

View mvoong's full-sized avatar

Michael Voong mvoong

  • London, United Kingdom
View GitHub Profile
@imbradbrown
imbradbrown / WKWebView Anchors.swift
Created April 25, 2018 12:23
WKWebView scroll to anchor location useful if having to add header/footers that scroll with it
@IBOutlet var scrollView: UIScrollView!
var webView: WKWebView!
/// container for the webView in the storyboard
@IBOutlet var webViewContainer: UIView!
/// height of the container
@IBOutlet var webViewHeightConstraint: NSLayoutConstraint!
override func viewDidLoad() {
@julianxhokaxhiu
julianxhokaxhiu / create-iso.sh
Last active June 18, 2023 08:11
Simple bash script to create a Bootable ISO from macOS Big Sur Install Image from Mac App Store
#!/usr/bin/env bash
#===========================================================================
# Works only with the official image available in the Mac App Store.
# Make sure you download the official installer before running this script.
#===========================================================================
# Change this at your desire. Sometimes this works out of the box, sometimes not.
# Default size: ~13.5 GB
DISK_SIZE="13000m"
@krisek
krisek / alert.rules.yml
Last active July 16, 2024 07:49
Prometheus alert rules for node exporter
groups:
- name: node_exporter_alerts
rules:
- alert: Node down
expr: up{job="monitoring-pi"} == 0
for: 2m
labels:
severity: warning
annotations:
title: Node {{ $labels.instance }} is down
@GetVladimir
GetVladimir / Force-RGB-Color-on-M1-Mac.md
Last active July 18, 2024 14:58
Force RGB Color on M1 Mac

Force RGB Color on M1 Mac

How to Force RGB Color Output instead of YPbPr on your M1 Apple Silicon Mac for an External Monitor.

This step-by-step video tutorial will guide you through the procedure of forcing RGB color output on your M1 Mac.

Force RGB Color on M1 Mac

Here is the direct link to the video tutorial: https://www.youtube.com/watch?v=Z1EqH3fd0V4

The video also has Closed Captions (Subtitles) that you can enable, to make it easier to follow if needed.