start new:
tmux
start new with session name:
tmux new -s myname
# Simple tmux configuration | |
# based on: https://hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/ | |
# | |
# --- | |
# Explanation: | |
# This configuration replaces default prefix 'b' with 'a', | |
# changes indexing start from 0 to 1 (easier to use with keyboard), | |
# rebinds splits to more descriptive keys '-' and '|', | |
# enables mouse interactions, | |
# adds custom subtle theming |
mkdir -p ~/.config/nvim && pushd ~/.config/nvim && git clone https://github.com/mustafmst/kickstart.nvim.git . && popd && nvim |
#!/bin/bash | |
### | |
# This script download, installs and creates basic configuration for containerd with runc, crictl and nerdctl | |
# | |
# Author: Paweł Mstowski | |
# LICENSE: MIT | |
### | |
mkdir -p ~/.geekbench && cd ~/.geekbench && wget https://cdn.geekbench.com/Geekbench-5.3.1-Linux.tar.gz && tar xf Geekbench-5.3.1-Linux.tar.gz && cd Geekbench-5.3.1-Linux/ && chmod +x geekbench5 && ./geekbench5 |
""" | |
Simple tool that moves mouse once a minute for one pixel an presses twice 'scrollock' key to stay active. | |
Requirements: | |
PyAutoGUI==0.9.53 | |
""" | |
import pyautogui | |
import time | |
import random |
from abc import ABC, abstractmethod | |
import cv2 as cv | |
import numpy as np | |
from mediapipe.python.solutions.hands import Hands, HAND_CONNECTIONS | |
from mediapipe.python.solutions.face_mesh import FaceMesh, FACEMESH_TESSELATION | |
from mediapipe.python.solutions.pose import Pose, POSE_CONNECTIONS | |
from mediapipe.python.solutions.drawing_utils import draw_landmarks | |
import time | |
from typing import Any, Tuple |
#! /bin/bash | |
mkdir -p ~/.config/nvidia-switch | |
cat <<EOF > ~/.config/nvidia-switch/on.config | |
#Do not edit | |
Section "OutputClass" | |
Identifier "nvidia" | |
MatchDriver "nvidia-drm" |
#put this file to ~/.cofig/pulse | |
.include /etc/pulse/default.pa | |
.ifexists module-null-sink.so | |
load-module module-null-sink sink_name=discord_sink sink_properties=device.description=discord_sink | |
load-module module-null-sink sink_name=spotify_sink sink_properties=device.description=spotify_sink | |
load-module module-null-sink sink_name=obs_monitor_sink sink_properties=device.description=obs_monitor_sink | |
.endif | |
.ifexists module-virtual-source.so |
#!/bin/bash | |
# thanks to xenithorb --> https://github.com/powerline/powerline/issues/186#issuecomment-247810572 | |
mkdir -p ~/.config/powerline | |
cat <<-'EOF' > ~/.config/powerline/config.json | |
{ | |
"ext": { | |
"shell": { | |
"theme": "default_leftonly" |