Skip to content

Instantly share code, notes, and snippets.

View debraj-manna's full-sized avatar

Debraj Manna debraj-manna

  • Spotnana
  • Bengaluru
View GitHub Profile
## Download Gradle
To download visit Gradle Releases Page. Download the complete distribution which includes binaries, sources and offline documentation. For example you can download the latest release of Gradle, as of this update the version is gradle-4.0.2-all.zip.
## Upacking Gradle and Configure Environment Variables
1. Open Terminal.app.
2. Create a new directory `sudo mkdir /usr/local/gradle`.
3. Extract the downloaded Gradle distribution archive by executing `sudo unzip gradle-4.0.2-all.zip -d /usr/local/gradle`.
4. Edit .bash_profile in your home directory to add GRADLE_HOME variable with the following line `export GRADLE_HOME=/usr/local/gradle/gradle-4.0.2`
5. Also update the PATH variable to include `$GRADLE_HOME/bin`. If you don’t already have the PATH variable add the following line `export PATH=$GRADLE_HOME/bin:$PATH`
6. Run `source ~/.bash_profile` to executes the update version of .bash_profile. Or you can open a new Terminal.app to make this changes active.
@debraj-manna
debraj-manna / thrift0_9_3
Last active August 1, 2019 10:31
Installing thrift 0.9.3 on Ubuntu 14
$ sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
$ cd /tmp
$ curl http://archive.apache.org/dist/thrift/0.9.3/thrift-0.9.3.tar.gz | tar zx
$ cd thrift-0.9.3/
$ ./configure
$ make
$ sudo make install
$ thrift --help
[INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @ delete ---
[INFO] com.vnera:delete:jar:0.001-SNAPSHOT
[INFO] +- com.vnera:programs:jar:0.001-SNAPSHOT:compile
[INFO] | +- commons-io:commons-io:jar:2.5:compile
[INFO] | +- com.googlecode.javaewah:JavaEWAH:jar:1.1.3:compile
[INFO] | +- com.vnera:storage-common:jar:0.001-SNAPSHOT:compile
[INFO] | | +- com.vnera:data-model:jar:0.001-SNAPSHOT:compile
[INFO] | | +- net.spy:spymemcached:jar:2.11.4:compile
[INFO] | | +- org.xerial.snappy:snappy-java:jar:1.1.2.6:compile
[INFO] | | \- com.vnera:config-cache-interfaces:jar:0.001-SNAPSHOT:compile
@debraj-manna
debraj-manna / gist:b48d6f51ee732b9fc86d2bd5a7e9319a
Created January 11, 2023 15:43
Delete local git branches whose upstream is gone
git branch -v | grep "\[gone\]" | awk '{print $1}' | xargs git branch -D