##Заметки разработчика
$ ssh-keyscan -t rsa server_ip
очистить содержимое таблицы и сбросить id
package main | |
import ( | |
"flag" | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"strings" | |
) |
#!/bin/bash | |
# tested with OpenSSL 1.0.1e-fips on Centos 6 | |
# Note hardcoded Keycloak URL and credentials. | |
# Keycloak public key is in ATS-ci.key.pem with -----BEGIN PUBLIC KEY----- (etc) | |
assert() { if [[ $1 != $2 ]]; then echo "assert" $3; exit; fi } | |
url=http://192.168.10.221:8088/auth/realms/ATS-ci/protocol/openid-connect/token | |
resp=$(curl -X POST $url \ |
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
Disclaimer: The instructions are the collective efforts from a few places online. | |
Nothing here is my original. But I want to put them together in one place to save people from spending the same time as I did. | |
First off, bundle. | |
================== | |
1. cd to the project directory | |
2. Start the react-native packager if not started | |
3. Download the bundle to the asset folder: | |
curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle" |
brew tap homebrew/versions | |
brew install v8-315 | |
gem install libv8 -v '3.16.14.13' -- --with-system-v8 | |
gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315 | |
bundle install |
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
Go Ethereum (geth
) is a software for Ethereum. geth doesn't provide secure networking and it should do this, as this kind of built-in functionality would increase complexity and add attack surface to critical blockchain node software. Fortunately, in UNIX world, you can easily combine different tools to work together. The solution to this particular problem is to use VPN/tunneling software for secure connections. The tunnel will expose the server local connections to your own computer. The most popular tool for this (available in every OS by default, nowadays including Windows) is [Secure Shell (SSH)][1].
Note this question only addresses issues how to
[If you are not familiar with SSH please first read SSH tutorial how to safely do passwordless logins using SSH keys][2].
Start a node on server. When the node starts it binds its RPC port to localhost
(127.0.0.1
in IPv4, ::1
in IPv6). This is so-called loopback connection that you can only access from the computer itself and not from external netwo
# AWS specific install of Docker | |
sudo yum update -y | |
sudo yum install -y docker | |
sudo service docker start | |
sudo usermod -a -G docker ec2-user | |
# exit the SSH session, login again | |
# Docker | |
docker run -d --hostname my-rabbit --name some-rabbit -p 4369:4369 -p 5671:5671 -p 5672:5672 -p 15672:15672 rabbitmq |