Skip to content

Instantly share code, notes, and snippets.

@dhanonethree
dhanonethree / surfingkeys_settings.txt
Last active September 11, 2023 08:57
surfingkeys settings - mappings and theme
// 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.
@dhanonethree
dhanonethree / gist:8dcf0966355e06125872195e4286c823
Created August 8, 2020 07:21
cmd to start python server localhost
python3 -m http.server <port>
post is optional and the default 8000
@dhanonethree
dhanonethree / gist:d8215c648938c3841ef04e77db03fbda
Created August 8, 2020 07:08
open chrome in dark mode, especially its context menu in ubuntu
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
@dhanonethree
dhanonethree / look_up_in_browser.py
Created May 3, 2020 18:10
look up things in browse using this python code
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'
@dhanonethree
dhanonethree / shortcuts-keys.txt
Created October 12, 2019 08:54
Ubuntu/Linux terminal shortcut keys
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.