Skip to content

Instantly share code, notes, and snippets.

View juanbelieni's full-sized avatar
🎯
Focusing

Juan Belieni juanbelieni

🎯
Focusing
View GitHub Profile
@krezreb
krezreb / linux power management notes.md
Last active September 26, 2024 22:28
linux power management notes

notes for setting up power management under ubuntu 22.04 (kernel 5.15) on a dell xps

I am a developer and system admin. I have a LOT of browser tabs, lots of terminals open, as well as vscode and MS Teams. YMMV but as far as I can tell, the "best" balance of power savings (long battery life) vs maching usability is using tlp and tlpui. This gives approx 5 - 6 hours of battery life on my workload.

I am running an INTEL processor, the below does not apply to AMD

TL;DR

@ScottKillen
ScottKillen / print.css
Last active March 7, 2026 14:30
PDF export stylesheet for obsidian
/* Obsidian snippet to style output of pdf exports
*/
@media print {
/* set your preferred fonts here.
*/
:root {
--body-font-family: "Newsreader Text", TimesNewRoman, "Times New Roman", Times, Baskerville, Georgia, serif;
@juanbelieni
juanbelieni / Dockerfile
Last active March 11, 2021 15:34
Docker configuration for Anaconda and Jupyter Notebook
FROM continuumio/anaconda3:latest
RUN conda install jupyter -y --quiet
RUN mkdir /opt/notebooks
CMD ["jupyter", "notebook", "--notebook-dir=/opt/notebooks", "--ip='*'", "--port=8888", "--no-browser", "--allow-root", "--NotebookApp.token=''", "--NotebookApp.password=''"]
@espoirMur
espoirMur / install_nvidia_driver.md
Last active October 27, 2025 17:13
How I fix this issue NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

I am no longer abe to monitor this post , I have decided to move everything to my personal blog for better monitoring.

Please click here to access the full post

@ryo-ARAKI
ryo-ARAKI / starship.toml
Last active March 12, 2026 02:14
Starship configuration file
# ~/.config/starship.toml
# NOTE: Emojis with variation selectors or unstable display widths may cause prompt rendering glitches.
# Examples include ⚔️ 🏎️ 🗃️ 🗑️ ✒️
# If layout breaks, prefer colourful emojis without variation selectors.
format = """
$username$hostname$directory$git_branch$git_commit$git_state$git_metrics$git_status$julia$python$rust$conda$direnv$fill$memory_usage$cmd_duration$battery$time
$character"""
@scottstanfield
scottstanfield / .zshrc
Last active May 29, 2024 01:45
sensible, minimal .zshrc
# Sensible, short .zshrc
# Gist page: git.io/vSBRk
# Raw file: curl -L git.io/sensible-zshrc
# GNU and BSD (macOS) ls flags aren't compatible
ls --version &>/dev/null
if [ $? -eq 0 ]; then
lsflags="--color --group-directories-first -F"
else
lsflags="-GF"