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"
@ExtNeon
ExtNeon / kipper-ender3-4.2.2-bltouch-g29-g2-g3.cfg
Last active June 23, 2025 16:41 — forked from neoyagami/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 / 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
@merikan
merikan / Jenkinsfile
Last active February 23, 2026 04:17
Some Jenkinsfile examples
Some Jenkinsfile examples
@peterosullivan
peterosullivan / plant-watering.ino
Created December 15, 2016 21:04
Desktop plant watering ESP8266
/*
Desktop plant watering project
*/
#include "DHT.h"
#define echoPin D2 // Echo Pin white wire
#define trigPin D3 // Trigger Pin blue wire
const int relayPin = D1;
@mugifly
mugifly / docker-clean.sh
Created August 18, 2016 07:17
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")
@DenisFromHR
DenisFromHR / RPi_I2C_driver.py
Last active February 6, 2026 13:55
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)
@wgbartley
wgbartley / Configuration.h
Last active December 5, 2015 06:24
Configuration.h for my Prusa i3
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
// This configuration file contains the basic settings.
// Advanced settings can be found in Configuration_adv.h
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
//===========================================================================
//============================= DELTA Printer ===============================
//===========================================================================
@tamirko
tamirko / replaceInFile.groovy
Created August 5, 2012 11:24
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")