$ jruby -S gem install --http-proxy http://proxy.server:8080 <gem_name>
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
Manifest mf = new Manifest(); | |
mf.read(Thread.currentThread().getContextClassLoader().getResourceAsStream("META-INF/MANIFEST.MF")); | |
Attributes atts = mf.getMainAttributes(); | |
System.out.println("Version: " + atts.getValue("Implementation-Version")); | |
System.out.println("Build: " + atts.getValue("Implementation-Build")); |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.gordondickens.sample</groupId> | |
<artifactId>sample-parent</artifactId> | |
<version>1.0.0</version> | |
<packaging>pom</packaging> |
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
cmd /C jruby "$(FULL_CURRENT_PATH)" & pause | |
cmd /K jruby "$(FULL_CURRENT_PATH)" |
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
oivasiv@IF006 /d/MyProjects/GitHub/gitflow_test2 | |
$ touch README.md | |
oivasiv@IF006 /d/MyProjects/GitHub/gitflow_test2 | |
$ git init | |
Initialized empty Git repository in D:/MyProjects/GitHub/gitflow_test2/.git/ | |
oivasiv@IF006 /d/MyProjects/GitHub/gitflow_test2 (master) | |
$ git add README.md |
- Add to $PATH variable folder with git related scripts
$ export PATH=$PATH:/d/MyProjects/GitHub/scripts
- To have command like:
$ git <mycommand>
you should create script with the next naming convention
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
$ echo -e "\033[31mCompiling foo.c\033[0m \033[33mCompiling foo.c\033[0m" |
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
$ git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080 |
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
$ git status --untracked-files=all -s | grep "^??" | cut -c 4- | while read line; do dos2unix -D "${line}"; done |