Skip to content

Instantly share code, notes, and snippets.

View lineuve's full-sized avatar

Villeneuve Figueiredo lineuve

View GitHub Profile
@lineuve
lineuve / kipper-ender3-4.2.2-bltouch-g29-g2-g3.cfg
Created January 4, 2025 04:24 — forked from ExtNeon/kipper-ender3-4.2.2-bltouch-g29-g2-g3.cfg
Klipper config, ender 3 with 4.2.2 board (the noisy one)
CONFIG WAS UPDATED - SEE COMMENTS
DEPRECATED
# This file contains pin mappings for the NON stock 2020 Creality Ender 3
# with the 32-bit Creality 4.2.2 board. To use this config, during
# "make menuconfig" select the STM32F103 with a "28KiB bootloader" and
# serial (on USART1 PA10/PA9) communication.
# adapted for my printer ender3-4.2.2 with some modifications and without the BLTouch.
# If you prefer a direct serial connection, in "make menuconfig"
@lineuve
lineuve / README.md
Created November 30, 2024 18:25 — forked from cab404/README.md
Installing Klipper on TronXY X5SA

Installing Klipper on TronXY X5SA

** obligatory "your warranty in now void" disclaimer ** THIS GUIDE IS FOR CHITU V6 BOARDS ONLY

So, you've decided to upgrade you printer software-wise. You are in for a ride!

What can you expect

You'll get Klipper experience. That includes speeds up to 300 mm/s (I've tested infill at 180, and it was pretty much flawless), proper linear advance, low vibration on high accelerations without relying on approximations like S-Curve, no lags on dense GCode files — it's nothing like Marlin or the stock firmware.

@lineuve
lineuve / RPi_I2C_driver.py
Created October 13, 2022 03:13 — forked from DenisFromHR/RPi_I2C_driver.py
RaspberryPi I2C LCD Python stuff
# -*- coding: utf-8 -*-
"""
Compiled, mashed and generally mutilated 2014-2015 by Denis Pleic
Made available under GNU GENERAL PUBLIC LICENSE
# Modified Python I2C library for Raspberry Pi
# as found on http://www.recantha.co.uk/blog/?p=4849
# Joined existing 'i2c_lib.py' and 'lcddriver.py' into a single library
# added bits and pieces from various sources
# By DenisFromHR (Denis Pleic)
@lineuve
lineuve / Jenkinsfile
Created October 23, 2019 15:26 — forked from jonico/Jenkinsfile
Example for a full blown Jenkins pipeline script with multiple stages, kubernetes templates, shared volumes, input steps, injected credentials, heroku deploy, sonarqube and artifactory integration, Docker containers, multiple Git commit statuses, PR merge vs branch build detection, REST API calls to GitHub deployment API, stage timeouts, stage c…
#!groovy
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label, yaml: """
spec:
containers:
- name: mvn
image: maven:3.3.9-jdk-8-alpine
@lineuve
lineuve / replaceInFile.groovy
Created October 12, 2019 04:22 — forked from tamirko/replaceInFile.groovy
replace string in a file in groovy example
/* Groovy Usage:
The following example replaces:
the 1st occurrence of "James" in data.txt with "user1",
the 2nd occurrence of "James" in data.txt with "user2",
the 3rd occurrence of "James" in data.txt with "user3",
..
the 9th occurrence of "James" in data.txt with "user9".
*/
def myFile = new File("data.txt")
@lineuve
lineuve / README.md
Created October 8, 2019 20:45 — forked from mllrjb/README.md
Jenkins init.groovy.d role-based authorization strategy

Usage

Set a system environment variable AUTHZ_JSON_URL that points to a JSON file with the following structure:

{
  "admins": [
    "groupA", 
    "userA"
 ],
@lineuve
lineuve / bitbucket_project.groovy
Created October 3, 2019 18:16 — forked from navidurrahman/bitbucket_project.groovy
Jenkins Job DSL Example - Bitbucket project and branches
// URL components
String baseUrl = "https://bitbucket.org/rest/api"
String version = "1.0"
String project = "SYS"
// Put it all together
String reposUrl = [baseUrl, version, "projects", project, "repos"].join("/")
def send_request(url_string){
// Create URL
@lineuve
lineuve / bitbucket-branches-job-dsl.groovy
Created October 3, 2019 18:15 — forked from mgrebenets/bitbucket-branches-job-dsl.groovy
Jenkins Job DSL Example - Bitbucket Branches
//
// Jenkins Job DSL example to create build projects for Bitbucket branches
//
// Imports
import java.text.DateFormat
import java.text.SimpleDateFormat
import groovy.time.TimeCategory
// URL components
@lineuve
lineuve / docker-clean.sh
Created September 26, 2019 17:54 — forked from mugifly/docker-clean.sh
Cleanup Script for Docker Images and Containers
#!/bin/sh
echo -e "-- Removing exited containers --\n"
docker ps --all --quiet --filter="status=exited" | xargs --no-run-if-empty docker rm --volumes
echo -e "\n\n-- Removing untagged images --\n"
docker rmi --force $(docker images | awk '/^<none>/ { print $3 }')
echo -e "\n\n-- Removing volume directories --\n"
docker volume rm $(docker volume ls --quiet --filter="dangling=true")
@lineuve
lineuve / Jenkinsfile
Created September 8, 2019 14:03 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples