(Also see [remarkable][], the markdown parser created by the author of this cheatsheet)
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 | |
| filetype plugin indent on | |
| "Get the 2-space YAML as the default when hit carriage return after the colon | |
| autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab | |
| хз за что отвечают следующие настройки: | |
| ----------------------------------- | |
| set is hlsearch ai ic scs | |
| nnoremap <esc><esc> :nohls<cr> |
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
| import urequests | |
| SSID = '[ENTER_SSID]' | |
| PSW = '[ENTER_PASSWORD]' | |
| CONNECTION_TIMEOUT = 10000 # milliseconds | |
| READ_TIMEOUT = 1000 # milliseconds | |
| TOKEN = '345342414:AAEwdKYs87fAJLPovD4f5k31yXnflnYFs54' | |
| userChatId = None |
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
| ffmpeg -i input.m4a output.wav | |
| ffmpeg -i input-video.avi -vn -acodec copy output-audio.aac | |
| # using libfaac on Mac OS X 10.6.8 | |
| # -vn : not copying video | |
| # -acodec : specify codec used in flv file | |
| # -ac : channels. 1 is for mono, 2 is for stereo | |
| # -ab : specify bitrate for output file (note that rate is not kbps but bps) | |
| # -ar : sampling frequency (Hz) |
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
| # CPU | |
| for cpu in 1 2 ; do | |
| ( while true; do true; done ) & | |
| done | |
| # IO | |
| for cpu in 1 2 ; do | |
| ( while true; do find / -type f -exec cp {} /dev/null \; ; done ) & | |
| done |