Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.4 KiB

4 years ago
  1. #!/usr/bin/zsh
  2. alias backup="sudo borg create --progress --stats /mnt/hdd/backups::laptop_$(date +%m_%d_%Y) /home /usr /etc /var /opt /boot --exclude /var/lib --exclude /home/yigit/Projects/UltimateStudent/recordings"
  3. alias metis_backup="mysqldump --no-tablespaces --single-transaction -u bcaa49b6f602ea -h eu-cdbr-west-03.cleardb.net heroku_a78e4b025f8259d -pdc691280 > ~/.db_backups/metis_$(date +%m_%d_%Y).sql"
  4. alias feh="feh --scale-down --auto-zoom"
  5. alias idea="/home/yigit/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/201.7223.91/bin/idea.sh"
  6. alias lights_off="curl 'http://yeetclock/setcolor?R=2000&G=10&B=000&O=0'"
  7. alias open=xdg-open
  8. alias rm="rm -i"
  9. alias clip="xclip -selection clipboard"
  10. count() {
  11. echo -n $1 | wc -c
  12. }
  13. dec() {
  14. echo "obase=10; ibase=16; $(echo "$1" | tr a-z A-Z)" | bc
  15. }
  16. hex() {
  17. echo "obase=16; ibase=10; $1" | bc
  18. }
  19. ulimit -n 5000
  20. colors() {
  21. color=1;
  22. count=0;
  23. space=" ";
  24. while [ $color -lt 256 ]; do
  25. if [[ $color == 10 ]]
  26. then
  27. space=" "
  28. fi
  29. if [[ $color == 100 ]]
  30. then
  31. space=" "
  32. fi
  33. echo -en "$color:$space\\033[38;5;${color}myeet\\033[48;5;${color}mworld\\033[0m"
  34. echo -n " "
  35. if [[ $count == 10 ]]
  36. then
  37. echo -en "\n";
  38. count=-1
  39. fi
  40. ((color++));
  41. ((count++))
  42. done
  43. echo ""
  44. }