Make sure you have .ssh folder created:
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| # | |
| # agnoster's Theme - https://gist.github.com/3712874 | |
| # A Powerline-inspired theme for ZSH | |
| # | |
| # # README | |
| # | |
| # In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
| # Make sure you have a recent version: the code points that Powerline |
| syntax on | |
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| set termguicolors | |
| if has("mouse") | |
| set mouse=a | |
| endif |
| #!/usr/bin/env bash | |
| REPO_PATH=$1 | |
| GITHUB_TOKEN=$2 | |
| function triggerGithubAction() { | |
| echo "Running Manual GitHub Action Trigger for: ${REPO_PATH}" | |
| curl -H "Accept: application/vnd.github.everest-preview+json" \ | |
| -H "Authorization: token ${GITHUB_TOKEN}" \ |
| # 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 |
| :root { | |
| --white: #fff; | |
| --ice: #d3d7ff; | |
| --red: #fc199a; | |
| --red-shadow: 0 0 2px #a71742, 0 0 10px #d51010, 0 0 2px #ff3970; | |
| --yellow: #ffcc00; | |
| --mustard: #f8ec81; | |
| --orange: #fd971f; | |
| --cyan: #61e2ff; | |
| --green: #a6e22e; |
| # 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}" |
| # ---------------------- | |
| # Aliases | |
| # ---------------------- | |
| # Terminal | |
| alias .='cd .' | |
| alias ..='cd ..' | |
| alias ...='cd .. && cd ..' | |
| alias ll='ls -alF' | |
| alias la='ls -A' |
| // ==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() { |