Skip to content

Instantly share code, notes, and snippets.

View BrianGilbert's full-sized avatar

Brian Gilbert BrianGilbert

View GitHub Profile
@BrianGilbert
BrianGilbert / bed.g
Created June 1, 2016 10:23
BI v2.5 Duet 0.8.5 bed.g
; Generate at http://www.escher3d.com/pages/wizards/wizardbed.php
; Auto calibration routine for delta printers
; Before running this, you should have set up your zprobe Z offset to suit your build, in the G31 command in config.g.
M561 ; clear any bed transform, otherwise homing may be at the wrong height
G31 X0 Y0 ; don't want any probe offset for this
G28 ; home the printer
; bed.g file for RepRapFirmware
; 13 points, 7 factors, probing radius: 140, probe offset (20, 20)
@BrianGilbert
BrianGilbert / homedelta.g
Created June 1, 2016 10:24
BI v2.5 Duet 0.8.5 homedelta.g config
; Homing file for RepRapFirmware on Mini Kossel
G91 ; use relative positioning
;******* Change F250 in the following line to F2500 when you are finished commissioning
;******* Change 650 in the following to a higher value if your Delta has taller towers
G1 S1 X650 Y650 Z650 F5000 ; move all carriages up 650mm, stopping at the endstops
G1 S2 X-4 Y-4 Z-4 ; move all carriages down 4mm
G1 S1 X8 Y8 Z8 F250 ; move carriages slowly up 8mm, stopping at the endstops
G1 Z-5 F2000 ; down a few mm so that we can centre the head
G90 ; back to absolute positioning
G1 X0 Y0 F2000 ; centre the head and set a reasonable feed rate
@BrianGilbert
BrianGilbert / console.sql
Created August 10, 2016 04:23 — forked from anonymous/console.sql
Project machine names that depend on project machine name
SELECT DISTINCT fdfpmn.field_project_machine_name_value, pdd.dependency
FROM project_dependency_dependency pdd
LEFT JOIN project_dependency_component pdc ON pdc.component_id = pdd.component_id
LEFT JOIN field_data_field_release_project fdfrp ON fdfrp.entity_id = pdc.release_nid
LEFT JOIN field_data_field_project_machine_name fdfpmn on fdfpmn.entity_id = fdfrp.field_release_project_target_id
WHERE pdd.dependency IN (SELECT DISTINCT pdc.name FROM project_dependency_dependency pdd
LEFT JOIN project_dependency_component pdc ON pdc.component_id = pdd.component_id
LEFT JOIN field_data_field_release_project fdfrp ON fdfrp.entity_id = pdc.release_nid
LEFT JOIN field_data_field_project_machine_name fdfpmn on fdfpmn.entity_id = fdfrp.field_release_project_target_id
WHERE fdfpmn.field_project_machine_name_value = 'context')
@BrianGilbert
BrianGilbert / gitHub-flavored-css-for-quiver.css
Last active September 8, 2021 08:56
GitHub flavoured css for Quiver
```css
/*
Github flavoured CSS for Quiver Note app.
http://happenapps.com)
https://github.com/HappenApps/Quiver
https://twitter.com/happenapps
Acknowledgments:
Modified version of https://gist.github.com/kcamcam/225a16f32409f0ae66f61569d6f706fc
@BrianGilbert
BrianGilbert / userChrome.css
Last active July 7, 2025 00:55
Firefox userChrome to autohide Sideberry panel and hide titlebar tabs, and autohide Page Actions.
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* This style will hide the tab bar. For MacOS Big Sur
*
* Contributor(s): Isaac-Newt, Ivan0xFF, millerdev, AMomchilov
*/