Skip to content

Instantly share code, notes, and snippets.

```
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
```
@c80609a
c80609a / vim_cheatsheet.md
Created July 10, 2020 12:54 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

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 April 20, 2020 05:06 — forked from parsibox/kill.sh
kill ps aux
ps aux | grep receive | grep -v sh | awk '{print $2}' | xargs kill -9
@c80609a
c80609a / view.coffee
Created April 15, 2020 08:28 — forked from genoma/view.coffee
Element is on view, return false, true
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 )
@c80609a
c80609a / React-dashboard.markdown
Created March 25, 2020 13:28 — forked from wallrat/React-dashboard.markdown
A Pen by Andreas Bielk.
@c80609a
c80609a / Carousel.coffee
Created March 25, 2020 13:28 — 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
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