Skip to content

Instantly share code, notes, and snippets.

View xZero707's full-sized avatar
🦆
Absent-Minded professor

Aleksandar Puharic xZero707

🦆
Absent-Minded professor
View GitHub Profile

PWM fan control in Linux with a Gigabyte Aorus motherboard

  • install lm-sensors with your package manager

sensors

If it won't show any fan/speed, continue

sensor-detect

@xZero707
xZero707 / omz-essentials.sh
Created December 30, 2024 19:01
Install OMZ essentials
# Install git - Alpine linux
apk add --update git
# Power combo: Auto-suggestions & Syntax highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
@xZero707
xZero707 / run.sh
Last active February 22, 2025 21:15
Normalize and load docker secrets within S6 supervised container
# Moved. See: https://github.com/N0rthernL1ghts/docker-env-secrets/blob/master/src/init-docker-secrets-run.sh
@xZero707
xZero707 / DeRancilio.md
Created September 5, 2024 03:04 — forked from movd/DeRancilio.md
Delonghi Dedica 680 Rancilio Silvia wand modification (originally created by Chris Faulds)

This very detailed guide was originally written by Chris Faulds and used to be available at cfdesign.work/derancilio. Unfortunately, his website is no longer online. Thanks to the Wayback Machine the article is still readable. But since the presentation is a bit wonky, I decided to mirror his awesome tutorial is this gist.

Chris has spent a huge amount of time writing an in-depth instruction on how to take the machine apart, which may also come in handy for other repairs for the Dedica 680/685. Again all credits go to him. Thanks a lot for the great work!

DeRancilio Index Banner

Delonghi Dedica 680 Rancilio Silvia wand modification

Monday 1st August 2016

@xZero707
xZero707 / git-commit-coauthored
Created August 30, 2023 15:12
GIT extension to easily commit co-authored during pair-programming sessions.
#!/usr/bin/env bash
is_git_repository() {
if ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
return 1
fi
return 0
}
@xZero707
xZero707 / wttrin.sh
Last active May 17, 2022 16:11
Convenient https://wttr.in wrapper
#!/usr/bin/env sh
set -e
LOCATION="$(echo ${1:-} | sed -e 's/ /%20/g')"
curl --get "https://wttr.in/${LOCATION}"
exit $?
# Source: https://stackoverflow.com/a/66101344/1797452
# Mostly useful for Docker so installation of some packages that require systemd is possible.
# When systemctl is run, it will ALWAYS execute successfuly.
ln -s /bin/true /sbin/systemctl
@xZero707
xZero707 / dockersecurity.md
Created February 10, 2021 18:32
Docker Security Hardening
@xZero707
xZero707 / attr.sh
Last active September 21, 2021 20:02
attrs
# Update: Development moved to separate repository https://github.com/N0rthernL1ghts/attr
@xZero707
xZero707 / opera-fix-ffmpeg.sh
Last active October 16, 2021 22:40
Opera browser on linux comes with broken ffmpeg due to legal reasons. This script will fix it using chromium-ffmpeg snap library.
#!/usr/bin/env bash
# DEPRECATED!
# See: https://forums.opera.com/topic/37539/solving-the-problem-of-the-opera-browser-with-video-playback-in-ubuntu-and-similar-distributions-linux-mint-kde-neon/
echo "Deprecated!"
echo "Please refer here https://github.com/xZero707/opera-fix-ffmpeg for an updated version."