Skip to content

Instantly share code, notes, and snippets.

View gist:59c8d4579b5827d11e2c0bc14c862648
```
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
```
View vim_cheatsheet.md

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@c80609a
c80609a / kill.sh
Created Apr 20, 2020 — forked from parsibox/kill.sh
kill ps aux
View kill.sh
ps aux | grep receive | grep -v sh | awk '{print $2}' | xargs kill -9
@c80609a
c80609a / view.coffee
Created Apr 15, 2020 — forked from genoma/view.coffee
Element is on view, return false, true
View view.coffee
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 )
View React-dashboard.markdown
@c80609a
c80609a / Carousel.coffee
Created Mar 25, 2020 — forked from 0m15/Carousel.coffee
A ReactJS based carousel. No dom manipulation, no jQuery, all based on ReactJS states and intelligent rendering and the aid of `ReactCSSTransitionGroup`. Check also the css: https://gist.github.com/zimok/10018721
View Carousel.coffee
View react-tutorial.coffee
dom = React.DOM
CommentBox = React.createClass
getInitialState: ->
{data: []}
loadCommentsFromServer: ->
$.ajax
url: 'comments.json',
View AudioFileStepSelector.coffee
# 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
View yandex_money_request_external_payment.txt
$ 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"}
View .vimrc
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
You can’t perform that action at this time.