Skip to content

Instantly share code, notes, and snippets.

View sedoyjan's full-sized avatar
:octocat:
I may be slow to respond.

Sergei Grigorev sedoyjan

:octocat:
I may be slow to respond.
View GitHub Profile
@sedoyjan
sedoyjan / sources.list
Created November 9, 2020 08:29 — forked from h0bbel/sources.list
/etc/apt/sources.list for Ubuntu 18.04.1 LTS Bionic Beaver
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
/*
Render SVG Arc with canvas commands
Usage: solveArc(x, y, coords)
*/
function solveArc(x, y, coords) {
var rx = coords[0]
var ry = coords[1]
var rot = coords[2]
var large = coords[3]
@sedoyjan
sedoyjan / autoru_qa_assits.json
Created July 20, 2020 08:57 — forked from fanruten/autoru_qa_assits.json
AutoRu QA Assits App
{
"title": "Auto.Ru",
"suitName": "group.mainAppSettings",
"groups": [
{
"title": "Общие настройки",
"subtitle": "При изменении любой настройки нужно перезапустить приложение Auto.ru — убить его в списке запущеных приложений iOS",
"parameters": [
{
"path": "requiresCustomSSLChain",
@sedoyjan
sedoyjan / react-virtualized.d.ts
Created April 19, 2020 12:53 — forked from bertrandk/react-virtualized.d.ts
Typescript React Virtualized
/// <reference path="../react/react.d.ts" />
declare namespace ReactVirtualized {
import React = __React
interface CellGroupRendererConfig {
cellSizeAndPositionGetter: Function;
indices: Array<number>;
cellRenderer: Function;
}
@sedoyjan
sedoyjan / install-postgres-10-ubuntu.md
Created November 9, 2019 15:52 — forked from alistairewj/install-postgres-10-ubuntu.md
Install PostgreSQL 10 on Ubuntu

Install PostgreSQL 10 on Ubuntu

This is a quick guide to install PostgreSQL 10 - tested on Ubuntu 16.04 but likely can be used for Ubuntu 14.04 and 17.04 as well, with one minor modification detailed below.

(Optional) Uninstall other versions of postgres

To make life simple, remove all other versions of Postgres. Obviously not required, but again, makes life simple.

dpkg -l | grep postgres
@sedoyjan
sedoyjan / event-listeners.js
Created November 8, 2019 07:12 — forked from danburzo/README.md
Get all event listeners on the page in Google Chrome
var items = Array.prototype.slice.call(
document.querySelectorAll('*')
).map(function(element) {
var listeners = getEventListeners(element);
return {
element: element,
listeners: Object.keys(listeners).map(function(k) {
return { event: k, listeners: listeners[k] };
})
};
@sedoyjan
sedoyjan / LICENSE
Created October 29, 2019 11:54 — forked from ourmaninamsterdam/LICENSE
Arrayzing - The JavaScript array cheatsheet
The MIT License (MIT)
Copyright (c) 2015 Justin Perry
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@sedoyjan
sedoyjan / hex-opacity-values.txt
Created January 31, 2019 21:28 — forked from frankyonnetti/CSS--hex-opacity-values.css
#css Hex Opacity Values
Hex Opacity Values
100% — FF
95% — F2
90% — E6
85% — D9
80% — CC
75% — BF
70% — B3
65% — A6
@sedoyjan
sedoyjan / meta-tags.md
Created January 9, 2019 18:32 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@sedoyjan
sedoyjan / httpsExpressApp.js
Created December 5, 2018 09:07 — forked from ryanhanwu/httpsExpressApp.js
Express JS HTTP + HTTPs server (including auto redirect)
var express = require('express'),
routes = require('./routes'),
upload = require('./routes/upload'),
http = require('http'),
https = require('https'),
fs = require('fs'),
path = require('path'),
httpApp = express(),
app = express(),
certPath = "cert";