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 September 16, 2022 10:42
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 July 10, 2024 08:58
CollectionView.swift - UIKit's UICollectionView implemented in SwiftUI using UIViewControllerRepresentable
//
// (See usage below implementation)
//
// SwiftUI `CollectionView` type implemented with UIKit's UICollectionView under the hood.
// Requires `UIViewControllerRepresentable` over `UIViewRepresentable` as the type that allows
// for SwiftUI `View`s to be added as subviews of UIKit `UIView`s at all bridges this gap as
// the `UIHostingController`.
//
// Not battle-tested yet, but seems to be working well so far.
// Expect changes.
@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 June 26, 2024 13:53
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