- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
``` | |
ubuntu@server:~$ timedatectl | |
Local time: Wed 2020-10-14 20:03:02 MSK | |
Universal time: Wed 2020-10-14 17:03:02 UTC | |
RTC time: Wed 2020-10-14 17:03:03 | |
Time zone: Europe/Moscow (MSK, +0300) | |
System clock synchronized: yes | |
NTP service: active | |
RTC in local TZ: no | |
``` |
ps aux | grep receive | grep -v sh | awk '{print $2}' | xargs kill -9 |
isScrolledIntoView = (elem) -> | |
docViewTop = $(window).scrollTop() | |
docViewBottom = docViewTop + $(window).height() | |
elemTop = $(elem).offset().top | |
elemBottom = elemTop + $(elem).height() | |
(elemBottom - 200 < docViewBottom) and (elemBottom + $(elem).height() > docViewBottom ) |
Facebook React experiment. Outline for a simple dashboard with draggable panels
A Pen by Andreas Bielk on CodePen.
`/** @jsx React.DOM */` | |
classSet = React.addons.classSet | |
ReactCSSTransitionGroup = React.addons.CSSTransitionGroup | |
ReactTransitionGroup = React.addons.TransitionGroup | |
CarouselStateMixin = | |
propTypes: | |
items: React.PropTypes.array |
dom = React.DOM | |
CommentBox = React.createClass | |
getInitialState: -> | |
{data: []} | |
loadCommentsFromServer: -> | |
$.ajax | |
url: 'comments.json', |
# My First React Component | |
# Added to this Gist for posterity. | |
# Extracted from https://github.com/ministrycentered/transposr/commit/fa616871914ac16b72d0d1b035a08e01e337bd07 | |
# January 08, 2014 | |
{ div, input } = React.DOM | |
AudioFileStepSelector = React.createClass | |
getInitialState: -> | |
halfSteps: 2 |
$ curl 'https://money.yandex.ru/api/instance-id' -X POST -H 'Host: money.yandex.ru' -H 'Content-Type: application/x-www-form-urlencoded' --data 'client_id=A0BA3B0A3B822611B0D2A02CB308B5CFCE65034D20331F0F25C2F50E04B01DFC' | |
{"instance_id":"2bIgswj/yp7ktL5TbwJxlF9NOYGErs4v2CsDcWYSiuVwTX+AialUFgkPhysiGq6p","status":"success"} | |
$ curl 'https://money.yandex.ru/api/request-external-payment' -X POST -H 'Host: money.yandex.ru' -H 'Content-Type: application/x-www-form-urlencoded' --data 'instance_id=2bIgswj/yp7ktL5TbwJxlF9NOYGErs4v2CsDcWYSiuVwTX+AialUFgkPhysiGq6p&pattern_id=p2p&to=410011625585402&amount_due=100.00' | |
{"status":"refused","error":"illegal_param_instance_id"} |
autocmd VimEnter *.log AnsiEsc | |
:set hlsearch | |
set tabstop=2 expandtab | |
:set wildmode=full | |
:set nocompatible | |
syntax on | |
set cursorline | |
hi CursorLine cterm=NONE ctermbg=black ctermfg=NONE |