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 / sync-branch.sh
Last active May 28, 2020
[Git] Sync your current branch with another #website
View sync-branch.sh
# Add this to your .bash-aliases
function syncBranch() {
# Get your current branch
local CURRENT_BRANCH=$(git symbolic-ref --short HEAD)
local CURRENT_BRANCH="${CURRENT_BRANCH}"
# If you don't pass any argument it will use the default branch
local BASE_BRANCH="${1:-master}"
@the-glima
the-glima / .bash_aliases
Last active May 27, 2020
My bash aliases #website
View .bash_aliases
# ----------------------
# Aliases
# ----------------------
# Terminal
alias .='cd .'
alias ..='cd ..'
alias ...='cd .. && cd ..'
alias ll='ls -alF'
alias la='ls -A'
@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 / pr-check.js
Last active Apr 4, 2020
Automated checks when creating PRs
View pr-check.js
// ==UserScript==
// @name Github PR
// @namespace https://github.com/gabrihellmateus/
// @version 0.1
// @description Automate tasks for helping creating PRs
// @author Gabriel Lima (inspired by Doug Bacelar)
// @match https://github.com/gabrihellmateus/mercearia/pull/*
// ==/UserScript==
(function() {
@the-glima
the-glima / string.customIndexOf.js
Last active Apr 4, 2020
Custom String.prototype.indexOf
View string.customIndexOf.js
// String: Custom Index Of
String.prototype.customIndexOf = function(searchValue, fromIndex) {
var notfound = -1;
// Validating param: fromIndex
// fromIndex needs to be type number and needs to be an integer
if (typeof fromIndex !== 'number' || isNaN(fromIndex)) {
fromIndex = parseInt(fromIndex);
}
@the-glima
the-glima / mixins.scss
Last active May 29, 2020
A compilation of custom mixins and functions #website
View mixins.scss
// Mixins
// -=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// Breakpoint
// --------------------------------------------
// Usage:
// @include breakpoint (min-width, 300px) {
// div { color:#000; }
// }
@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="">
@the-glima
the-glima / installation-guide.md
Last active Jun 28, 2020
My installation OS guide
View installation-guide.md

Installation guide from scratch

All

Development

View cookie.js
You can’t perform that action at this time.