certbot certonly --manual -d www.yourwebsite.com -d yourwebsite.com
[operator]aw
- current word with trailing space[operator]iw
- current word[operator]ap
- current paragraph with trailing space[operator]ip
- current paragraph[operator]l
- current letter[operator]it
- inside the tag[operator]0
- move to begin of line
In generally you should convert input string into the array, do the necessary transformation (filter, map, reduce) and join all elements into resulting string.
How to reverse a string
const input = 'reverse me'
const reversed = [...input].reverse().join('')
How to truncate long text
This file contains 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
// based on https://gist.github.com/paulirish/12fb951a8b893a454b32 | |
const $ = document.querySelector.bind(document); | |
const $$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function (name, fn) { | |
this.addEventListener(name, fn); | |
}; | |
NodeList.prototype.__proto__ = Array.prototype; // eslint-disable-line |
The default prefix is C-b
How to vertical split current pane
<prefix> %
How to horizontal split current pane
<prefix> "
How to resize current pane
Took it from https://rekit-portal.herokuapp.com/element/src%252Findex.html/code
(function() {
var loadingNode = document.getElementById('loading-node');
var textNode = loadingNode.childNodes[0];
var barNode = loadingNode.childNodes[1];
var req = new XMLHttpRequest();
// report progress events
req.addEventListener('progress', function(evt) {
- Add
<PROJECT_ROOT>/node_modules/BADASS_PACKAGE/*.
in[ignore]
section of.flowconfig
- Perform
flow-typed create-stub BADASS_PACKAGE
- Install it
yarn global add flow-typed
- [OPTIONALY] Install definitions for packages
flow-typed install
hcitool scan
# 00:11:22:33:44:55
sudo rfcomm bind /dev/rfcomm0 00:11:22:33:44:55
ls -l /dev/rfcomm0
# crw-rw---- root dialout ... /dev/rfcomm0
sudo usermod -a -G dialout
# You should logout/login
For access in VirtualBox guest machine you should enable serial port, select Host Device
and define the path /dev/rfcomm0
in the settings of machine.
Inspired by https://gist.github.com/juliocesar/926500
function getLocalStorage() {
try {
window.localStorage.setItem('__test-localstorage__', '1');
window.localStorage.removeItem('__test-localstorage__');
return window.localStorage;
} catch (error) {
const localStorage = {
OlderNewer