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
| // an example to create a new mapping `ctrl-y` | |
| //api.mapkey('Y', 'Show me the money', function() { | |
| // window.alert('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).'); | |
| //}); | |
| // an example to replace `T` with `gt`, click `Default mappings` to see how `T` works. | |
| //api.map('gt', 'T'); | |
| //api.map('O', 'T'); | |
| // Whether always to show mode status. |
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
| python3 -m http.server <port> | |
| post is optional and the default 8000 |
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
| google-chrome-stable --enable-features=WebUIDarkMode --force-dark-mode | |
| To run with gpu use below cmd: | |
| DRI_PRIME=1 google-chrome-stable --enable-features=WebUIDarkMode --force-dark-mode |
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 webbrowser | |
| url = 'http://docs.python.org/' | |
| # MacOS | |
| # chrome_path = 'open -a /Applications/Google\ Chrome.app %s' | |
| # Windows | |
| chrome_path = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s' |
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
| Ubuntu Keyboard shortcuts for Terminal | |
| Ctrl + A = Move cursor to the beginning of the line. | |
| Ctrl + E = Move cursor to end of line. | |
| Ctrl + C = kills the current process. | |
| Ctrl + Z = sends the current process to the background. | |
| Ctrl + D = logs you out. | |
| Ctrl + R = This keyboard shortcut will find the last command matching the entered letters. | |
| Enter a letter, followed by Tab + Tab = lists the available commands beginning with those letters. | |
| Ctrl + U = deletes the current line. | |
| Ctrl + K = deletes the command from the cursor right. |