Skip to content

Instantly share code, notes, and snippets.

ACTION
AD_HOC_CODE_SIGNING_ALLOWED
ALTERNATE_GROUP
ALTERNATE_MODE
ALTERNATE_OWNER
ALWAYS_SEARCH_USER_PATHS
ALWAYS_USE_SEPARATE_HEADERMAPS
APPLE_INTERNAL_DEVELOPER_DIR
APPLE_INTERNAL_DIR
APPLE_INTERNAL_DOCUMENTATION_DIR
@roadrunner2
roadrunner2 / 0 Linux-On-MBP-Late-2016.md
Last active June 14, 2024 12:55
Linux on MacBook Pro Late 2016 and Mid 2017 (with Touchbar)

Introduction

This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).

The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.

Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se

@guycalledseven
guycalledseven / manual-uninstall-paragon-ntfs.sh
Last active June 8, 2024 19:22
Manually remove Paragon NTFS v15 leftovers MacOS
# after appcleaner does his magic, do this
sudo rm -rf "/Library/Application Support/Paragon Software/"
sudo rm /Library/LaunchDaemons/com.paragon-software.installer.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfs.loader.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfsd.plist
sudo rm /Library/LaunchAgents/com.paragon-software.ntfs.notification-agent.plist
sudo rm -rf /Library/Filesystems/ufsd_NTFS.fs/
sudo rm -rf /Library/PrivilegedHelperTools/com.paragon-software.installer
sudo rm -rf /Library/Extensions/ufsd_NTFS.kext/
@elzup
elzup / _app.tsx
Last active July 5, 2023 12:42
Next.js with typescript minimum pages/_document.tsx, pages/_app.tsx
import { AppProps } from 'next/app'
import Head from 'next/head'
const App = ({ Component, pageProps }: AppProps) => (
<>
<Head>
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
@ChaosBlades
ChaosBlades / Get Your Screen Calibration Coordinates
Last active December 25, 2023 20:44
OctoScreen Installation on Pi 3B+ w/ PiTFT Plus
Unfortunately the only way to get the screen touch coordinates calibrated correctly is to install Raspbian to get them first before installing OctoPi.
Install full Raspbian w/ GUI on the Pi.
Skip to the 'Install Touch Screen Drivers' section below and follow the steps.
Close out of any windows on the GUI
Hide the taskbar by right-clicking on the taskbar and select "Panel Settings". Click on the "Advanced" tab, and check "Minimize panel when not in use". You should now just see the wallpaper and an icon on the desktop.
@rlowens
rlowens / nodemcu base.yaml
Created August 27, 2020 07:38
NodeMCU base configuration for ESPHome
substitutions:
device_name: node1
device_description: NodeMCU dev board, 15x2 pins with 2 LEDs and 2 buttons. Change this line to talk about what your board is for/where it is located.
friendly_name: Node 1
esphome:
name: ${device_name}
comment: ${device_description}
platform: ESP8266
board: nodemcuv2
@almas
almas / ubuntu-22.04-mbp-a1707.md
Last active June 16, 2024 23:52 — forked from rob-hills/ubuntu-22.04-mbp-a1707.md
Ubuntu 22.04 on MacBook Pro 2017 (A1707, MBP 14,3)

Summary

Notes to install Ubuntu 22.04.4LTS (Upgraded to 24.04LTS) up and running on my 2017 MacBook Pro 15 inch (MacBookPro14,3).

Now everything except the TouchID (Fingerprint), Suspend and Hibernation seems to work for me.

About Ubuntu 24.04LTS: I tried to install Ubuntu 24.04 and didn't have success. There was a crash issue during installation. https://bugs.launchpad.net/subiquity/+bug/2065310 But I installed 22.04 and upgraded it to the 24.04LTS later and it working same as 22.04.4.

Useful References (not mentioned in the text)