Skip to content

Instantly share code, notes, and snippets.

View alsolovyev's full-sized avatar
💭
Enjoy life, Eat well & Laugh often ¯\_(ツ)_/¯

Aleksey Solovyev alsolovyev

💭
Enjoy life, Eat well & Laugh often ¯\_(ツ)_/¯
View GitHub Profile
@alsolovyev
alsolovyev / .Cmus.md
Last active August 22, 2020 16:34
Cmus: theme settings
@alsolovyev
alsolovyev / .MPV Config.md
Last active May 12, 2023 17:06
Configuration files for MPV Player

MPV Configuration

Config
Keybinds

@alsolovyev
alsolovyev / .Fish Shell Config.md
Last active December 22, 2020 10:06
Configuration file for Fish Shell
@alsolovyev
alsolovyev / .GUI Launcher.md
Last active August 29, 2020 11:25
Launch any GUI related application from crontab in Ubuntu 16.04, 17.10 and other Ubuntu distributions with Gnome

Launch any GUI related application from crontab

@alsolovyev
alsolovyev / colors
Created January 29, 2019 14:36
Bash. Useful Tips
#!/bin/bash
DEF='\e[0m' #Default color and effects
case $TERM in *term*)
#Color picker, usage: printf ${BLD}${CUR}${RED}${BBLU}"Hello!)"${DEF}|
#----------------------------------------------------------+---------+
# Text color | Background color |
#--------------------------------------------------------------------+
# Base color|Lighter shade| Base color | Lighter shade |
BLK='\e[30m'; blk='\e[90m'; BBLK='\e[40m'; bblk='\e[100m' #| Black |
@alsolovyev
alsolovyev / .Corsair Keyboard.md
Last active September 1, 2020 12:17
Old versions of firmware to fix unrecognized keyboard(K70 Lux Red)

Fix unrecognized keyboard (Corsair K70 Lux Red and etc)

source

@alsolovyev
alsolovyev / .Greeting Sire.md
Last active August 22, 2020 16:23
Greetings, Sire!

Greetings, Sire!

@alsolovyev
alsolovyev / .Windows Terminal Settings.md
Last active October 16, 2024 03:10
Settings for Windows Terminal (Preview)

Windows Terminal Settings

@alsolovyev
alsolovyev / .Sublime text 3.md
Last active March 30, 2023 17:56
Sublime Text 3 Settings

Sublime Text 3 Settings

  • Settings
  • Keymap
  • Bracket highlighter settings
@alsolovyev
alsolovyev / SwipeMe.js
Created October 28, 2019 09:46
A simple swipe detection on vanilla js
/** Class representing a simple swipe detection */
class SwipeMe {
/**
* @param {HTMLElement} el - The target
* @param {function} callback - The callback that handles swipe event
* @param {number} [threshold=100] - The minimum distance traveled to be considered swipe
*/
constructor(el, callback, threshold = 100) {
this.el = el
this.callback = callback