Skip to content

Instantly share code, notes, and snippets.

@faparicior
faparicior / end.gcode
Created April 28, 2020 16:03
Start and End G-code for Ender 3 on Cura
; Ender 3 Custom End G-code
G4 ; Wait
M220 S100 ; Reset Speed factor override percentage to default (100%)
M221 S100 ; Reset Extrude factor override percentage to default (100%)
G91 ; Set coordinates to relative
G1 F1800 E-3 ; Retract filament 3 mm to prevent oozing
G1 F3000 Z20 ; Move Z Axis up 20 mm to allow filament ooze freely
G90 ; Set coordinates to absolute
G1 X0 Y{machine_depth} F1000 ; Move Heat Bed to the front for easy print removal
M106 S0 ; Turn off cooling fan
#include <ILI9341_t3.h> // https://github.com/PaulStoffregen/ILI9341_t3
struct CanData {
uint32_t id;
uint8_t len;
uint8_t data[8] __attribute__((aligned(8)));
};
int CAN_IDS[] = {
0x050,
@ChrisTollefson
ChrisTollefson / Boot Camp Assistant - USB Install Disk.md
Last active November 2, 2025 16:42
Boot Camp Assistant - Enabling creation of bootable USB disks for installing Windows
@b4nst
b4nst / Install Windows on MacPro 5,1 on physical drive through Virtualbox.md
Last active October 2, 2024 01:20
Install windows on MacPro 5,1 without cd nor usb drive

Install Windows on MacPro 5,1 on physical drive through Virtualbox

Prerequires

  • SIP disabled. I don't have a native GPU so no boot screen, but I just hold CMD+R 10s after chime sound and wait until I see the recovery screen.
  • A drive where windows will be written (avoid partitioning to keep things clean). Mine is plugged into the optical drive bay.
  • Bootchamp 1.7. Bootchamp is discontinued but works fine for me. Let me know if you have something better.
  • Virtual box
  • A Windows 10 iso img. I got a 10 pro edition but the home should be fine too

Linux on MXQ (PCB: S805Q_V2.0) m8b_m201_v1@23a35625

Seems to be also known as the HD18Q "black box". https://www.ebay.de/itm/153205410117 ("NEU MXQ S805 Smart 1GB+ 8GB Smart TV Box Android 4.4 Quad Core 1.5 G WIFI", seller "SILVESTRAS RUNTA Network Tech Co. Ltd"), EUR 14,99

I can boot with meson8b_m201d.dtb and wired Ethernet works.

U-boot thinks it is a 512 MB device. Linux does, too. The SDK used seems to be named "s805_0701_512M":

root@vegas805:~# strings /mnt/lib/hw/camera.amlogic.so | grep home/
@shoogle
shoogle / qt-without-xcode.md
Last active September 30, 2025 03:32
Qt without XCode - how to use Qt Creator for macOS software development without installing XCode

Qt without Xcode

How to use Qt Creator for software development on macOS without having to install Xcode

Justification

Qt refuses to install on macOS unless Apple's Xcode is installed beforehand. This is unfortunate because:

@probonopd
probonopd / orangepizero.md
Last active August 21, 2025 22:08
Orange Pi Zero

Orange Pi Zero

Ideas

  • Port HomeServer to it
  • Read-only thanks to overlayroot
  • Native serial for Viessmann w/o USB-to-Serial
  • Native 433 MHz sending w/o Arduino
  • Native Audio output w/o USB dongle; can attach small amp board
  • Webcam via USB with motion
Firefox Developer Edition
Google Chrome
Xcode
Fabric
Android Studio
Genymotion
Expo
Visual Studio Code
Evernote
@SpaceVoyager
SpaceVoyager / pythonista_compile_howto.md
Last active December 2, 2023 11:58
How to make a standalone iOS app with Pythonista

After you made some cool games or apps with Pythonista, you may want to make it run as a standaone app on iPad/iPhone and possibly share it on the AppStore. This how-to tells you how to do it.

What you need:

  1. Pythonista code you wrote
  2. A Mac with Xcode 7.1 installed
  3. iPhone/iPad running iOS 9

Steps:

  1. Download PythonistaProjectTemplate.zip. The original PythonistaProjectTemplate described at http://olemoritz.net/pythonista-15-whats-new-and-whats-missing.html does not work with Xcode 7. I updated it to work with Xcode 7 and added a more interesting example than the plain old Hello World thing.
  2. Unzip the file and open the project in Xcode 7.1. In project settings, change the Bundle Identifier from com.yuhangwang.pythonistaproject to something else.
@albertmenglongli
albertmenglongli / Calculator.py
Created December 18, 2014 08:38
Pythonista Scripts
# coding: utf-8
# Calculator
from __future__ import division
import ui
import clipboard
from console import hud_alert
shows_result = False