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
[alias] | |
# Create new branch and push it to origin to have reference | |
bn = "!f(){ git cob \"$1\"; git push --set-upstream origin \"$1\";};f" | |
# Add interactively, commit with message and push | |
aicp = "!f(){ git ai; git cim \"$1\"; git ps;};f" | |
# Add all, commit with message and push | |
acp = "!f(){ git aa; git cim \"$1\"; git ps;};f" | |
# Commit with message | |
cim = "!f(){ git ci -m \"$1\";};f" | |
# Add current changes and stash them |
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 | |
# 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" |
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
#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 |
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 | |
mkdir -p ~/.config/nvidia-switch | |
cat <<EOF > ~/.config/nvidia-switch/on.config | |
#Do not edit | |
Section "OutputClass" | |
Identifier "nvidia" | |
MatchDriver "nvidia-drm" |
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
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 |
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
""" | |
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 |
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
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 |
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 | |
### | |
# This script download, installs and creates basic configuration for containerd with runc, crictl and nerdctl | |
# | |
# Author: Paweł Mstowski | |
# LICENSE: MIT | |
### | |
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
mkdir -p ~/.config/nvim && pushd ~/.config/nvim && git clone https://github.com/mustafmst/kickstart.nvim.git . && popd && nvim |
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
# 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 |
OlderNewer