View auff.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub fn auth_request<'a>() -> AuthorizationRequest<'a> { | |
let config = Config::env(); | |
let scopes:Vec<String> = config.github.scope; | |
let request = | |
client() | |
.authorize_url(CsrfToken::new_random); | |
for scope in scopes.iter() { | |
request.add_scope( |
View hex.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let hex_string = match hex.len() { | |
3 => format!( | |
"{}{}{}{}{}{}", | |
&hex[..1], | |
&hex[..1], | |
&hex[1..2], | |
&hex[1..2], | |
&hex[2..3], | |
&hex[2..3] | |
), |
View config.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project: MyPlatform | |
repos: | |
- https://github.com/....git | |
- https://github.com/....git | |
- https://github.com/....git | |
dependencies: | |
- postgresql@latest | |
- rust@1.46.0 |
View gist:dfdde2e86d5cb0051894afb774f605ad
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function(exports) { | |
"use strict"; | |
Object.defineProperty(exports, "__esModule", { | |
value: true | |
}); | |
exports.default = void 0; | |
var _defaults = _interopRequireDefault(require("axios/lib/defaults")); |
View gist:38af1a42b60a51877ea16f1e5e5f2524
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; CR-1 Custom Start G-code | |
M140 S{material_bed_temperature_layer_0} ; Set Heat Bed temperature | |
M190 S{material_bed_temperature_layer_0} ; Wait for Heat Bed temperature | |
M104 S160; start warming extruder to 160 | |
G28 ; Home all axes | |
G29 ; Auto bed-level (BL-Touch) | |
G92 E0 ; Reset Extruder | |
M104 S{material_print_temperature_layer_0} ; Set Extruder temperature | |
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position | |
M109 S{material_print_temperature_layer_0} ; Wait for Extruder temperature |
View gist:c66382198d48238787718b9bb8e9f3d9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Ender 3 Custom Start G-code | |
M140 S{material_bed_temperature_layer_0} ; Set Heat Bed temperature | |
M190 S{material_bed_temperature_layer_0} ; Wait for Heat Bed temperature | |
M104 S160; start warming extruder to 160 | |
G28 ; Home all axes | |
G29 ; Auto bed-level (BL-Touch) | |
G92 E0 ; Reset Extruder | |
M104 S{material_print_temperature_layer_0} ; Set Extruder temperature | |
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position | |
M109 S{material_print_temperature_layer_0} ; Wait for Extruder temperature |
View gist:954b0dbd094856c805f997db2c8705bc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to Calibrate E-Steps (can be added to firmware) | |
M503 ; See current steps | |
M83 ; Set extruder to relative mode | |
M109 S240 ; Warm up the nozzle to 240C for PETG. Use 200 for PLA. | |
G1 E100 F100 ; Extrude 100mm at 100mm/min. In my case, only 89mm extruded and my current settings at the time was the default 93. 100 (desired) / 89 (actual) * 93 (current) = 104.49 | |
M92 E104.49 ; Set steps to 104.49mm / 100mm | |
M500 ; Save settings to EEPROM |
View ENDER 3 BLTOUCH SETUP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configuration.h | |
COMMENT 78: //#define SHOW_BOOTSCREEN // Save memory. | |
COMMENT 97: //#define CUSTOM_STATUS_SCREEN_IMAGE // Save memory. | |
EDIT 375: #define DEFAULT_Kp 32.24 // PID settings with Micro Swiss all metal hotend. | |
EDIT 376: #define DEFAULT_Ki 3.71 // PID settings with Micro Swiss all metal hotend. | |
EDIT 377: #define DEFAULT_Kd 69.98 // PID settings with Micro Swiss all metal hotend. |
View gist:4f822c8ce86d02a4bc7ed274ce612fe9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Disable all Volumetric extrusion options | |
*/ | |
//#define NO_VOLUMETRICS | |
#if DISABLED(NO_VOLUMETRICS) | |
/** | |
* Volumetric extrusion default state | |
* Activate to make volumetric extrusion the default method, |
View gist:d5f7aba01b5f6e813fdca49d174b9e78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run this script in display 0 - the monitor | |
export DISPLAY=:0 | |
# Hide the mouse from the display | |
unclutter & | |
# If Chrome crashes (usually due to rebooting), clear the crash flag so we don't have the annoying warning bar | |
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' /home/pi/.config/chromium/Default/Preferences |