git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| Configuration Error Secure Admin must be enabled to access the DAS remotely. | |
| Para corrigir a mensagem acima ao logar no console do Glassfish 4.0, execute os seguintes passo. | |
| ./asadmin change-admin-password | |
| O assistente vai pedir um nome de usuário coloque Admin pressione enter | |
| vai pedir uma senha atual deixe vazio pressione enter | |
| em seguida vai pedir a nova senha. |
| #!/bin/bash | |
| # Fontes: | |
| # http://glassonionblog.wordpress.com/2011/04/08/tomcat-redirecting-traffic-from-port-8080-to-80-using-iptables/ | |
| # http://stackoverflow.com/a/12454607 | |
| # Faz o redirecionamento | |
| sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080 | |
| # Para remover o redirecionamento: |
| ## | |
| # This files shows some possible implementations of the Singleton pattern | |
| # in Ruby. I'm not a huge fan of the Singleton pattern, but it's nice | |
| # in some cases. In this file I'm going to implement a simple logger. | |
| # | |
| ## | |
| # The first implementation that can come to our minds is to create a class | |
| # that holds an instance as a class variable that can be accessed through |
| #!/bin/bash | |
| # Parameters | |
| socket="/run/foo.sock" | |
| dump="/tmp/capture.pcap" | |
| # Extract repetition | |
| port=9876 | |
| source_socket="$(dirname "${socket}")/$(basename "${socket}").orig" |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| # Modify this file accordingly for your specific requirement. | |
| # http://www.thegeekstuff.com | |
| # 1. Delete all existing rules | |
| iptables -F | |
| # 2. Set default chain policies | |
| iptables -P INPUT DROP | |
| iptables -P FORWARD DROP | |
| iptables -P OUTPUT DROP |