Using git behind proxy

Source

If the URL is of the pattern 

git ://

Then

I found the instructions on some page.

I've pasted them here for easier access.

Basically the steps are:

1 - sudo apt-get install socket

2 - in your home directory, put a shell script called "proxy-cmd.sh"

containing (replace YOUR_PROXY and YOUR_PROXY_PORT with your own proxy

parameters):

#! /bin/bash

(echo "CONNECT $1:$2 HTTP/1.0"; echo; cat ) | socket YOUR_PROXY

YOUR_PROXY_PORT | (read a; read a; cat )

3 - chmod +x proxy-cmd.sh

4 - export GIT_PROXY_COMMAND=<PATH TO YOUR SCRIPT>/proxy-cmd.sh

Note: you can export GIT_PROXY_COMMAND in your ~/.bashrc file to make

this permanent 

If the url is of the pattern

http

then

git config --global http.proxy http://myproxy.domain.com:1234

git add all deleted for commit

Eclipse sbt java.lang.NoSuchMethodError: scalaz.Scalaz$.ToValidationV

Hi,
You will get the below error if we dont keep plugins.sbt in correct place.
Documenting for helping others not to waste time.
Eclipse 4.4
java.lang.NoSuchMethodError: scalaz.Scalaz$.ToValidationV(Ljava/lang/Object;)Lscalaz/syntax/ValidationV;  
Added the required plugin settings in below location should fix the error
/.sbt/0.13/plugins/plugins.sbt
full log is below.
[info] About to create Eclipse project files for your project(s).  java.lang.NoSuchMethodError: scalaz.Scalaz$.ToValidationV(Ljava/lang/Object;)Lscalaz/syntax/ValidationV;          at com.typesafe.sbteclipse.core.package$.setting(package.scala:66)          at com.typesafe.sbteclipse.core.Eclipse$.skipParents(Eclipse.scala:495)          at com.typesafe.sbteclipse.core.Eclipse$$anonfun$action$1.apply$mcZ$sp(Eclipse.scala:103)          at com.typesafe.sbteclipse.core.Eclipse$$anonfun$action$1.apply(Eclipse.scala:103)          at com.typesafe.sbteclipse.core.Eclipse$$anonfun$action$1.apply(Eclipse.scala:103)          at scala.Option.getOrElse(Option.scala:120)          at com.typesafe.sbteclipse.core.Eclipse$.action(Eclipse.scala:103)          at com.typesafe.sbteclipse.core.Eclipse$$anonfun$eclipseCommand$2.apply(Eclipse.scala:82)          at com.typesafe.sbteclipse.core.Eclipse$$anonfun$eclipseCommand$2.apply(Eclipse.scala:82)          at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:60)          at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:60)          at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:62)          at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:62)          at sbt.Command$.process(Command.scala:95)          at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:87)          at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:87)          at sbt.State$$anon$1.process(State.scala:176)          at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:87)          at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:87)          at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)          at sbt.MainLoop$.next(MainLoop.scala:87)          at sbt.MainLoop$.run(MainLoop.scala:80)          at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:69)          at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:66)          at sbt.Using.apply(Using.scala:25)          at sbt.MainLoop$.runWithNewLog(MainLoop.scala:66)          at sbt.MainLoop$.runAndClearLast(MainLoop.scala:49)          at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:33)          at sbt.MainLoop$.runLogged(MainLoop.scala:25)          at sbt.xMain.run(Main.scala:26)          at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)          at xsbt.boot.Launch$.withContextLoader(Launch.scala:129)          at xsbt.boot.Launch$.run(Launch.scala:109)          at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:36)          at xsbt.boot.Launch$.launch(Launch.scala:117)          at xsbt.boot.Launch$.apply(Launch.scala:19)          at xsbt.boot.Boot$.runImpl(Boot.scala:44)          at xsbt.boot.Boot$.main(Boot.scala:20)          at xsbt.boot.Boot.main(Boot.scala)  [error] java.lang.NoSuchMethodError: scalaz.Scalaz$.ToValidationV(Ljava/lang/Object;)Lscalaz/syntax/ValidationV;  


Using sbt behind the firewall proxy using internal artifactory

Following the instructions on sbt install


Use the additional parameters to override the repo location and provide the path

1) Download the sbt jar to some location
2) Create a file named sbt with following content


SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M -Dsbt.override.build.repos=true -Dsbt.ivy.home=my_ivy2/ -Dsbt.repository.config=code/repositories-config -Dfile.encoding=UTF8"
java $SBT_OPTS -jar `dirname $0`/sbt-launch.jar "$@"

You can also see i have overridden the ivy home for sbt
Changed the repositories to internal artifactory 

Building better organizations with open source engineering tools

Some of the tools which can be used for better Engineering
Source code version Control


Git lab


Open source Github clone

Bitbucket ( If allowed to store code on Internet )


Code reviews


Phabricator
http://phabricator.org/

To be honest Phabricator offers lots of things , and you can depend on this single tool for most of the needs. See the comparison below.


Comparison


Build Servers


Go server


Jenkins


Artifact Repository


Artifactory

Configuration Management Tools for Automation

Puppet
http://puppetlabs.com/

Internal Answer Question portal


http://www.osqa.net/