This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"google.golang.org/grpc" | |
"google.golang.org/grpc/codes" | |
"google.golang.org/grpc/reflection" | |
"google.golang.org/grpc/status" | |
pb "grpc-go-course/calculator" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
option java_package = "pl.cafebabe.calculator"; | |
option java_multiple_files = true; | |
option go_package = "cafebabe.pl/calculator;calculator"; | |
message AddRequest { | |
int64 a = 1; | |
int64 b = 2; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04 | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer | |
sudo apt-get install oracle-java9-installer | |
sudo update-alternatives --config java | |
sudo update-alternatives --config javac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/ | |
wget --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/jdk-8u162-linux-x64.tar.gz | |
tar -xzf jdk-8u162-linux-x64.tar.gz | |
sudo mv jdk1.8.0_162 /opt | |
sudo alternatives --install /usr/bin/java java /opt/jdk1.8.0_162/bin/java 2 | |
sudo alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_162/bin/javac 2 | |
sudo alternatives --config java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.omgubuntu.co.uk/2016/08/use-google-drive-ubuntu-16-04-linux-desktops | |
sudo apt install gnome-control-center gnome-online-accounts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install gdebi | |
sudo gdebi google-chrome-stable_current_amd64.deb |