| motion | description |
|---|---|
| h | Count characters left |
| l | Count characters right |
| ^ | To the first character of the line |
| $ | To the last character of the line |
| f<char> | To the counth character occurrence to the right. F<char> to the counth character occurrence to the left |
| t<char> | To 1 character just before the counth character occurrence to the right |
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 ------ | |
| // ============ | |
| var shell = require('./shellHelper'); | |
| // execute a single shell command | |
| shell.exec('npm test --coverage', function(err){ | |
| console.log('executed test'); | |
| }}); |
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
| version: '3.5' | |
| services: | |
| postgres: | |
| container_name: postgres_container | |
| image: postgres | |
| environment: | |
| POSTGRES_DB: keenclouddb | |
| POSTGRES_USER: ${POSTGRES_USER:-postgres} |
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
| sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3;sudo touch /Applications/* ; killall Dock; killall Finder |
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
| const sleep = (ms) => | |
| new Promise(resolve => setTimeout(resolve, ms)); | |
| async function pageScript() { | |
| document.querySelector('.custom-checkbox label div').click() | |
| await sleep(1000); |
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
| const plugins = new Plugins(); | |
| plugins.use((input, output, next) => { next(); }); | |
| plugins.use((input, output, next) => { next(); }); | |
| const input = {}; | |
| plugins.execute(input, null); |
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
| // Simplest ways to understand internal impl of useReducer | |
| // Library | |
| function useReducer(reducerFunc, initState) { | |
| let currentState = initState; | |
| let dispatchFunc = (action) => { | |
| currentState = reducerFunc(currentState, action); | |
| // console.log("currentState",currentState); | |
| } | |
| return [currentState, dispatchFunc] |
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
| // open aboute:logins | |
| // open dev console and paste below code. | |
| setInterval(()=>{ | |
| document.querySelector("login-item").shadowRoot.querySelector(".delete-button").click(); | |
| setTimeout(()=>document.querySelector("confirmation-dialog").shadowRoot.querySelector(".confirm-button.danger-button").click(), 100) | |
| },300) | |
| // Close tab after all passwords cleared |
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
| /* | |
| var el = document.querySelector('html'), | |
| elClone = el.cloneNode(true); | |
| el.parentNode.replaceChild(elClone, el); | |
| */ | |
| document.addEventListener("click",handler,true); | |
| function handler(e){ |