Skip to content

Instantly share code, notes, and snippets.

View git-hub-tig's full-sized avatar
🌍
Making Friends

TIG git-hub-tig

🌍
Making Friends
View GitHub Profile
@unixzii
unixzii / ForceEnablingXcodeLLM.md
Last active April 19, 2025 18:12
A guide to force enabling Xcode LLM feature on China-SKU Macs.

Introduction

Apple restricted the access to Xcode LLM (Predictive code completion) feature on China models of Mac. This guide provides a way to bypass that restriction. It's verified on macOS 15.0 Beta (24A5264n), but there is no guarentee that it will always work on later macOS versions.

Prerequisites

  • Xcode is installed and run at least once.
  • SIP debugging restrictions are disabled (via csrutil enable --without debug command in recovery mode).

Disclaimer

@magnetikonline
magnetikonline / README.md
Last active May 3, 2024 12:20
Install jq on macOS from source.

Install jq on macOS from source

Note: as of jq v1.7 the project offers pre-built native macOS releases for ARM64 based architechtures.

A quick n' dirty Bash script to install the following:

  • autoconf.
  • automake.
  • libtool
  • jq - from source.
@brennanMKE
brennanMKE / README.md
Last active June 13, 2024 22:50
Clone All Gists

Clone All Gists

This is a shell script version of the Node.js version created by mbostock.

Place it in a directory in your PATH and set the permissions.

chmod u+x clone-all-gists
@davidliyutong
davidliyutong / github-fast-clone.sh
Last active April 13, 2024 07:16
Accelerate github clone by using mirror
# Clone github repo
# Usage:
#
# $ chmod +x ./github-fast-clone.sh
# $ ./github-fast-clone <user/repo>
#!/bin/bash
MIRROR=https://hub.fastgit.org/
GIT_HTTP_CONNECT_TIMEOUT=60
DEPTH=3
@mbiemann
mbiemann / colima-docker-apple-silicon.md
Last active March 1, 2025 22:33
Using colima and Docker Engine on Apple Silicon (M1 Chip)

Using colima and Docker Engine on Apple Silicon (M1 Chip)

This tutorial uses Homebrew to install colima and Docker.

It was tested on Apple MacBook Pro (13-inch, M1, 2020) 8G and macOS Monterey version 12.1 (21C52).

Uninstall any Docker version

Make sure you have fully uninstall any versions of Docker. You can check using:

@Schockarum
Schockarum / 01_PlusMinus.swift
Last active January 1, 2025 11:21
Hacker Rank [Swift] 1 Month Preparation Kit - Week 1 Algorithms
import Foundation
struct PlusMinusRatio{
var numberOfValues: [Double]
var elements: Double
var precision: Int
init(numberOfElements: Int, decimals: Int = 6) {
elements = Double(numberOfElements)
numberOfValues = [0.0, 0.0, 0.0] //Positives, Negatives, Zeros
@brennanMKE
brennanMKE / README.md
Last active February 10, 2025 11:04
Create SSH Key on Mac for Xcode

Create SSH Key on Mac for Xcode

The docs for GitHub show a command to create a key with the ed25519 encryption method which is not allowed by Xcode. Even if you are not using the Source Control features in Xcode you will often need to use an account with GitHub when you are consuming Swift packages which are pulled from GitHub.

For SSH keys there are 4 algorithms.

  • 🚨 DSA: This is an older algorithm which is no longer supported and is superceded with more modern algorithms.
  • ⚠️ RSA: This algorithm was an improvement but it is now outdated and a more modern method should be used.
  • 👀 ECDSA: Another improvement which is dependent on your computer's ability to generate random numbers.
  • ✅ Ed25519: The most recommended public-key algorithm today which you should use with GitHub.
@mhucka
mhucka / gist:59e785a315d813d14cd0258b89a2fcac
Last active March 27, 2025 19:29
Stop the Adobe Creative Cloud app from auto-launching on login on macOS
#!/bin/bash
# =============================================================================
# @file GitHub gist
# @brief stop Adobe Creative Cloud app from auto-launching on login on macOS
# @author Michael Hucka <[email protected]>
# @created 2021-08-12
# @website https://gist.github.com/mhucka/59e785a315d813d14cd0258b89a2fcac
#
# I find Adobe Creative Cloud absolutely infuriating. It installs auto
# launchers that are not in the user's login app list, and the services are
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active April 28, 2025 14:26
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@ejmejm
ejmejm / pytorch_tips_yt_follow.ipynb
Created May 9, 2021 09:14
pytorch_tips_yt_follow.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.