Skip to content

Instantly share code, notes, and snippets.

View pwaclawiak's full-sized avatar

Paweł Wacławiak pwaclawiak

  • Łódź, Poland
View GitHub Profile
@pwaclawiak
pwaclawiak / wallpapers.sh
Last active October 15, 2025 11:34
Set different wallpapers on 2 different screens (on Ubuntu). Works with mix of horizontal and vertical positions of the screens! :D
#!/bin/bash
# Check the sizes and offsets with xrandr
MONITOR_INFO=$(xrandr | grep connected | cut -d"(" -f1 | grep -v left | xargs | rev | cut -d" " -f1 | rev)
RIGHT_WIDTH=$(echo $MONITOR_INFO | cut -d"x" -f1)
RIGHT_HEIGHT=$(echo $MONITOR_INFO | cut -d"x" -f2 | cut -d"+" -f1)
LEFT_WIDTH=$(echo $MONITOR_INFO | cut -d"+" -f2)
LEFT_TOP_OFFSET=$(echo $MONITOR_INFO | cut -d"+" -f3)
@pwaclawiak
pwaclawiak / Revas-supplier-comparator.py
Last active June 3, 2023 12:23
Short script for comparing Revas.pl simulation supplier prices for all available products to choose the best value.
"""
@author: Paweł Wacławiak
@github_link: https://github.com/pabello
This is a script for choosing the best suppliers' offers in Revas travel agency simulation.
It generates 3 .csv files with a summary of which supplier is the best to get resource of specific quality
with the best price. On top of that it creates an excel workbook with 3 sheets showing the best
prices of certain quality for all of the trips.
To be able to run it you need to have python istalled in your computer.
@pwaclawiak
pwaclawiak / gterminal.preferences
Last active July 11, 2022 20:31
Settings for a GNOME Terminal in my Ubuntu 22.04 (to look quite cool)
[legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9]
audible-bell=false
background-color='rgb(0,0,0)'
background-transparency-percent=49
bold-is-bright=true
default-size-columns=160
default-size-rows=48
foreground-color='rgb(255,255,255)'
palette=['rgb(46,52,54)', 'rgb(204,0,0)', 'rgb(78,154,6)', 'rgb(196,160,0)', 'rgb(52,101,164)', 'rgb(117,80,123)', 'rgb(6,152,154)', 'rgb(211,215,207)', 'rgb(85,87,83)', 'rgb(239,41,41)', 'rgb(138,226,52)', 'rgb(252,233,79)', 'rgb(114,159,207)', 'rgb(173,127,168)', 'rgb(52,226,226)', 'rgb(238,238,236)']
use-theme-colors=false
@pwaclawiak
pwaclawiak / installer.sh
Last active September 25, 2025 01:21
Ubuntu (22.04) installation and configuration script for a freshly installed system.
#!/bin/bash
### Copy the content of this gist, put it in system-setup.sh file, and make it executable.
### Then execute it using the next line. It will store logs in system-setup-log.txt file.
### sudo ./system-setup.sh $USER | tee system-setup-log.txt
# Set color codes for information prints
RED='\033[0;31m'
NC='\033[0m'
INVOKER=$1