Skip to content

Instantly share code, notes, and snippets.

View shuhrat's full-sized avatar
🏠
Working from home

Шухрат Шадмонов shuhrat

🏠
Working from home
View GitHub Profile
@shuhrat
shuhrat / README.md
Created February 17, 2023 12:40 — forked from andreasonny83/README.md
Readme template

npm version code style: prettier

Project Name

Write a project description

Prerequisites

This project requires NodeJS (version 8 or later) and NPM.

Keybase proof

I hereby claim:

  • I am shuhrat on github.
  • I am zumra6a (https://keybase.io/zumra6a) on keybase.
  • I have a public key whose fingerprint is 41DF 7CCF A0C0 0E23 B8A2 CEF4 D2C8 7835 C145 AC55

To claim this, I am signing this object:

The primary goal is to swap command and option.
The secondary goal is to remap Caps Lock to Control.
The tertiary goal is to share modifier keys across keyboards, so you can emacs with two keyboards.
The following instructions are good as of 2016-08-24, for OS X El Capitan 10.11.6.
Mac OS Sierra broke Seil support; Seil instructs us to consider Karabiner Elements.
But when Karabiner Elements swaps command and option, it does it for all keyboards;
meaning the native keyboard also gets its command and option swapped, which is bad!
@shuhrat
shuhrat / a.md
Last active December 25, 2018 12:05

Объясните, для чего предназначена и каким образом работает следующая функция:

function bind(method, context) {
    var args = Array.prototype.slice.call(arguments, 2);
    return function() {
        var a = args.concat(Array.prototype.slice.call(arguments, 0));
        return method.apply(context, a);
    }
}
@shuhrat
shuhrat / clone.sh
Created May 16, 2018 13:48 — forked from larsxschneider/clone.sh
Clone a repository with Git LFS files and leverage a local cache. #
#!/usr/bin/env bash
#
# Clone a repository with Git LFS files and leverage a local cache.
#
# Usage:
#
# Clone and checkout any branch:
# $ clone.sh <repo-url> <cache-dir> <working-copy-dir> <branch-name>
#
# Clone and checkout a PR head:
@shuhrat
shuhrat / a.json
Last active April 17, 2018 17:00
[
{
"filter": {
"ref_glob": "refs/heads/release/v+([0-9]).+([0-9]).0",
"deleted": false
},
},
{
"filter": {
"ref_glob": "refs/heads/release/v*",
[
{
"filter": {
"ref_glob": "refs/heads/release/v+([0-9]).+([0-9]).0"
},
"reject": {
"deleted": true
}
},
{
with self.profiler.actions.register_artifacts('Registering Sandbox resources'):
if not self.Parameters.reuse_artifacts_cache:
return self.create_artifact_resources(), ArtifactsCacheStatus.CACHE_IGNORED
cached_resources = self.get_cached_artifact_resources()
if cached_resources:
return cached_resources, ArtifactsCacheStatus.CACHE_REUSED
diff --git a/lib/utils.js b/lib/utils.js
index c90dd6b0..0c5ae37f 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -6,7 +6,7 @@
const assert = require('assert');
const urlParse = require('url').parse;
const path = require('path');
-const exec = require('child_process').exec;
+const processSpawn = require('child_process').spawn;
module.exports = {
"chrome-webstore-item": {
"Вы сможете вернуть все как было в любое время.": "Вы сможете вернуть все как было в любое время.",
"Нажмите &laquo;{buttonName}&raquo;, чтобы продолжить": "Нажмите &laquo;<i18n:param>buttonName</i18n:param>&raquo;, чтобы продолжить",
"Нажмите кнопку \"{buttonName}\"": "Нажмите кнопку «<i18n:param>buttonName</i18n:param>»",
"Устанавливая расширение, вы принимаете условия {legal}": "Устанавливая расширение, вы принимаете условия <i18n:param>legal</i18n:param>",
"Устанавливая расширение, вы принимаете условия лицензионного соглашения": "Устанавливая расширение, вы принимаете условия лицензионного соглашения",
"Чтобы добавить визуальные закладки.": "Чтобы добавить визуальные закладки.",
"Чтобы легко переключаться между поисковиками.": "Чтобы легко переключаться между поисковиками.",
"Чтобы сделать Яндекс поиском по умолчанию и стартовой страницей.": "Чтобы сделать Яндекс поиском по умолчанию и стартов