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 / readme.md
Created March 13, 2024 18:49
Xcode key bindings like in VSCode
@sedoyjan
sedoyjan / info.plist
Created June 19, 2023 18:25
Fix RN websocket ios background mode issue
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<!-- Your production server name instead of placeholder.io, example.com etc. -->
<key>placeholder.io</key>
<dict>
<key>NSIncludesSubdomains</key>
@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;
}
// Файл "tsconfig.json":
// - устанавливает корневой каталог проекта TypeScript;
// - выполняет настройку параметров компиляции;
// - устанавливает файлы проекта.
// Присутствие файла "tsconfig.json" в папке указывает TypeScript, что это корневая папка проекта.
// Внутри "tsconfig.json" указываются настройки компилятора TypeScript и корневые файлы проекта.
// Программа компилятора "tsc" ищет файл "tsconfig.json" сначала в папке, где она расположена, затем поднимается выше и ищет в родительских папках согласно их вложенности друг в друга.
// Команда "tsc --project C:\path\to\my\project\folder" берет файл "tsconfig.json" из папки, расположенной по данному пути.
// Файл "tsconfig.json" может быть полностью пустым, тогда компилятор скомпилирует все файлы с настройками заданными по умолчанию.
// Опции компилятора, перечисленные в командной строке перезаписывают собой опции, заданные в файле "tsconfig.json".
@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: