Skip to content

Instantly share code, notes, and snippets.

Víctor Martínez knoopx

Block or report user

Report or block knoopx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@knoopx
knoopx / readme.md
Last active Nov 20, 2019
Catalina + Windows 10 + Clover
View readme.md
  • make an extfat partition for windows using disk utility
  • make a bootable windows usb (just format disk as fat32 and rsync iso contents)
  • boot windows installation, press shift+f10 to open a console
  • type diskpart, then list volume to figure out windows extfat partion drive letter
  • type dism /Get-WimInfo /WimFile:D:\Sources\install.wim to figure out what window version to install
  • type dism /Apply-Image /ImageFile:D:\Sources\install.wim /index:1 /ApplyDir:C:\ to install specified version into C:
  • type diskpart, then list partition to figure out EFI partition.
  • type select partition #, then assign to "mount" EFI partition, annotate EFI partition letter.
  • type bcdboot C:\Windows /s E: /f uefi to copy Windows UEFI stuff to EFI partition (E:)
@knoopx
knoopx / printer.cfg
Created Oct 3, 2019
klipper skr 1.3 + 2209
View printer.cfg
[bed_mesh]
speed: 120
#samples: 2
horizontal_move_z: 2
min_point: 11,1
max_point: 215,193
probe_count: 6,6
mesh_pps: 3,3
algorithm: lagrange
fade_end: 4
View example.sql
# generates random dates per row
update myjacoti_measurementsession set date_start = (select random_date() where myjacoti_measurementsession.uuid = myjacoti_measurementsession.uuid);
@knoopx
knoopx / class-methods-to-arrow-function-props.js
Last active Feb 13, 2019
codemod - rewrite class methods as arrow function properties
View class-methods-to-arrow-function-props.js
const IGNORE = [
'constructor',
'componentDidMount',
'componentDidUpdate',
'componentWillReceiveProps',
'componentWillMount',
'componentWillUpdate',
'componentWillUnmount',
'getChildContext',
'getDefaultProps',
@knoopx
knoopx / MaterialSettingsVisibilityHandler.py
Last active Nov 17, 2019
Cura Extended Material Profiles
View MaterialSettingsVisibilityHandler.py
# Copyright (c) 2017 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
import UM.Settings.Models.SettingVisibilityHandler
class MaterialSettingsVisibilityHandler(UM.Settings.Models.SettingVisibilityHandler.SettingVisibilityHandler):
def __init__(self, parent=None, *args, **kwargs):
super().__init__(parent=parent, *args, **kwargs)
View printer.cfg
[virtual_sdcard]
path: ~/sdcard
[probe]
pin: PB4
x_offset: 23
y_offset: 11 # bmg
#y_offset: 5 # stock
speed: 10.0
@knoopx
knoopx / setup.sh
Last active Dec 23, 2018
raspberry tft
View setup.sh
# https://tutorials-raspberrypi.de/lcd-touch-display-teil-2-anpassungen/
# http://projectable.me/raspberry-pi-touchscreen-octoprint-controller/
sudo apt-get install xserver-xorg-video-fbturbo
git clone https://github.com/goodtft/LCD-show.git
LCD-show/LCD35-show 180
# fix framebuffer
View gist:dc0427b555424979e164ccce1247f6e1
/etc/X11/Xwrapper.config -> allowed_users=anybody
/usr/share/X11/xorg.conf.d/99-fbdev.conf
Section "Device"
Identifier "touchscreen"
Driver "fbdev"
Option "fbdev" "/dev/fb1"
EndSection
@knoopx
knoopx / printer.cfg
Last active Jul 28, 2018
Klipper firmware configuration
View printer.cfg
[tmc2130 stepper_x]
cs_pin: ar59
microsteps: 16
run_current: .64
# diag1_pin: !PK2
stealthchop_threshold: 100
#driver_IHOLDDELAY: 8
#driver_TPOWERDOWN: 0
#driver_BLANK_TIME_SELECT: 1
#driver_TOFF: 4
@knoopx
knoopx / README.md
Last active Nov 27, 2019
Creality Ender 3 Stock Factory Vref
View README.md

Creality3D v1.1.2 stock vref values

A4988 Drivers
Vref set to ~90% of stepper rated current
Rs = 0.1ohm

X = 0,58v (0,725A)
Y = 0,58v (0,725A)
Z = 0,58v (0,725A)
You can’t perform that action at this time.