Skip to content

Instantly share code, notes, and snippets.

View mustafmst's full-sized avatar
:octocat:
Learning new things

Pawel Mstowski mustafmst

:octocat:
Learning new things
View GitHub Profile
@mustafmst
mustafmst / tmux-cheatsheet.markdown
Created October 8, 2025 18:13 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

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
@mustafmst
mustafmst / install.sh
Created December 5, 2023 10:58
neovim kickstart config install oneliner
mkdir -p ~/.config/nvim && pushd ~/.config/nvim && git clone https://github.com/mustafmst/kickstart.nvim.git . && popd && nvim
@mustafmst
mustafmst / install.sh
Last active October 27, 2023 11:13
Ubuntu Linux install script for containerd
#!/bin/bash
###
# This script download, installs and creates basic configuration for containerd with runc, crictl and nerdctl
#
# Author: Paweł Mstowski
# LICENSE: MIT
###
@mustafmst
mustafmst / bash command
Created July 25, 2023 09:03
Geekbench onliner
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
@mustafmst
mustafmst / afk.py
Last active October 26, 2023 20:31
Mouse mover and key presser
"""
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
@mustafmst
mustafmst / install-nvidia-switch.sh
Last active November 24, 2021 09:35
Bash script that creates config for nvidia on and off
#! /bin/bash
mkdir -p ~/.config/nvidia-switch
cat <<EOF > ~/.config/nvidia-switch/on.config
#Do not edit
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
@mustafmst
mustafmst / default.pa
Last active May 9, 2021 17:23
pulseaudio streaming setup
#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"