Skip to content

Instantly share code, notes, and snippets.

#!/bin/zsh
# The right time
xcrun simctl status_bar booted override --time 09:41
# WiFi & Cellular network
xcrun simctl status_bar booted override --dataNetwork wifi
xcrun simctl status_bar booted override --wifiBars 3
xcrun simctl status_bar booted override --cellularBars 4
# 100% battery level
xcrun simctl status_bar booted override --batteryLevel 100
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active July 2, 2024 11:24
crack activate Office on mac with license file
@Nirma
Nirma / FTPUpload.swift
Last active December 30, 2023 02:11
Upload a file via FTP on iOS or macOS
import Foundation
import CFNetwork
public class FTPUpload {
fileprivate let ftpBaseUrl: String
fileprivate let directoryPath: String
fileprivate let username: String
fileprivate let password: String
@rgcottrell
rgcottrell / gist:325ac087585ff6eeb8cb50e2729fd1ab
Created May 3, 2016 03:48
Transcode a movie to a different framerate.
// This sketches a script that will sample images from an AVAsset at a
// new framerate. This might be used to transcode a movie or create an
// animated GIF.
import AppKit
import AVFoundation
import CoreMedia
let FPS = 12 // The target framerate for the new movie.
let frameDuration = CMTimeMake(1, Int32(FPS))