Skip to content

Instantly share code, notes, and snippets.

View zwnk's full-sized avatar
👾
Yein! Look at dat unicorn!11

zwnk

👾
Yein! Look at dat unicorn!11
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="LineageOS/android_device_xiaomi_chiron" path="device/xiaomi/chiron" remote="github" />
<project name="LineageOS/android_device_xiaomi_msm8998-common" path="device/xiaomi/msm8998-common" remote="github" />
<project name="LineageOS/android_kernel_xiaomi_msm8998" path="kernel/xiaomi/msm8998" remote="github" />
<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" />
<project name="TheMuppets/proprietary_vendor_xiaomi" path="vendor/xiaomi" remote="github" />
</manifest>
@zwnk
zwnk / printer.cfg
Last active October 8, 2020 21:39
klipper config 4 skr v1.3
#####################################################################################
# SKR v1.3 Configuration for Ender 3
# X,Y and Z are TMC2208 in UART Mode.
# E is an TMC2209
# BLTouch
#####################################################################################
[printer]
kinematics: cartesian
max_velocity: 400 #300
import ezdxf
from rotations import rotateXY
dwg = ezdxf.readfile("0040-EGM08_WGS84_2D.dxf")
# iterate over all entities in model space
msp = dwg.modelspace()
# iterate over all polylines
for idx, line in enumerate(msp.query('LWPOLYLINE')):
@zwnk
zwnk / userChrome.css
Last active April 24, 2019 13:50
Firefox userChrome.css
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Hide buttons **/
:root:not([customizing]) #nav-bar toolbarbutton {
margin-left: -30px !important;
opacity: 0 !important;
pointer-events: none !important;
transition: all 100ms var(--animation-easing-function) !important;
}
@zwnk
zwnk / printer.cfg
Last active May 16, 2021 04:08
klipper printer config Ender 3 MKS Gen L
#####################################################################################
# Configuration for Ender 3 with a MKS GEN L
# X,Y are TMC2208 in UART Mode.
# Z is a TMC2208 in Drop In mode
# E is an LV8729
#
# a BLTouch is present
#####################################################################################
[printer]
@zwnk
zwnk / conf.h
Created March 18, 2019 12:19
my ender 3 marlin conf
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@zwnk
zwnk / dactyl-manuform.h
Last active August 9, 2018 15:51
manufrom h
#ifndef REV2_H
#define REV2_H
#include "dactyl_manuform.h"
//void promicro_bootloader_jmp(bool program);
#include "quantum.h"
#ifdef USE_I2C
@zwnk
zwnk / dactyl-manuform.h
Created August 8, 2018 20:38
dactyl manuform header for 5x6 layout
#ifndef REV2_H
#define REV2_H
#include "dactyl_manuform.h"
//void promicro_bootloader_jmp(bool program);
#include "quantum.h"
#ifdef USE_I2C
function getActiveLayer(layerName,picID) {
var layers = map.getLayers();
var length = layers.getLength();
for (var i = 0; i < length; i++) {
l = layers.item(i);
var lt = l.get('title');
// check for layers within groups
if (lt === 'Runs') { // Title of Group
var layers = l.getLayers().getArray();
var length = l.getLayers().getArray().length;
# bash script that checks for new version of lastools
# the actual version is saved as LAStools_act.zip
# after downloading the latest version md5 of
# both archives are checked against each other.
#download latest LAStools version
# -O for overwritting LAStools.zip
# -L for following any redirect
# go to home folder for script execution