Skip to content

Instantly share code, notes, and snippets.

View RedenticDev's full-sized avatar
💤
Paused tweaks to focus on time-consuming big projects

Redentic RedenticDev

💤
Paused tweaks to focus on time-consuming big projects
View GitHub Profile
@RedenticDev
RedenticDev / 1 - Tips.md
Last active March 19, 2022 14:42
Theos tips & shortcuts

Theos variables

To put in the root Makefile or to use in directly within the make command.

Other tips

  • Use INSTALL_TARGET_PROCESSES in the Makefile to list the processes to kill after install, so no need to write something like
after-install::
@RedenticDev
RedenticDev / SSH without password.md
Last active March 14, 2021 14:02
Connect to your remote host without entering password

These instructions are made to allow you to connect your remote device through ssh without password. Tested on macOS and Ubuntu.

Disclaimer: despite this method is well-known and quite secure, you should not use this from untrusted devices. I'm not responsible if something goes wrong with this.

Step 1: add your remote device as a known/trusted host

$USER is the remote user and $HOST the remote host (e.g.: ssh $USER@$HOST where $USER=root and $HOST=iPhone will connect to the remote host iPhone with the user root.

ssh-keygen -t rsa # generate a pair of public/private keys encrypted with RSA
ssh $USER@$HOST "mkdir .ssh" # creates a .ssh folder at the user directory of the remote machine
cat .ssh/id_rsa.pub | ssh $USER@$HOST 'cat >> .ssh/authorized_keys' # adds your public key in the authorized keys of the remote machine
@RedenticDev
RedenticDev / updateYourMac.sh
Last active February 6, 2021 13:03
Update your Mac with one command
# Put this function in your .bashrc/.zshrc (recommended)
# You can rename it as you want. Don't forget to relaunch your Terminal to apply changes. Simply run it with `update`.
# You can adapt it depending on what you've installed in your system.
function update {
# Homebrew
printf "\e[1;36m>> Homebrew\e[0m\n"
brew update; brew upgrade; brew upgrade --cask --greedy
# OPTIONAL LINES
hls=$(ls $HOME/Library/Caches/Homebrew)
@RedenticDev
RedenticDev / Steps.md
Last active February 3, 2021 10:59
Update native Ruby installation on macOS Big Sur

Why?

Because Homebrew's Ruby cannot overwrite the system's Ruby, and you might need to update macOS native Ruby for some gems.

Prerequisite

  • Homebrew, because it can manage updates on Ruby dependencies super easily. Keep in mind that you can do without it, but that's how I did it.

Let's update

Before updating, save somewhere your installed gems, because something could go wrong, or a compatibility issue could occur, deleting all your gems. You can do it by simply running:

gem query --local
@RedenticDev
RedenticDev / Explanations.md
Last active April 24, 2024 11:12
Xcode 12 & Theos

What's the problem?

Since June, 22nd 2020, Apple released Xcode 12, that introduced an internal change to Xcode, breaking arm64e compilation for tweak developers. This is due to the update of clang/LLVM (AFAIK) in Xcode 12.

Details of the problem

More specifically:

  • compiling code for arm64e with Xcode 11 Toolchain will allow this code to run only on iOS 13 and lower for all versions!.
  • compiling code for arm64e with Xcode 12 Toolchain will allow this code to run only for iOS 14 (and up).

No error is produced during compilation. arm64 slices are not concerned and will always work.