Simply declare each private ssh keys in a %HOME%/.ssh/config file:
Host gitlabuser1
User git
Hostname {hostname}
PreferredAuthentications publickey
IdentityFile C:/Users/{username}/.ssh/id_rsa1
Host gitlabuser2
Simply declare each private ssh keys in a %HOME%/.ssh/config file:
Host gitlabuser1
User git
Hostname {hostname}
PreferredAuthentications publickey
IdentityFile C:/Users/{username}/.ssh/id_rsa1
Host gitlabuser2
[parity] | |
mode = "last" | |
mode_timeout = 300 | |
mode_alarm = 3600 | |
auto_update = "none" | |
release_track = "current" | |
public_node = false | |
no_download = false | |
no_consensus = false | |
no_persistent_txqueue = false |
getProviderName = () => { | |
let providerName = "UNKNOWN" | |
if(window.web3.currentProvider.constructor.name === "MetamaskInpageProvider") | |
providerName = "METAMASK" | |
else if(window.web3.currentProvider.constructor.name === "EthereumProvider") | |
providerName = "MIST" | |
else if(window.web3.currentProvider.constructor.name === "o") |
// stateless/dumb component in React Typescript | |
import * as React from 'react'; | |
interface IWelcomeProps { | |
name: string, | |
} | |
const Welcome: React.SFC<IWelcomeProps> = ({ name }) => { | |
return <h1>Hello, {name}</h1>; | |
} |
On Windows download latest "Windows Installer (.msi)" from http://nodejs.org/download/ and install same directory , thats all...
After complete the installation above, the NodeJS and NPM will be upgraded to the latest one and then you can cleanup the package as normal as:
npm cache clean
npm update -g
You can always check the version with following command:
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.html$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.html [L] | |
</IfModule> |
// via https://github.com/react-community/react-navigation/issues/156#issuecomment-309263670 | |
import React, { Component } from 'react'; | |
import { | |
Alert, | |
AppRegistry, | |
Button, | |
StyleSheet, | |
Text, | |
View, |
git stash approximately becomes:
svn diff > patch_name.patch
svn revert -R .
git stash apply becomes:
patch -p0 < patch_name.patch
sudo apt-get install apache2-utils | |
# assign password to "customuser" user | |
sudo htpasswd -c /etc/nginx/.htpasswd customuser | |
# edit nginx conf usually located in /etc/nginx/sites-available/default or /etc/nginx/sites-available/customsite.com.conf | |
sudo nano /etc/nginx/sites-available/default | |
location / { | |
... |
# websocket connections need routing to the real-time-sharelatex service, | |
# running at localhost:3026 by default. | |
location /socket.io { | |
proxy_pass http://localhost:3026; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header Host $http_x_forwarded_host; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |