Skip to content

Instantly share code, notes, and snippets.

@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
@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.
@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"
/>
@guycalledseven
guycalledseven / manual-uninstall-paragon-ntfs.sh
Last active April 27, 2024 09:00
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/
@roadrunner2
roadrunner2 / 0 Linux-On-MBP-Late-2016.md
Last active May 13, 2024 12:14
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

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