This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
@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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |