- Install Git for Windows
- Install Node
- Install Python 2.7.3
- Install Microsoft Visual Studio 2015 Community
- Open the command prompt as Administrator, run the following commands, then close the command prompt (a new prompt is required before the new environment variables will be available)
- npm install -g npm
- (Upgrades to npm v3, which no longer nests dependencies indefinitely. No more "maximum path length exceeded" errors due to the 260 character path limit in Windows, or needing to delete node_modules with rimraf.)
- setx PYTHON C:\Python27\python.exe /m
- (May need to change path to your custom install directory.)
- npm install -g npm
- Open a new command prompt and run the following commands. If these install without errors, you have bypasse
### Keybase proof | |
I hereby claim: | |
* I am an-ivannikov on github. | |
* I am an_ivannikov (https://keybase.io/an_ivannikov) on keybase. | |
* I have a public key ASAGs6KULJ7Qs5z4arHqG_hN5pP-tblEz9TQR8EXio5K2wo | |
To claim this, I am signing this object: |
# How To Create A Swap File In Linux | |
> https://digitizor.com/create-swap-file-ubuntu-linux/ | |
$ cd / | |
$ sudo dd if=/dev/zero of=swapfile bs=1M count=3000 | |
To set it as 1GB, change the count value (3000 in the example above) to 1000, 1500 for 1.5GB etc. |
# Git: синхронизация локального репо с удаленным | |
> http://qaru.site/questions/39175/git-sync-local-repo-with-remote-one | |
git fetch # This updates 'remote' portion of local repo. | |
git reset --hard origin/<your-working-branch> | |
=== | |
# http://qaru.site/questions/39175/git-sync-local-repo-with-remote-one |
// You must have node and npm downloaded on your computer | |
// Download bitcoinjs library | |
npm install bitcoinjs-lib | |
// Require bitcoinjs-lib | |
var bitcoin = require("bitcoinjs-lib"); | |
// Make variable for keyPair | |
var keyPair = bitcoin.ECPair.makeRandom(); |
GitHub Pages "Normal" Setup for User & Organization Pages
Let’s say your GitHub username is “alice”. If you create a GitHub repository named alice.github.com, commit a file named index.html into the master branch, and push it to GitHub, then this file will be automatically published to http://alice.github.com/... The same works for organizations.
Read more here: http://pages.github.com/
However... the downside of this is that anyone that forks this repo won't get it as a GitHub Pages repo when they are working on it... because they have a different GitHub "username" (or "organisation name").
So the trick is to not use a master
branch as the documentation tells you... rather, use a gh-pages
branch, as you would for your other "Project Pages".
Setup One: Buy a Mac if you don't have one.
Setup Two: Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Setup Three:
{ | |
"initial_timestamp": "2018-06-08T08:08:08.888", | |
"initial_key": "EOS7EarnUhcyYqmdnPon8rm7mBCTnBoot6o7fE2WzjvEX2TdggbL3", | |
"initial_configuration": { | |
"max_block_net_usage": 1048576, | |
"target_block_net_usage_pct": 1000, | |
"max_transaction_net_usage": 524288, | |
"base_per_transaction_net_usage": 12, | |
"net_usage_leeway": 500, | |
"context_free_discount_net_usage_num": 20, |
#!/usr/bin/env bash | |
# | |
# Как установить и использовать Docker в Ubuntu 18.04 | |
# https://www.digitalocean.com/community/tutorials/docker-ubuntu-18-04-1-ru | |
# | |
# Введение | |
# Docker — это приложение, которое упрощает управление процессами приложения в контейнерах * *. Контейнеры позволяют запускать приложения в процессах с изолированием ресурсов. Они подобны виртуальным машинам, но являются при этом более портируемыми, менее требовательны к ресурсам, и больше зависят от операционной системы машины-хоста. | |
# Чтобы подробно ознакомиться с различными компонентами контейнеров Docker, рекомендуем прочитать статью Экосистема Docker: Введение в часто используемые компоненты. | |
# | |
# Данная инструкция описывает, как установить и использовать Docker Community Edition (CE) в Ubuntu 18.04. Вы научитесь устанавливать Docker, работать с контейнерами и образами и загружать образы в Docker-репозиторий. |
function stringToBoolean(str) { | |
if (str === undefined) return false; | |
switch (str.toLowerCase().trim()) { | |
case 'true': case 'yes': case '1': return true; | |
case 'false': case 'no': case '0': case null: return false; | |
default: return Boolean(str); | |
} | |
} | |
module.exports = stringToBoolean; |