Skip to content

Instantly share code, notes, and snippets.

View lucifercr07's full-sized avatar
💭
Computers are all I want to know about

Prashant Shubham lucifercr07

💭
Computers are all I want to know about
View GitHub Profile
@lucifercr07
lucifercr07 / HashCodeExample.java
Last active October 18, 2019 21:12
hashCode() and equals() method override example
package problems.DataStructuresImpl;
import java.util.Objects;
class HashCodeExample {
private String string;
private int id;
public HashCodeExample(String string, int id) {
this.string = string;
@lucifercr07
lucifercr07 / crosscompilegrpc.md
Last active October 29, 2018 13:39
Cross compiling gRPC

Cross Compile gRPC

  • To cross compile gRPC
  • Clone gRPC repo from here
  • git submodule update --init
  • make
  • cd third_party/protobuf && make install
  • cd ../..
  • make install
  • ldconfig
@lucifercr07
lucifercr07 / compiling_building_c_cpp_notes.md
Created September 21, 2018 18:47 — forked from gubatron/compiling_building_c_cpp_notes.md
Things to remember when compiling and linking C/C++ programs

Things to remember when compiling/linking C/C++ software

by Angel Leon. March 17, 2015.

Include Paths

On the compilation phase, you will usually need to specify the different include paths so that the interfaces (.h, .hpp) which define structs, classes, constans, and functions can be found.

With gcc and llvm include paths are passed with -I/path/to/includes, you can pass as many -I as you need.

In Windows, cl.exe takes include paths with the following syntax: /I"c:\path\to\includes\ you can also pass as many as you need.

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream