Skip to content

Instantly share code, notes, and snippets.

View blazewicz's full-sized avatar

Krzysztof Błażewicz blazewicz

View GitHub Profile
@blazewicz
blazewicz / README.md
Last active June 25, 2023 16:16
Cura Start/End G-Code for Ender 3 V2
@blazewicz
blazewicz / argonone_fan.conf
Last active February 1, 2024 05:30
Better Fan control for Argon One Raspberry Pi 4 case
## This is config for Argon controllable fan
## Temperature at which fan starts
t_on = 50
## Temperature at which fan has full speed
t_full = 65
## Temperature difference for cooldown curve.
## Basically fan will start to slow down when temperature drops by this amount.
@blazewicz
blazewicz / podatki_na_uop.ipynb
Last active May 21, 2021 07:53
Obciążenia na UoP
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@blazewicz
blazewicz / rsyslog.conf
Created July 18, 2020 16:04
RainerScript config for rsyslog for Raspberry Pi OS with remote logging to separate files
# /etc/rsyslog.conf configuration file for rsyslog
#
# For more information install rsyslog-doc and see
# /usr/share/doc/rsyslog-doc/html/configuration/index.html
###################
#### TEMPLATES ####
###################
template(name="RemoteDynaFile" type="string" string="/var/log/remote/%HOSTNAME%.log")
@blazewicz
blazewicz / docker-compose-install.sh
Last active January 4, 2024 18:14
Install latest docker-compose on Debian, Ubuntu or Raspberry Pi OS (Raspbian)
#!/bin/bash
set -x
# This script with documentation is available at: https://gist.github.com/blazewicz/04e666ae1f25387c8b291d81b12c550c
## 1. install required dependencies with apt
apt update && apt install python3-venv python3-dev libffi-dev libssl-dev
## 2. create directory for docker-compose's virtualenv
mkdir -p /opt/local/docker-compose
@blazewicz
blazewicz / pyenv-install.sh
Last active September 25, 2023 11:25
pyenv - Install Python 3.x with optimizations on macOS with macports
#!/bin/bash
set +x
PY_VERSION=3.10.1
export MAKE_OPTS="-j4"
export PYTHON_CONFIGURE_OPTS="$PYTHON_CONFIGURE_OPTS --enable-framework"
export PYTHON_CONFIGURE_OPTS="$PYTHON_CONFIGURE_OPTS --with-computed-gotos"
export PYTHON_CONFIGURE_OPTS="$PYTHON_CONFIGURE_OPTS --with-system-expat"