Skip to content

Instantly share code, notes, and snippets.

View ZackStone's full-sized avatar
⚠️
Loading...

Zack Stone ZackStone

⚠️
Loading...
View GitHub Profile
@ZackStone
ZackStone / git-tag-delete-local-and-remote.sh
Created August 30, 2017 13:00 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@ZackStone
ZackStone / copy-and-verify-tree-dir-and-files.sh
Created July 16, 2016 21:39 — forked from anonymous/copy-and-verify-tree-dir-and-files.sh
Copia uma árvore de diretórios e seus arquivos. Conferir as diferenças entre duas árvores de diretórios.
# caminhar até o diretório para que a cópia não saia com o caminho completo
# (a cópia tera o caminho a partir do diretório atual do terminal)
cd /a/b/c/dir
# Copia os arquivos que foram modificados nos últimos X (30) dias
# (e seu caminho, a partir do diretorio atual do terminal)
find . -mtime -30 -exec cp --parents \{\} /x/y/z/novo-dir/ \;
# Verificar arquivos diferentes em uma árvore de diretórios
diff --brief -Nr dir1/ dir2/
@ZackStone
ZackStone / gist:b73b6f60aa36fc9be60d59acd7fee38b
Last active April 28, 2016 13:54 — forked from bergantine/gist:5243223
CSS grayscale filter (go from grayscale to full color on hover) #css #sethneilson
img:hover {
-webkit-filter: grayscale(0%);
-webkit-transition: .5s ease-in-out;
-moz-filter: grayscale(0%);
-moz-transition: .5s ease-in-out;
-o-filter: grayscale(0%);
-o-transition: .5s ease-in-out;
}
img {