Skip to content

Instantly share code, notes, and snippets.

View vladimir-kotikov's full-sized avatar
😎
$> ping 192.168.0.1

Vladimir Kotikov vladimir-kotikov

😎
$> ping 192.168.0.1
View GitHub Profile
@vladimir-kotikov
vladimir-kotikov / github_backup.py
Created March 24, 2022 08:20
A simple python script to clone (and optionally archive) all GitHub repos of the single account
#!/usr/bin/env python3
from concurrent.futures import ThreadPoolExecutor
from subprocess import call
from argparse import ArgumentParser
# pip install PyGithub
from github import Github
from github.Repository import Repository
@vladimir-kotikov
vladimir-kotikov / python
Created March 22, 2019 11:46
Python interpreter shim for vscode python remote debug
#!/bin/bash
set -o errexit -o pipefail -o noclobber -o nounset
# VSCode runs this when starting local debug:
# env PYTHONIOENCODING=UTF-8 PYTHONUNBUFFERED=1 /Users/kotikov.vladimir/repos/reddit/snoovatar/.venv/bin/python /Users/kotikov.vladimir/.vscode/extensions/ms-python.python-2019.2.5558/pythonFiles/ptvsd_launcher.py --default --client --host localhost --port 54077 /Users/kotikov.vladimir/repos/reddit/snoovatar/snoovatar/__init__.py
FILENAME="${1##*/}"
if [ "$FILENAME" == "interpreterInfo.py" ]; then
python3 "$1"
var UnityLoader = UnityLoader || {
Compression: {
identity: {
require: function () {
return {}
},
decompress: function (e) {
return e
}
},
Verbose logs are written to /Users/kotikov.vladimir/react-native-debug-adapter.log
2:14:07 PM, 1/19/2017
OS: darwin x64
Adapter node: v7.0.0 x64
vscode-chrome-debug-core: 3.8.1
From client: initialize({"adapterID":"reactnative","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true})
To client: {"seq":0,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"exceptionBreakpointFilters":[{"label":"All Exceptions","filter":"all","default":false},{"label":"Uncaught Exceptions","filter":"uncaught","default":true}],"supportsConfigurationDoneRequest":true,"supportsSetVariable":true,"supportsConditionalBreakpoints":true,"supportsCompletionsRequest":true,"supportsHitConditionalBreakpoints":true}}
From client: launch({"debugServer":4712,"name":"Debug iOS","program":"/Users/kotikov.vladimir/sandbox/foo/.vscode/launchReactNative.js","type":"reactnative","request":"launch","platform":"ios","targ
@vladimir-kotikov
vladimir-kotikov / Nightly proposal.md
Created May 10, 2016 11:56
Cordova nightlys proposal

Nightly builds proposal

Notes from previous email conversations

Sergey S:

  • make a prototype,
    • pin master platform versions (publish platforms with nightly tags as well, make the CLI use them),
    • add warnings for nightly and dev builds with commit hash versions,
    • add a proposal to cordova-discuss
@vladimir-kotikov
vladimir-kotikov / gist:eb8948744ae81ab7826b
Created February 18, 2016 07:30
How to fake module path
var lodash = require('lodash') // prime cache
require.cache[require.resolve('underscore')] = require.cache[require.resolve('lodash')]
require('assert').equal(require('underscore'), require('lodash'))
function git_prompt_filter_new()
local start_filter = os.clock()
-- Colors for git status
local colors = {
clean = "\x1b[1;37;40m",
dirty = "\x1b[31;1m",
}
@vladimir-kotikov
vladimir-kotikov / Cordova_testing_improvements.md
Last active December 7, 2015 12:37
Cordova testing improvements

Cordova testing strategy

There are a few areas, we're testing in Cordova:

  1. Unit tests
  2. Integration tests
  3. e2e tests.

and there are four main components which quality we want to be confident in:

@vladimir-kotikov
vladimir-kotikov / ProjectInfo.js
Last active August 29, 2015 14:23
The structure of ProjectInfo class for PlatformApi
/* jshint node:true, unused:false */
var path = require('path');
var BuildConfig = require('cordova-common').BuildConfig;
var ConfigParser = require('cordova-common').ConfigParser;
/**
* Encapsulates and stores project information.
*
* @class
@vladimir-kotikov
vladimir-kotikov / ProjectApi.md
Created June 16, 2015 15:38
ProjectApi reference

CordovaProject(appName, appId)

Class, that acts as abstract on top of Cordova project. Encapsulates the basic properties, that represents project configuration and methods for managing the project. This class shouldn't be instantiated directly. Instead user is intended to use 'getProjectAt' and 'createProject' class methods.

Kind: global function