Skip to content

Instantly share code, notes, and snippets.

View wvdk's full-sized avatar

Wes van der Klomp wvdk

View GitHub Profile
@the-osxg
the-osxg / GtaOnlineCrossover.md
Last active April 29, 2026 20:45
GTA V Online with CrossOver on mac - 2026 method

GTA V Online with CrossOver on mac - 2026 method

Disclaimer

Even though there is no ban reports acknowledge potential risks.

Tested with

  • OS: MacOS 14.7.6 (M mac)
  • Layer: CrossOver 26.0.0
    • CrossOver made Rockstar Games Launcher Bottle
  • GTA Legacy
-- Requires a loopback audio device, try
-- - https://rogueamoeba.com/loopback/
-- - https://github.com/ExistentialAudio/BlackHole
-- Needs https://github.com/wez/atomicparsley
property output_folder : "/Users/USER/Music/rec"
property atomicparsley_path : "/opt/homebrew/bin/atomicparsley"
property file_extension : ".m4a"
on format_filename(track_artist, track_album, track_name, track_number)
func zalgo(_ string: String, intensity: Int = 5) -> String {
let combiningDiacriticMarks = 0x0300...0x036f
let latinAlphabetUppercase = 0x0041...0x005a
let latinAlphabetLowercase = 0x0061...0x007a
var output: [UnicodeScalar] = []
for scalar in string.unicodeScalars {
output.append(scalar)
guard (latinAlphabetUppercase).contains(numericCast(scalar.value)) ||
(latinAlphabetLowercase).contains(numericCast(scalar.value))
fragment float4 capturedImageFragmentShader(ImageColorInOut in [[stage_in]],
texture2d<float, access::sample> capturedImageTextureY [[ texture(kTextureIndexY) ]],
texture2d<float, access::sample> capturedImageTextureCbCr [[ texture(kTextureIndexCbCr) ]]) {
constexpr sampler colorSampler(mip_filter::linear,
mag_filter::linear,
min_filter::linear);
const float4x4 ycbcrToRGBTransform = float4x4(
float4(+1.0000f, +1.0000f, +1.0000f, +0.0000f),
@humblehacker
humblehacker / CVPixelBufferDeepCopy.swift
Last active March 19, 2025 12:59
Creates a deep copy of a CVPixelBuffer. Compatible with Swift 2.3.
extension CVPixelBuffer
{
/// Deep copy a CVPixelBuffer:
/// http://stackoverflow.com/questions/38335365/pulling-data-from-a-cmsamplebuffer-in-order-to-create-a-deep-copy
func copy() -> CVPixelBuffer
{
precondition(CFGetTypeID(self) == CVPixelBufferGetTypeID(), "copy() cannot be called on a non-CVPixelBuffer")
var _copy: CVPixelBuffer?
@markusfisch
markusfisch / README.md
Last active October 19, 2025 10:46
Generate an annual commit report

Generate an annual commit report

Prints something like this:

In 2018 you made 2488 commits in 134 projects.
The average length of a commit message was 62 characters.

Commits per weekday
    Monday     334 ******************************************
@nbasham
nbasham / gist:c6af488949dc3435e43b3d3cba9d4df4
Last active May 8, 2017 11:08
A sizable UIViewController that can be used as a playground liveView and set to specific device sizes.
import UIKit
import PlaygroundSupport
public class DeviceViewController : UIViewController {
public enum ScreenType : Int {
case iPhone3_5Inch
case iPhone4Inch // includes 5th & 6h gen iPod Touch
case iPhone4_7Inch
case iPhone5_5Inch
@michaellihs
michaellihs / tmux-cheat-sheet.md
Last active June 13, 2026 05:00
tmux Cheat Sheet
@ideawu
ideawu / AVFoundation write read audio file frame by frame
Last active November 4, 2022 20:53
AVFoundation write/read audio file frame by frame
#import <AVFoundation/AVFoundation.h>
#import "Recorder.h"
@interface Recorder()<AVCaptureAudioDataOutputSampleBufferDelegate>{
AVCaptureDevice *audioDevice;
AVCaptureDeviceInput *audioInput;
AVCaptureAudioDataOutput* _audioDataOutput;
dispatch_queue_t _captureQueue;
AVURLAsset *_asset;
@crushbowl
crushbowl / NYC-iOS-Companies_Job_board.md
Last active December 13, 2025 11:41
A list of iOS-related positions at companies in the NYC area (Manhattan, Brooklyn, NJ)

Looking for a mentor in iOS?- try this post: http://stephaniehurlburt.com/blog/2016/11/14/list-of-engineers-willing-to-mentor-you

General Job Boards