Skip to content

Instantly share code, notes, and snippets.

View BrianGilbert's full-sized avatar

Brian Gilbert BrianGilbert

View GitHub Profile
@BrianGilbert
BrianGilbert / userChrome.css
Last active April 17, 2024 06:49
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
*/
@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 / 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 / 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 / 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 / init.lua
Created April 5, 2016 05:35
Hammerspoon Config
local alert = require "hs.alert"
local application = require "hs.application"
local fnutils = require "hs.fnutils"
local grid = require "hs.grid"
local hotkey = require "hs.hotkey"
local mjomatic = require "hs.mjomatic"
local window = require "hs.window"
grid.MARGINX = 0
grid.MARGINY = 0
@BrianGilbert
BrianGilbert / config.g
Last active January 3, 2018 23:11
Duet BI Config with Nimble with Chimera
; Configuration file for big Kossel from Think3DPrint3D V0.1 Date 20150708 with revisions for Duet V0.8.5 by Tony
; and addition of 3 more drives and second PWM fan for testing
; Communication and general
M111 S0 ; Debug off
M550 PZestyZero ; Machine name and Netbios name (can be anything you like)
M551 zesty ; Machine password (used for FTP)
;*** If you have more than one Duet on your network, they must all have different MAC addresses, so change the last digits
M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xED ; MAC Address
@BrianGilbert
BrianGilbert / BI V2.5 Calibration.txt
Last active April 28, 2018 09:45
BI V2.5 Calibration notes
Stepper Calibration (Current)
=============================
Check the Vref of your steppers first, They should be at around 450mV for the X,Y,Z axis. And 700mV for the extruders.
You need a multimeter, a small screwdriver, a steady hand and a lot of patience. With the BI on its side, power it up. Look at each of the drivers (that would be a row of 4-6 identical daughter boards on the RUMBA board. There is a small (really small) potentiometer, that's the screw. Look for the point labeled GND. Take the ground lead from the multimeter and touch it to the GND point, then put the hot lead of your multimeter on the screw -- that will give you the current voltage.
For safety's sake, turn off the printer before adjusting the pot. Use a small screwdriver to adjust the pot. A tiny movement may make a big difference in the voltage so go slowly. Check the voltage. Adjust. Check again. Adjust....
Bed Levelling
@BrianGilbert
BrianGilbert / homebrew.mxcl.solr4.plist
Last active August 29, 2015 14:20
homebrew.mxcl.solr4.plist for use with OSX Aegir to emulate BOA settings
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.solr4</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/java</string>
<string>-Djetty.home=/usr/local/opt/solr4/example</string>
@BrianGilbert
BrianGilbert / ojs-vhost.conf
Last active August 29, 2015 14:13
OJS VHost example for aegir box
server {
listen 127.0.0.1:443 ssl;
server_name ojs.ld; # only used for logging, because default_server sends all requests to this block
ssl_certificate /usr/local/etc/ssl/private/nginx-wild-ssl.crt;
ssl_certificate_key /usr/local/etc/ssl/private/nginx-wild-ssl.key;
limit_conn gulag 10; # like mod_evasive - this allows max 10 simultaneous connections from one IP address
keepalive_timeout 70;
###