- Open Powershell as an administrator
- Run
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }
- Verify that all mice devices have had their
FlipFlopWheel
attributes set to 1Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0
- Reboot
View macros.cfg
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
[gcode_macro BED_MESH_CALIBRATE] | |
rename_existing: BED_MESH_CALIBRATE_BASE | |
; gcode parameters | |
variable_parameter_AREA_START : 0,0 | |
variable_parameter_AREA_END : 0,0 | |
; the clearance between print area and probe area | |
variable_mesh_area_offset : 5.0 | |
; number of sample per probe point | |
variable_probe_samples : 2 | |
; minimum probe count |
View macros.cfg
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
[gcode_macro BED_MESH_CALIBRATE] | |
rename_existing: BED_MESH_CALIBRATE_BASE | |
; gcode parameters | |
variable_parameter_AREA_START : 0,0 | |
variable_parameter_AREA_END : 0,0 | |
; the clearance between print area and probe area | |
variable_mesh_area_offset : 5.0 | |
; number of sample per probe point | |
variable_probe_samples : 2 | |
; minimum probe count |
View invert.md
View find_dups.rb
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
columns_that_make_record_distinct = [:some_id, :another_name] | |
distinct_ids = Model.select("MIN(id) as id").group(columns_that_make_record_distinct).map(&:id) | |
duplicate_records = Model.where.not(id: distinct_ids) |
View printer.cfg
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
# This file is an example config file for cartesian style printers. | |
# One may copy and edit this file to configure a new cartesian | |
# printer. | |
# DO NOT COPY THIS FILE WITHOUT CAREFULLY READING AND UPDATING IT | |
# FIRST. Incorrectly configured parameters may cause damage. | |
# See docs/Config_Reference.md for a description of parameters. | |
##################################################################### |
View printer.cfg
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
# This file contains pin mappings for the Anycubic i3 Mega with | |
# Ultrabase from 2017. (This config may work on an Anycubic i3 Mega v1 | |
# prior to the Ultrabase if you comment out the definition of the | |
# endstop_pin in the stepper_z1 section.) To use this config, the | |
# firmware should be compiled for the AVR atmega2560. | |
# See the example.cfg file for a description of available parameters. | |
#[gcode_arcs] | |
#resolution: 0.05 |
View noodle_timer.rb
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
time_to_cook = ARGV[0].to_i | |
hour_glass_one = ARGV[1].to_i | |
hour_glass_two = ARGV[2].to_i | |
def can_cook?(time_to_cook, hour_glass_one, hour_glass_two) | |
total_time = 0 | |
used_hour_glass_one = hour_glass_one | |
used_hour_glass_two = hour_glass_two |
View distance_calculator.rb
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
location_points = [ | |
[-29.640088, -50.764216], | |
[-29.637486, -50.770814], | |
[-29.633196, -50.773013] | |
] | |
# using Harvesine formula to calculate the distance | |
# based on https://github.com/alexreisner/geocoder/blob/master/lib/geocoder/calculations.rb#L72 | |
def distance(location_one, location_two) | |
rad_per_deg = Math::PI/180 |
View watertank.yaml
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
esphome: | |
name: watertank | |
platform: ESP8266 | |
board: nodemcuv2 | |
wifi: | |
ssid: "greenhouse" | |
password: "senhasupersecreta" | |
# Enable fallback hotspot (captive portal) in case wifi connection fails |
View garden.yaml
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
esphome: | |
name: garden | |
platform: ESP32 | |
board: esp-wrover-kit | |
wifi: | |
ssid: "greenhouse" | |
password: "senhasupersecreta" | |
# Enable fallback hotspot (captive portal) in case wifi connection fails |
NewerOlder