Skip to content

Instantly share code, notes, and snippets.

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

Kirill Kirill255

🏠
Working from home
View GitHub Profile
  • Скачать курс, все видео с 1 по n, где n — номер последнего урока, например в этом курсе 83 видео, то [1-83]

curl -LO https://vs1.coursehunters.net/webformyself-tbot/lesson[1-n].mp4

# https://gist.github.com/wzup/36b5159d8c580b827384
# https://gist.github.com/VincentBrunet/e5cba6f5023561c3032d8942797ce2db
# https://superuser.com/questions/602872/how-do-i-modify-my-git-bash-profile-in-windows
# https://stackoverflow.com/questions/415403/whats-the-difference-between-bashrc-bash-profile-and-environment
# create a file C:\Users\[user]\.bashrc
# add this content
# add your onw aliases or changes these ones as you like
# to make a dot (.bashrs) file in windows, create a file ".bashrs." (without extention) and save. windows will save it as ".bashrc"
# restart terminal or sometimes you need to restart windows

Install and use

  1. Download zip archive https://www.mongodb.org/dl/win32/i386
  2. Unpacks an archive in "c:/mongo" directory
  3. Create "c:/mongo/db" directory or default directory c:/data/db
  4. For run mongod use ./mongod.exe --dbpath "c:/mongo/db" or just mongod --dbpath "c:/mongo/db"
  5. For run mongo use ./mongo.exe or just mongo

Known errors

@Kirill255
Kirill255 / Export_VSCode_Extensions.md
Last active March 18, 2019 09:24 — forked from elijahmanor/README.md
Export @code Extensions to a Markdown List

You can run either of the following snippets in your terminal to generate a markdown list of your VS Code extensions.

code --list-extensions | awk '{ print "* [" $1 "](https://marketplace.visualstudio.com/items\?itemName\=" $1 ")" }'

npx https://gist.github.com/elijahmanor/7f9762a4c2296839ad33e33513e88043

NOTE: You can append | pbcopy to either of the above commands to pipe the output to your Mac's copy/paste buffer.

vscode_settings

"import/first": [ "warn", "DISABLE-absolute-first" ],
"vue/html-self-closing": "off",
'vue/max-attributes-per-line': [2,
{
'singleline': 1,
'multiline': {
'max': 1,
'allowFirstLine': true
}
}
@Kirill255
Kirill255 / test.html
Created March 15, 2018 09:12 — forked from alexelev/test.html
quiz generator
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test generator</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script async>
const data = '[{"answers":[{"correct":true,"title":"Модульный тест"},{"title":"UI-тест"},{"title":"Системный тест"},{"title":"Нагрузочный тест"}],"question_id":"123","title":"Каким типом тестов покрывается бизнес-логика?"},{"answers":[{"title":"100%"},{"correct":true,"title":"Зависит от требований к надежности"},{"title":"80%"},{"title":"50%"}],"question_id":"124","title":"Какое покрытие кода считается нормальным?"}]';
@Kirill255
Kirill255 / js-task-1.md
Created March 14, 2018 20:35 — forked from codedokode/js-task-1.md
Задания на яваскрипт (простые)
@Kirill255
Kirill255 / node-download.js
Created January 20, 2018 00:50 — forked from andrewmartin/node-download.js
Download files with node.js
var fs = require('fs'),
stub = require('./stub'),
_ = require('underscore'),
request = require('request');
// config for local file
var basePath = "images/",
data = stub.data,
urlRoot = "http://cdn.catalogs.com/";