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
#! /bin/bash | |
# Author: Gustavo Moraes <[email protected]> | |
# | |
# This file is subject to the terms and conditions of the GNU General Public | |
# License. See the file COPYING in the main directory of this archive | |
# for more details. | |
# Script para obter o número da versão do AVD Launcher. | |
# |
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 rebase -i 1ec6d533d8555bbe72cec3881aba8a4433044a2a # SHA hash do commit "HEAD temporário" (commit anterior ao desejado para modificar!) | |
git log --format=fuller #Ver todos os commits com todas as informações | |
# "Commit amending" com mesmo autor (dentro de um "edit" do Rebase) | |
GIT_COMMITTER_DATE="Mon Apr 20 18:54:39 2015 -0300" git commit --date="Mon Apr 20 18:54:39 2015 -0300" --amend | |
# "Commit amending" com autor diferente (dentro de um "edit" do Rebase) | |
GIT_COMMITTER_NAME="Username desejado como exibido no git log" GIT_COMMITTER_EMAIL="[email protected]" GIT_COMMITTER_DATE="Fri May 22 00:52:37 2015 -0300" git commit --author="Username desejado como exibido no git log <[email protected]>" --date="Fri May 22 00:52:37 2015 -0300" --amend |
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
#language: pt | |
# Template de especificação executável em linguagem Gherkin/Cucumber | |
# Author: Gustavo Moraes <[email protected]> | |
# | |
# Artigos sobre a linguagem Gherkin/Cucumber: | |
# http://elemarjr.net/2012/04/12/bdd-na-prtica-parte-3-gherkin | |
# http://pt.slideshare.net/edumendes/bdd-com-cucumber-14910137 | |
# | |
# A ferramenta Cucumber é originalmente feita para Ruby, mas pode usada |
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
; AutoHotKey Beginner Tutorial: https://www.autohotkey.com/docs/Tutorial.htm | |
; AutoHotKey Key list: https://autohotkey.com/docs/KeyList.htm | |
; AutoHotKey Hotkeys: https://www.autohotkey.com/docs/Hotkeys.htm | |
#F9::MEDIA_PLAY_PAUSE | |
#F10::MEDIA_NEXT | |
#F6::VOLUME_MUTE | |
#F7::VOLUME_DOWN | |
#F8::VOLUME_UP | |
Return |
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
# Built application files | |
*.apk | |
*.ap_ | |
# Files for the Dalvik VM | |
*.dex | |
# Java class files | |
*.class |
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
<activity | |
android:configChanges="keyboardHidden|orientation|screenSize" | |
android:name=".testActivity" | |
android:label="@string/app_name"> | |
</activity> |
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
; AutoHotKey Beginner Tutorial: https://www.autohotkey.com/docs/Tutorial.htm | |
; AutoHotKey Key list: https://autohotkey.com/docs/KeyList.htm | |
; AutoHotKey Hotkeys: https://www.autohotkey.com/docs/Hotkeys.htm | |
notificationMessage := "Rotação de tela por atalho de teclado bloqueada." | |
notificationIcon := 16 + 3 ; No notification sound (16) + Error icon (3) | |
^!Down:: | |
^!Left:: | |
^!Right:: |
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
#! /bin/bash | |
APP_NAME="Restore GitLab Backup Files by gustavosotnas" | |
# Author: Gustavo Moraes <[email protected]> | |
# | |
# Solution based in GitLab's official tutorial to restore backups: | |
# http://doc.gitlab.com/ce/raketasks/backup_restore.html#omnibus-installations | |
# (This script applies to GitLab installations from official .deb package!) | |
# | |
# To backup a GitLab repository server, simply run this command: |
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
private static String readFile(String filename) throws FileNotFoundException { | |
return new Scanner(new File(filename)).useDelimiter("\\Z").next(); | |
} |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
if sys.version_info[0] < 3: | |
print ("Está usando Python 2 né? Atualiza logo!") | |
else: | |
print ("Está usando Python 3, bom...") |
OlderNewer