Skip to content

Instantly share code, notes, and snippets.

View baatochan's full-sized avatar
😫
What is sleep anyway...

Bartosz Rodziewicz baatochan

😫
What is sleep anyway...
  • Wroclaw, Poland
View GitHub Profile
@baatochan
baatochan / README.md
Created January 29, 2024 18:06
Linux (Manjaro [Arch]) on an HP EliteBook 840 G3 with Intel i5

Linux (Manjaro [Arch]) on an HP EliteBook 840 G3 with Intel i5

This are my notes from the installation of Manjaro Linux on an HP EliteBook 840 G3 with Intel i5-6300U. I've used Manjaro on this PC for 3 years already, but recently I had to reinstall an OS on this PC (I bought it from the company I work for and the PC had to be erased).

Detailed specs

  • Host: HP EliteBook 840 G3
  • Resolution: 1920x1080
  • CPU: 6th gen Intel Core i5-6300U
  • GPU: Intel HD Graphics 520
@baatochan
baatochan / README.md
Created January 29, 2024 22:03
Linux (Manjaro [Arch]) on a Thinkpad X390 with Intel i5

Linux (Manjaro [Arch]) on a Thinkpad X390 with Intel i5

These are my notes from the installation of Manjaro linux on a Thinkpad X390 with Intel i5-8365U. This is my new personal laptop and as it is a true laptop (not ultraportable with passive-cooled m7 cpu) I wanted to install on it Manjaro as a main OS, as well as Windows 11 for stuff that can't be easily done on Linux (I'm pretty sure it won't be often used xD). As for now I only installed Linux and prepared an SSD for Windows installation.

Detailed specs

  • Host: Lenovo Thinkpad X390
  • Resolution: 1920x1080 (touch)
  • CPU: 8th gen Intel Core i5-8365U
  • GPU: Intel UHD Graphics 620
@baatochan
baatochan / README.md
Last active February 18, 2024 18:57
Differentiate a Linux installation after cloning it to a different machine

Differentiate a Linux installation after cloning it to a different machine

Recently I started a habit of cloning my personal Linux installation instead of installing it clean because I don't wanna spend a time of setting my whole workspace, again and again. However this solution results in an unwanted drawback of having everything the same on two machines (surprising, I know).

When I started to use the KDE Connect app I encountered issues with it because 3 machines had the same key and it didn't work properly. Then I started to think about a list of things that should be changed/regenerated after cloning Linux installation. Just to make it clear - none of the things beside KDE Connect that I describe here are needed for the system to work. I never experienced any other issues related to running three machines with the exact cloned OS but I wanted to do it to mitigate any possible problems that may arise in the future.

Note: Before removing any files, you may do a backup of them in case something goes

@baatochan
baatochan / power_usage_analysis.py
Last active March 5, 2024 13:56
Simple python script for battery power usage analysis on Linux.
#!/usr/bin/env python3
"""
Script for battery power usage analysis on Linux. The analysis lasts 1min and reads value every 1s.
Author: baatochan
"""
import os
import statistics
import sys
import time