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
#folder structure | |
#GITBLIT_PATH=/opt/gitblit/app/[VERSION] | |
#GITBLIT_BASE_FOLDER=/opt/gitblit/data | |
#GITBLIT_HTTP_PORT=0 | |
#GITBLIT_HTTPS_PORT=8443 | |
#GITBLIT_LOG=/opt/gitblit/app/[VERSION]/gitblit.log | |
#run as gitblit user | |
groupadd gitblit | |
useradd -g gitblit -d /opt/gitblit gitblit |
#!/bin/sh | |
mdb-schema Acadesc.mdb postgres | sed 's/Char/Varchar/g' | sed 's/Postgres_Unknown 0x0c/text/g' | psql -h localhost -U postgres -w -d acadesc > /dev/null 2>&1 | |
tables=$(echo -en $(mdb-schema Acadesc.mdb postgres | grep "CREATE TABLE" | awk '{ print $3 }' | sed -e 's/"//g');) | |
for i in $tables | |
do | |
mdb-export -I postgres Acadesc.mdb $i | psql -h localhost -U postgres -w -d acadesc > /dev/null 2>&1 | |
done |
Imagem Docker para rodar um firefox com o warsaw configurado para acesso a bancos brasileiros. | |
É uma boa opção para acessar bancos através de GNU/Linux. | |
Have a nice day. | |
More Info: | |
https://hub.docker.com/r/lichti/warsaw-browser/ | |
https://github.com/lichti/containers4docker/tree/master/warsaw-browser |
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
import javafx.beans.property.SimpleStringProperty; | |
import javafx.beans.property.StringProperty; | |
public class Person { | |
private StringProperty firstName; | |
private StringProperty lastName; | |
public Person(String firstName, String lastName) { | |
setFirstName(firstName); | |
setLastName(lastName); |
How to keep git log and less output on the screen | |
http://serebrov.github.io/html/2014-01-04-git-log-and-less-keep-output.html | |
Just for git commands: | |
git config --global --replace-all core.pager "less -iXFR" | |
For less globally (including git) - add to .bashrc / .zshrc / etc: | |
export LESS=-iXFR | |
The options we set for less are: |
# (1) use Alpine Linux for build stage | |
FROM alpine:3.11.3 as build | |
# (2) install build dependencies | |
RUN apk --no-cache add openjdk11 | |
RUN apk --no-cache add maven | |
# build JDK with less modules | |
RUN /usr/lib/jvm/default-jvm/bin/jlink \ | |
--compress=2 \ | |
--module-path /usr/lib/jvm/default-jvm/jmods \ |
In Terminal
mkdir ~/.bash
Copy 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:
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; |