Skip to content

Instantly share code, notes, and snippets.

@jsphpl
jsphpl / mac-startup-script-locations.md
Created August 14, 2017 04:50
Where macOS looks for services to launch on boot

These are the typical locations where startup plist files are stored. Yet, they can be located anywhere as long as they've been registered with launchctl.

  • ~/Library/LaunchAgents
  • /Library/LaunchAgents
  • /Library/LaunchDaemons
  • /Library/StartupItems
  • /System/Library/LaunchAgents
  • /System/Library/LaunchDaemons
@jsphpl
jsphpl / NPerGroup.php
Last active May 26, 2020 06:09 — forked from tureki/BaseModel.php
laravel-pgsql-n-related-models-per-parent-with-scopes
<?php
namespace App\Models\Traits;
use DB;
/**
* This trait is to work around a problem where a limit on an Eloquent
* relation by default applies to all queried models in total.
*
@jsphpl
jsphpl / lapdock-an-raspberry-kabel.md
Last active March 27, 2017 13:59
Anschlusskabel für ein Motorola Atrix Dock (a.k.a. "Lapdock") an einen Raspberry Pi (Model B & A)

Anschlusskabel für Motorola Lapdock an Raspberry Pi

Du brauchst ein Kabel für die Videoübertragung, eins zum Anschließen von Tastatur/Trackpad und eins zur Stromversorgung.

Video:

  • Micro-HDMI female to HDMI male Kabel (z.B. Amazon)
  • Alternative: Micro-HDMI female-to-female Adapter (z.B. Amazon) + Micro-HDMI male to HDMI male Kabel (z.B. Amazon)

Tastatur/Trackpad:

Upgrading the RepRapPro Huxley to Marlin 1.1.0-RC8

1. Download Marlin

…from https://github.com/MarlinFirmware/Marlin/releases/tag/1.1.0-RC8

2. Backup current EEPROM settings

…in case they get overwritten through the firmware update. To do so, issue a M501 (set all parameters from EEPROM) followed by a M503 (dump current settings) and save the output of that command.

Keybase proof

I hereby claim:

  • I am jsphpl on github.
  • I am jsphpl (https://keybase.io/jsphpl) on keybase.
  • I have a public key ASCbd6kO6BzwSKmsh_d5K5BdixKU9PblkRAFv5nB2mBe8wo

To claim this, I am signing this object: