Skip to content

Instantly share code, notes, and snippets.

View ayush-usf's full-sized avatar

Ayush Arora ayush-usf

  • San Francisco
View GitHub Profile
@ayush-usf
ayush-usf / compile-nfs-ganesha-ubuntu-16.04
Created June 24, 2020 02:00 — forked from cy-lee/compile-nfs-ganesha-ubuntu-16.04
Compile nfs-ganesha under Ubuntu-16.04
# Refer: https://www.techsutram.com/2017/07/practical-way-to-build-nfs-ganesh-from.html
git clone https://github.com/nfs-ganesha/nfs-ganesha.git
cd nfs-ganesha
git submodule update --init --recursive
mkdir build
cd build
sudo apt-get install –y g++ libboost-dev cmake make git doxygen
sudo apt-get install –y build-essential libglu1-mesa-dev libc6-dev
sudo apt-get install –y libkrb5-dev libgss-dev liburcu-dev bison flex
@ayush-usf
ayush-usf / mapsplitter.java
Last active October 19, 2020 07:27 — forked from dtulig/mapsplitter.java
Example of using Guava's MapSplitter
final String stringToSplit = "dave:123, john:314,, matt:989";
final Map<String, String> splitKeyValues = Splitter.on(",")
.omitEmptyStrings()
.trimResults()
.withKeyValueSeparator(":")
.split(stringToSplit);
// Map Contents: {dave=123, john=314, matt=989}