Skip to content

Instantly share code, notes, and snippets.

View phranck's full-sized avatar
🖥️
Working from home

Frank Gregor phranck

🖥️
Working from home
View GitHub Profile
@phranck
phranck / gist:5b1b94d9734170279b86beeab41ffe31
Created February 7, 2025 14:56
make output of Previous emulator
[ 38%] Building C object src/gui-sdl/CMakeFiles/GuiSdl.dir/sdlgui.c.o
[ 39%] Linking C static library libGuiSdl.a
[ 39%] Built target GuiSdl
[ 40%] Building C object src/cpu/CMakeFiles/build68k.dir/build68k.c.o
[ 40%] Linking C executable build68k
[ 40%] Built target build68k
[ 41%] Generating cpudefs.c
[ 42%] Building C object src/cpu/CMakeFiles/gencpu.dir/gencpu.c.o
[ 42%] Building C object src/cpu/CMakeFiles/gencpu.dir/readcpu.c.o
[ 43%] Building C object src/cpu/CMakeFiles/gencpu.dir/cpudefs.c.o
@phranck
phranck / How to Download Full MacOS Installers
Created February 3, 2025 14:24 — forked from startergo/How to Download Full MacOS Installers
How to Download Full MacOS Installer from Mac Command Line
// Mac OS Big Sur 11.2.3:
http://swcdn.apple.com/content/downloads/12/32/071-14766-A_Q2H6ELXGVG/zx8saim8tei7fezrmvu4vuab80m0e8a5ll/InstallAssistant.pkg
// Mac OS Catalina 10.15:
https://itunes.apple.com/us/app/macos-catalina/id1466841314?ls=1&mt=12
// Mac OS Mojave 10.14:
https://itunes.apple.com/us/app/macos-mojave/id1398502828?ls=1&mt=12
// Mac OS High Sierra 10.13:
Resolving esp32dev dependencies...
Already up-to-date.
Updating metadata for the vscode IDE...
UserSideException: Processing esp32dev (platform: espressif32; board: esp32-s3-devkitc-1; framework: arduino)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-s3-devkitc-1.html
PLATFORM: Espressif 32 (6.7.0) > Espressif ESP32-S3-DevKitC-1-N8 (8 MB QD, No PSRAM)
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
DEBUG: Current (esp-builtin) On-board (esp-builtin) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
extension XCUIElement {
func changeText(ofTextField accessibilityId: AccessibilityIdentifier, to newText: String) {
let textField = textField(withId: accessibilityId)
textField.tap()
textField.clearText()
textField.typeTextIndividually(newText)
}
func cleanup() {
#if os(iOS)
*,
*:before,
*:after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
}
article,
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Ivory [91000]
Path: /Applications/Ivory.localized/Ivory.app/Contents/MacOS/Ivory
Identifier: com.tapbots.Ivory
Version: 1.9.2 (19200)
App Item ID: 6444602274
App External ID: 864535164
/// The `=!=` operator assigns the value on the right-hand side to the variable on the left-hand side
/// only if the two values are not equal. This operator is designed for types conforming to the `Equatable` protocol.
///
/// - Parameters:
/// - lhs: The variable to be assigned a new value if not equal.
/// - rhs: The value to be assigned to the variable if it is not equal to the current value.
///
/// - Precondition: The type of the operands must conform to the `Equatable` protocol.
///
/// - Precedence: `AssignIfNotEqualPrecedence`
#if os(macOS)
import SwiftUI
public extension View {
func hostingWindow(_ callback: @escaping (NSWindow?) -> Void) -> some View {
background(HostingWindowFinder(callback: callback))
}
func windowTitle(_ title: String) -> some View {
hostingWindow { $0?.title = title }
@phranck
phranck / my_commits.sh
Last active November 17, 2023 12:19
Generates a structured list of Git commits by a dedicated user over a time period
#!/bin/bash
# ========================================
# ANSI Color escape codes:
# ========================================
# Black 0;30 Dark Gray 1;30
# Red 0;31 Light Red 1;31
# Green 0;32 Light Green 1;32
# Brown/Orange 0;33 Yellow 1;33
@phranck
phranck / ffplay.txt
Created October 20, 2023 09:56
Output of the terminal command: ffplay --help
Simple media player
usage: ffplay [options] input_file
Main options:
-L show license
-h topic show help
-? topic show help
-help topic show help
--help topic show help
-version show version