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
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
;;
@rudifa
rudifa / .gitconfig-aliases
Created January 5, 2025 10:17
git aliases
[alias]
aliases = config --get-regexp alias
br = branch
### commit
caam = commit -a --amend --no-edit ### commit tracked files squashing onto the last commit
caamn = commit --no-verify -a --amend --no-edit ### --no-verify ignores pre-commit hook
cam = commit -am ### add tracked files and commit with message