Skip to content

Instantly share code, notes, and snippets.

@Realetive
Realetive / .vimrc
Last active July 20, 2018 23:10
NeoVim
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible'
Plug 'altercation/vim-colors-solarized'
@Realetive
Realetive / install.sh
Created January 5, 2018 01:15
Как установить https://github.com/lyokha/vim-xkbswitch с Раскладкой Бирмана
# 1. Установить xkbswitch
git clone [email protected]:myshov/xkbswitch-macosx.git ~/.vim/plugin/xkbswitch-macosx
ln -s ~/.vim/plugin/xkbswitch-macosx/bin/xkbswitch /usr/local/bin/xkbswitch
# 2. Установить библиотеку-обёртку
git clone [email protected]:myshov/libxkbswitch-macosx.git ~/.vim/plugin/libxkbswitch-macosx
ln -s ~/.vim/plugin/libxkbswitch-macosx/bin/libxkbswitch.dylib /usr/local/lib/libxkbswitch.dylib
@jarun
jarun / fish_noti.md
Last active May 6, 2025 05:35
notification on command completion (fish shell)

Instead of waiting for long commands to finish one can easily get notifications when they are complete. The following procdure shows how to set his in fish shell.

Requirements: fish shell, notify-send, xdotool

  • Add a new file vi ~/.config/fish/functions/noti.fish with the content below:
function fish_right_prompt
    if test $CMD_DURATION
 # Check if terminal window is hidden
@OlesenkoViktor
OlesenkoViktor / PS3Dualshock_10_15.plist
Last active June 27, 2022 07:48
DualShock 3 + Mac OS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CGPDeviceCategory</key>
<string>GamePad</string>
<key>CGPDeviceType</key>
<string>PS3</string>
<key>CGPDisplayNameOvr</key>
<string>DualShock3 Analogue Triggers</string>
@umidjons
umidjons / youtube-dl-download-audio-only-on-best-quality.md
Last active November 14, 2024 21:20
Download Audio from YouTube with youtube-dl

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@emraher
emraher / custom.css
Created September 15, 2017 00:16
Vivaldi Custom CSS
/*==========================================================*/
/* qutebrowser-ish Vivaldi */
/*==========================================================*/
.mac #header {
min-height: 16px !important;
}
.mac #tabs-container.top {
padding-left: 0 !important;
padding-right: 0 !important;
}
@rmhsilva
rmhsilva / MacOS trackpad.md
Last active May 19, 2025 09:53
Accessing raw multitouch trackpad data (MacOS)
@rosswd
rosswd / apps.md
Last active May 7, 2018 02:32
2017 MacOS Apps

Mac Apps

This is a list of MacOS apps I like. I'm trying to just include apps that are not mainstream but still high quality. The list was complied in August 2017.

Update

2018 version is here

Media

@senz
senz / gogs_migrate.sh
Created August 8, 2017 09:41
gogs repo migration script
#!/usr/bin/env bash
## Usage:
## ./migrate.sh $clone_url $project_name $owner_uid
## Migrate a repository to gogs into the user namespace of the token-user
## ./migrate.sh [email protected]:group/repo.git repo 1
## uid can be a group uid
## NB: for local migration, if your gogs instance is inside docker or vm, you must provide path local relative to container's fs
echo $1;
@ankurk91
ankurk91 / mac-apps.md
Last active October 8, 2024 06:45
Mac OS 10.15 Apps and configs

macOS Apps

⚠️ No longer maintained! ⚠️

# Install x-code command line tools 
xcode-select --install

# Install homebrew itself