This file contains 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
;; https://github.com/kmonad/kmonad | |
;; https://www.e-shop.gr/logilink-id0181-illuminated-one-hand-gaming-keyboard-black-p-PER.758597 | |
;; INTRO to kmonad lisp and config | |
;; WARNING: Don't use anyone's config without any understanding of kmonad or | |
;; it's configuration. Don't even use mine but use it to understand how it | |
;; works | |
(defcfg | |
fallthrough true |
This file contains 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
gsettings set org.gnome.mutter dynamic-workspaces false | |
gsettings set org.gnome.desktop.wm.preferences num-workspaces 8 | |
gsettings set org.gnome.shell.keybindings switch-to-application-1 [] | |
gsettings set org.gnome.shell.keybindings switch-to-application-2 [] | |
gsettings set org.gnome.shell.keybindings switch-to-application-3 [] | |
gsettings set org.gnome.shell.keybindings switch-to-application-4 [] | |
gsettings set org.gnome.shell.keybindings switch-to-application-5 [] | |
gsettings set org.gnome.shell.keybindings switch-to-application-6 [] | |
gsettings set org.gnome.shell.keybindings switch-to-application-7 [] |
This file contains 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
Mar 17 22:43:55 pop-os kernel: usb 3-2.1: new full-speed USB device number 5 using ehci-pci | |
Mar 17 22:43:55 pop-os kernel: usb 3-2.1: New USB device found, idVendor=2feb, idProduct=0006, bcdDevice= 0.00 | |
Mar 17 22:43:55 pop-os kernel: usb 3-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 | |
Mar 17 22:43:55 pop-os kernel: usb 3-2.1: Product: A15PRO | |
Mar 17 22:43:55 pop-os kernel: usb 3-2.1: Manufacturer: VEIKK.INC | |
Mar 17 22:43:55 pop-os kernel: usb 3-2.1: SerialNumber: 0000001 | |
Mar 17 22:43:55 pop-os kernel: input: VEIKK A15 Pro Pen as /devices/pci0000:00/0000:00:16.2/usb3/3-2/3-2.1/3-2.1:1.2/0003:2FEB:0006.0017/input/input50 | |
Mar 17 22:43:55 pop-os kernel: input: VEIKK A15 Pro Keyboard as /devices/pci0000:00/0000:00:16.2/usb3/3-2/3-2.1/3-2.1:1.2/0003:2FEB:0006.0017/input/input51 | |
Mar 17 22:43:55 pop-os kernel: input: VEIKK A15 Pro Gesture Pad as /devices/pci0000:00/0000:00:16.2/usb3/3-2/3-2.1/3-2.1:1.2/0003:2FEB:0006.0017/input/input52 | |
Mar 17 22:43:55 pop-os kernel: veikk 0003:2FEB:0006.0017: hidraw2: U |
This file contains 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 | |
#hour=$(yad --center --width="90" --height="50" --text-align="center" --entry --numeric --title="Ρύθμιση Χρονόμετρου" --text="Επιλέξτε ώρες για τερματισμό:" --entry-text="0") | |
#minute=$(yad --center --width="90" --height="50" --entry --numeric --title="Ρύθμιση Χρονόμετρου" --text="Επιλέξτε λεπτά για τερματισμό:" --entry-text="0") | |
function insertTime() | |
{ | |
frmdata=$(yad --center --width="260" --height="50" --title="Ρύθμιση Χρονομέτρου" \ | |
--text='<span foreground="green" font="16">Εισάγετε χρόνο για τερματισμό:</span>' \ | |
--button="Έντάξει" --button="Άκυρο" --form \ | |
--field=" Ώρες:":NUM "0" \ | |
--field=" Λεπτά:":NUM "0") |
This file contains 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
#include <algorithm> | |
#include <cassert> | |
#include <vector> | |
//#include <set> | |
using namespace std; | |
using card_t=char; | |
const card_t Jocker = 'J'; | |
// Check if vector contains element |
This file contains 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
using Nat = unsigned long long; | |
Nat naive_sum(Nat div1, Nat div2, Nat user_value) { | |
Nat sum{}; | |
for (Nat i = 0; i <= user_value; i++) { | |
if ((i % div1 == 0) || (i % div2 == 0)) { | |
sum = sum + i; | |
} | |
} |
This file contains 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
#!/usr/bin/env bash | |
dir=$(dirname "$0") | |
top_dir=$(git rev-parse --show-toplevel) | |
cd "${top_dir}" || exit | |
find src test -name "*.cpp" | xargs sed -i "1i// This is an open source non-commercial project. Dear PVS-Studio, please check it.\n// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com" | |
cd "${top_dir}/cmake-build-debug" || exit | |
pvs-studio-analyzer trace -- make -j 8 |
This file contains 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 | |
# | |
# DESC: Install Nerd fonts | |
# https://github.com/ryanoasis/nerd-fonts/ | |
# https://github.com/ryanoasis/nerd-fonts/releases/tag/v2.1.0 | |
# | |
nerd_fonts=( | |
'UbuntuMono' |
This file contains 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
#!/usr/bin/env bash | |
curr_dir=$(pwd) | |
function build_with_cmake() { | |
cmake .. \ | |
-DCMAKE_BUILD_TYPE="${build_type}" -G "${GENERATOR}" \ | |
-DCMAKE_TOOLCHAIN_FILE=support/clang-toolchain.cmake | |
return $? | |
} |
This file contains 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 | |
dir=$(dirname "$0") | |
# | |
# DESC: Install Rust language and rust tools | |
# | |
reset=`tput sgr0` | |
red=`tput sgr0; tput setaf 1` |
NewerOlder