Skip to content

Instantly share code, notes, and snippets.

View gustiando's full-sized avatar
🏠
Working from home

Gustavo Matias dos Santos gustiando

🏠
Working from home
View GitHub Profile
@gustiando
gustiando / test.pdf
Created October 31, 2023 12:35
Test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gustiando
gustiando / jira-api-access-check.sh
Created February 9, 2021 15:34
Jira API Client Access Check
# make sure to replace 'my-host' '[email protected]', 'my-jira-api-token' and 'issue-id' below with valid values
# Access check using curl
curl -v https://my-jira-host.atlassian.net/rest/api/latest/issue/issue-id --user [email protected]:my-jira-api-token
# Access check using node
node -e "const JiraApi = require('jira-client'); new JiraApi({protocol: 'https', host: 'my-jira-host.atlassian.net', username: '[email protected]', password: 'my-jira-api-token', apiVersion: '2', strictSSL: true}).findIssue('issue-id').then((result) => console.log(result));"
# it should result in the issue information
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
#!/usr/bin/env zsh
################################################################################################################
#
# This script will quickly set you up with Github Pages and jrnl to get you up and running journaling online for
# whatever your purpose is.
#
# How to run: `source one-step-to-journal.sh && bootstrap_github_journal_page`
#
# A few things to note:
@gustiando
gustiando / la-cucaracha.md
Created January 27, 2020 14:20
La Cucaracha

Public content for La Cucaracha

alertWhenDone = function() { if($('.summary-message.running').length === 0) alert('Build is done') }
setInterval(alertWhenDone, 20*1000)
@gustiando
gustiando / hub.sh
Last active August 27, 2018 20:58
[VTS GitHub PR Template] Generates PR Template #Template #GitHub
PR_JIRA_ISSUE=`g s | cut -d '/' -f 2`
BRANCH_DESCRIPTION=`g s | cut -d '/' -f 3`
PR_TITLE="${BRANCH_DESCRIPTION//-/ }"
g pull-request -r "viewthespace/convertibles" -l "qa" -m "[$PR_JIRA_ISSUE] $PR_TITLE This PR will... @viewthespace/convertibles" -e
@gustiando
gustiando / promise.js
Created December 30, 2015 14:39
promises vts blog post
// This is my task requested by mom every time we would go grocery shopping
function checkCookiePrice() {
var defer = $q.defer();
setTimeout(function () {
// very random. I could only believe in God back then...
var random = Math.floor(Math.random() * 3);
if (random == 0)
// YES!
@gustiando
gustiando / find_and_replace_all.sh
Last active April 19, 2018 15:27
[Find and replace strings in directory] bash shortcut to find and replace a string across all files under a specified dir #Utilities
find . -type f -name '*.js.coffee' -exec sed -i '' s#find#replace#g {} +