Skip to content

Instantly share code, notes, and snippets.

View rudifa's full-sized avatar

Rudolf Farkas rudifa

  • Rudicubes (defunct)
  • Geneva, Switzerland
  • X @rudifa
View GitHub Profile
@rudifa
rudifa / registerXcode.sh
Created May 17, 2023 09:28
Register the Xcode.app
‎‎​
@rudifa
rudifa / registerXcode.sh
Last active May 17, 2023 09:33
Register Xcode.app
#!/bin/bash
# problem:
# you installed a new version of Xcode, and now the previously installed extensions are
# not visible any more in menus or accessible via custom keyboard shortcuts
# solution:
# https://nshipster.com/xcode-source-extensions/
# ... when multiple copies of Xcode are on the same machine, extensions can stop working completely. In this case, Apple Developer Relations suggests re-registering your main copy of Xcode with Launch Services.
@rudifa
rudifa / gopro
Last active May 28, 2023 11:34
#!/bin/bash
# Create a new Go project with a main.go file and a Go module
# Option -c, --cobra: Initialize a Cobra CLI project in the module
while getopts ":c" opt; do
case $opt in
c)
c_flag=true
;;