| Shortcut | Description |
|---|---|
ranger |
Start Ranger |
Q |
Quit Ranger |
R |
Reload current directory |
? |
Ranger Manpages / Shortcuts |
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
| rem to use as a command make precentage signs single | |
| git log -n 1 --pretty=format:^ | |
| "^ | |
| #ifndef GIT_COMMIT_H%%n^ | |
| #define GIT_COMMIT_H%%n^ | |
| %%n^ | |
| static const char* GIT_INFO = \"[%%H, %%d]\r\n\";%%n^ | |
| %%n^ | |
| #endif%%n^ |
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
| echo "g(i,x,t,o){return((3&x&(i*((3&i>>16?\"BY}6YB6$\":\"Qj}6jQ6%\")[t%8]+51)>>o))<<4);};main(i,n,s){for(i=0;;i++)putchar(g(i,1,n=i>>14,12)+g(i,s=i>>17,n^i>>13,10)+g(i,s/3,n+((i>>11)%3),10)+g(i,s/5,8+n-((i>>10)%3),9));}"|gcc -xc -&&./a.out|aplay |
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
| #Idea based on https://tldp.org/LDP/abs/html/devref1.html#MUSICSCR | |
| #default = 8000 frames per second, 8 bits per frame (1 byte), | |
| #1 channel (mono) | |
| duration=1000 # If 8000 bytes = 1 second, then 1000 = 1/8 second. | |
| volume=$'\xff' # Max volume = \xff (or \x00). | |
| mute=$'\x80' # No volume = \x80 (the middle). | |
| function mknote () # $1=Note Hz in bytes (e.g. A = 440Hz :: |
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
| $device = Get-PnpDevice -class Bluetooth -friendlyname "FriendlyDeviceName" | |
| Disable-PnpDevice -InstanceId $device.InstanceId -Confirm:$false | |
| Start-Sleep -Seconds 2 | |
| Enable-PnpDevice -InstanceId $device.InstanceId -Confirm:$false |
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
| #Usage .\bluetooth.ps1 -BluetoothStatus On/Off | |
| # | |
| # | |
| # | |
| # | |
| [CmdletBinding()] Param ( | |
| [Parameter(Mandatory=$true)][ValidateSet('Off', 'On')][string]$BluetoothStatus | |
| ) | |
| If ((Get-Service bthserv).Status -eq 'Stopped') { Start-Service bthserv } |
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
| syntax on | |
| "colorscheme solarized | |
| set background=dark | |
| set guifont=Consolas:h11:cRUSSIAN | |
| " Basic settings -- {{{ | |
| set nocompatible | |
| set encoding=utf-8 | |
| set nolazyredraw | |
| set numberwidth=3 |
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
| let configpath = 'C:/Users/Legkiy/Documents/cVim/cvimrc' | |
| let homedirectory = 'C:/Users/Legkiy/Documents/cVim/' | |
| let barposition = 'bottom' | |
| let langmap = ".№\\;?ёйцукенгшщзхъфывапролджэячсмитьбюЁЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ;/#$&`qwfpgjluy\\;[]arstdhneio'zxcvbkm\\,.~QWFPGJLUY:{}ARSTDHNEIO\"ZXCVBKM<>" | |
| let searchengine = "https://translate.google.com/?hl=ru#view=home&op=translate&sl=en&tl=ru&text=%s" | |
| " Centered search results | |
| centerSearch(direction, absolute) -> {{ | |
| repeats = Mappings.lastCommand.repeats -1; | |
| if (Mappings.lastCommand.repeatStr === '') { |