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 / agnoster.zsh-theme
Created Jul 30, 2020
Oh My Zsh - Agnoster Theme
View agnoster.zsh-theme
# vim:ft=zsh ts=2 sw=2 sts=2
# agnoster's Theme -
# A Powerline-inspired theme for ZSH
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](
# Make sure you have a recent version: the code points that Powerline
View .vimrc
syntax on
set nocompatible " be iMproved, required
filetype off " required
set termguicolors
if has("mouse")
set mouse=a
the-glima /
Last active Jul 13, 2020
[Slack] Set Slack status automatically for daily scheduling #website

Set Slack status on an automatic daily schedule

If you ever thought about changing the Slack's status automatically, like daily basis, for instance setting "lunchtime" you can follow this link: This example set the status to "🍲  Lunching" everyday day at 1PM to 2PM.


  1. Create a Zapier account
  2. Choose App & Event: click on "Continue"
  3. Customize Day: set the time of the Day that you want this to trigger
  4. Hit on "Continue" and the next steps
the-glima / angular-logo.svg
Last active Jul 9, 2020
[Logos] Tech/Language Logos
View angular-logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
the-glima /
Last active Jun 18, 2020
[GitHub] Triggering a GitHub Action Arbitrarily #website
#!/usr/bin/env bash
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-glima / intl-datetime-format.js
Created May 29, 2020
Formatting date with Intl.DateTimeFormat #website
View intl-datetime-format.js
// You can use Intl.DateTimeFormat (Vanilla JS) to format a date
const date =
new Intl.DateTimeFormat('en-US').format(date)
// 5/29/2020
new Intl.DateTimeFormat('en-GB').format(date)
// 29/05/2020
new Intl.DateTimeFormat('en-GB', { dateStyle: 'full' }).format(date)
the-glima / dark-mode.css
Created May 29, 2020
Easiest way to add Dark Mode #website
View dark-mode.css
You can use prefers-color-scheme media query to detect user's color theme.
The easiest and best way to add Dark Mode to your project.
:root {
--color-text: black;
--color-background: white;
@media screen and (prefers-color-scheme: dark) {
the-glima /
Last active May 28, 2020
[Git] Clean Branches Alias #website
# If you want to delete all the local branches except the master branch
alias gbCleanAll="git branch | grep -v '^*' | xargs git branch -D"
# If you want to be a little less adventurous and delete only branches that have been merged to master
alias gbClean="git branch | grep -v '^*' | xargs git branch -d"
the-glima / .hyper.js
Last active May 27, 2020
Terminal: My Hyper Configuration #website
View .hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See for all currently supported options.
module.exports = {
config: {
// hyper-opacity
opacity: 0.95,
// choose either `'stable'` for receiving highly polished,
the-glima /
Last active May 28, 2020 — forked from rponte/
[Git] Getting the latest tag #website
# 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
You can’t perform that action at this time.