Skip to content

Instantly share code, notes, and snippets.

🍍
Helping robots to steal all jobs

Gabriel Lima the-glima

🍍
Helping robots to steal all jobs
View GitHub Profile
@the-glima
the-glima / get-latest-tag-on-git.sh
Last active May 28, 2020 — forked from rponte/get-latest-tag-on-git.sh
[Git] Getting the latest tag #website
View get-latest-tag-on-git.sh
# The command finds the most recent tag that is reachable from a commit.
# If the tag points to the commit, then only the tag is shown.
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object
# and the abbreviated object name of the most recent commit.
git describe
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix:
git describe --abbrev=0
# other examples
@the-glima
the-glima / multiple_ssh_setting.md
Last active Jun 28, 2020 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys GitHub setup
View multiple_ssh_setting.md

Multiple SSH Keys settings for different github account

create different public key

Make sure you have .ssh folder created:

@the-glima
the-glima / prepare-commit-msg.sh
Last active Apr 4, 2020 — forked from bartoszmajsak/prepare-commit-msg.sh
Prepend branch name into commit message
View prepare-commit-msg.sh
#!/bin/bash
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
@the-glima
the-glima / metatags.html
Last active Apr 4, 2020 — forked from jaigouk/meta-tags.md
HTML Meta tags collection
View metatags.html
<!-- Basic HTML Meta Tags -->
<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
<meta name="robots" content="index,follow" />
<meta name="revised" content="Sunday, July 18th, 2010, 5:15 pm" />
<meta name="abstract" content="">
<meta name="topic" content="">
You can’t perform that action at this time.