Bash script to:
- Iterate all commits made within a Git repository.
- List every object at each commit.
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| [ -z "$PS1" ] && return | |
| # don't put duplicate lines or lines starting with space in the history. | |
| # See bash(1) for more options | |
| HISTCONTROL=ignoreboth |
| import javafx.beans.value.ChangeListener; | |
| import javafx.beans.value.ObservableValue; | |
| import javafx.event.ActionEvent; | |
| import javafx.event.EventHandler; | |
| import javafx.geometry.Side; | |
| import javafx.scene.control.ContextMenu; | |
| import javafx.scene.control.CustomMenuItem; | |
| import javafx.scene.control.Label; | |
| import javafx.scene.control.TextField; |
| # This docker-compose file intent to create a multi-container application | |
| # that runs a Jenkins container connected via TLS to a Docker-in-Docker (dind) container as Docker daemon. | |
| # | |
| # Advice about this approach can be found at: | |
| # http://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/ | |
| # | |
| # As well discussion about another alternatives on this setup can be found at: | |
| # https://forums.docker.com/t/using-docker-in-a-dockerized-jenkins-container/322/11 | |
| # | |
| # Quick reference about Docker-in-Docker can be fount at: |
| Imagem Docker para rodar um firefox com o warsaw | |
| Créditos: https://gist.github.com/lichti/6654ee35db133949101bdf61c4e2412c | |
| More Info: | |
| https://hub.docker.com/r/lichti/warsaw-browser/ | |
| https://github.com/lichti/containers4docker/tree/master/warsaw-browser | |
| Acrescente essa função no arquivo .bashrc | |
| function warsaw-browser { | |
| xhost + | |
| docker run -it --rm \ |
Undoing the last (local) merge (and thus rewriting the history):
git reset --hard HEAD~
Reverting last commit (commits the commit of mainline before the last commit again)
git revert -m 1 HEAD
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
In Terminal
mkdir ~/.bashCopy the raw git-prompt.sh file from git contrib in to the ~/.bash directory: https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh
Inside ~/.bashrc or ~/.bash_profile (choose the file where you normally put any bash customizations/setup), add the lines:
| <plugin> | |
| <groupId>org.apache.tomee.maven</groupId> | |
| <artifactId>tomee-embedded-maven-plugin</artifactId> | |
| <version>7.0.1</version> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.apache.tomee</groupId> | |
| <artifactId>openejb-core</artifactId> | |
| <version>7.0.1</version> | |
| <exclusions> |
| <plugin> | |
| <groupId>org.apache.tomee.maven</groupId> | |
| <artifactId>tomee-embedded-maven-plugin</artifactId> | |
| <version>${tomee-embedded-maven-plugin.version}</version> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.apache.tomee</groupId> | |
| <artifactId>tomee-embedded</artifactId> | |
| <version>${tomee-embedded-maven-plugin.version}</version> | |
| <exclusions> |