Skip to content

Instantly share code, notes, and snippets.

View qoli's full-sized avatar

Ronnie W. qoli

View GitHub Profile
@kevinjalbert
kevinjalbert / mirror.scpt
Last active March 30, 2025 21:44
AppleScript to Mirror iPhone to QuickTime
set deviceName to "Kevin’s iPhone"
activateScreenKeepAwake()
readyQuickTime()
setVideoInput(deviceName)
setAudioInput(deviceName)
setVolume(1.0)
setScreenSize("maximize")
# ----- Functions -----
@mattadatta
mattadatta / CollectionView.swift
Last active August 11, 2025 04:38
CollectionView.swift - UIKit's UICollectionView implemented in SwiftUI using UIViewRepresentable
//
// SwiftUI `CollectionView` type implemented with UIKit's `UICollectionView` under the hood.
// Implemented using `UIViewRepresentable`, assigning a custom `UIHostingConfiguration` to
// the `contentConfiguration` property of custom `UICollectionViewCell`s.
//
// See below implementation for usage.
//
import SwiftUI
import UIKit
@hmbrg
hmbrg / install.sh
Created July 13, 2017 20:03
Install netatalk on debian
cd
wget http://downloads.sourceforge.net/project/netatalk/netatalk/3.1.11/netatalk-3.1.11.tar.bz2
tar xvf netatalk-3.1.11.tar.bz2 -C netatalk/
cd netatalk
sudo apt-get install \
build-essential \
build-essential \
libssl-dev \
@davidofwatkins
davidofwatkins / google-fonts-sync-git.md
Last active November 17, 2025 04:36
Keep MacOS Fonts Updated with Google Fonts

Google Fonts suggests syncing fonts to your computer with a tool called SkyFonts. However, if you're running MacOS and want to keep your machine updated with all Google Fonts without any extra software, you can do this with Git, thanks to the Google Fonts Repo.

To do this, run the following in your terminal:

cd ~/Library/Fonts/
git clone --depth 1 https://github.com/google/fonts.git google-fonts

Done! In the future, you can download new fonts by running:

@kukat
kukat / dnsmasq.games
Created November 25, 2015 15:52
dnsmasq for games
#Akamai
address=/.e.akamai.net/220.90.198.73
address=/.akamaihd.net/220.90.198.73
address=/.edgesuite.net/220.90.198.73
#Limelight
address=/.loris-e.llnwd.net/68.142.79.70
address=/.loris.llnwd.net/68.142.79.70
address=/.hs.llnwd.net/68.142.79.70
address=/.vo.llnwd.net/68.142.79.70
#CDN & Other

Livestreaming via PS4 to a local RTMP server

Live stream from your PS4 to a local computer running an RTMP server by intercepting the twitch.tv stream.

Requirements

  • DD-WRT enabled Router (or router with iptables compatibility)
  • nix Envirment
  • nginx with the nginx-rtmp-module