Skip to content

Instantly share code, notes, and snippets.

View tcelestino's full-sized avatar
⛱️
Working from home

Tiago Celestino tcelestino

⛱️
Working from home
View GitHub Profile
@tcelestino
tcelestino / essential-devs-tools.md
Last active January 23, 2024 18:28
Ferramentas essencias para desenvolvedores

Ferramentas essenciais para os desenvolvedores

Editor de Código

Visual Studio Code

@tcelestino
tcelestino / jira-custom-charts-alerts.md
Created October 6, 2023 17:25
Removendo modal de alerta ao editar um custom charts no Jira
  1. Crie um novo marcador (bookmark) no seu navegador.
  2. Copie e cole o código abaixo na URL do marcador.
javascript:(function(){const iframe=document.querySelector('iframe.custom-charts-editor');if(iframe){const iframeDocument=iframe.contentDocument||iframe.contentWindow.document;const targetElement=iframeDocument.querySelector('section.custom-charts-splashscreen');if(targetElement){targetElement.remove(); console.log('Element found:',targetElement);}else{console.log('Element not found inside the iframe.');}}else{console.log('No iframes found on the page.');}})();
  1. Dê um nome ao marcador (por exemplo, "Remove Custom Charts Alerts").
  2. Quando editar o “custom chart” clique no marcador para executar o código de remoção do alerta
@tcelestino
tcelestino / disable-checkpoint-vpn-autostart.md
Last active February 12, 2023 02:46
disable autostart Checkpoint's VPN on macOS

How can I stop Checkpoint's VPN program from automatically starting on my Mac? Then how do start it manually

To stop it from starting automatically, edit /Library/LaunchAgents/com.checkpoint.eps.gui.plist and change:

<key>RunAtLoad</key>
<true/>

To:

@tcelestino
tcelestino / fb-curl-messenger.txt
Last active July 4, 2022 01:22
curl to Facebook's APIs
curl -X POST -H "Content-Type: application/json" -d '{
"setting_type":"call_to_actions",
"thread_state":"new_thread",
"call_to_actions":[
{
"payload":"Greeting"
}
]
}' "https://graph.facebook.com/v2.9/me/thread_settings?access_token=PAGE_ACCESS_TOKEN"
@tcelestino
tcelestino / metas.md
Last active February 22, 2022 15:50
meta tags

#Meta Tags

<!---favicon-->
<link rel="icon" href="http://www.example.com/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="http://www.example.com/favicon.ico" type="image/x-icon">

<!--Apple Touch Icon for iPad and iPhone Meta Tag-->
<link rel="apple-touch-icon" href="http://www.example.com/apple-touch-icon.png">
<link rel="apple-touch-icon-precomposed" href="http://www.example.com/apple-touch-icon.png">
ts-node -O '{"module":"commonjs"}' my-script.ts
@tcelestino
tcelestino / tips.js
Created October 12, 2021 21:15
js tips
// remove false element in array
const friends = ['Jake', null, 'Cassidy', undefined, 'Joshy', undefined, 'Jordyn']
const filteredFriends = friends.filter(Boolean)
filteredFriends // ["Jake", "Cassidy", "Joshy", "Jordyn"]
@tcelestino
tcelestino / rfc.md
Created May 30, 2021 21:38 — forked from eminetto/rfc.md
Template de RFC

Título

Descrição do problema

Devemos explicar o problema claramente e identificar detalhes adicionais que a equipe precise saber. Devemos aqui descrever o contexto, o que foi feito até agora e o estado atual.

A descrição também serve como uma trilha à qual podemos voltar no futuro para entender o raciocínio que tínhamos na época e ver quais restrições e requisitos mudaram.

Possíveis abordagens

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
@tcelestino
tcelestino / reading-file.yml
Last active October 29, 2020 15:55
using .nvmrc in node-version on gh action workflow
# https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-output-parameter
# https://github.com/actions/setup-node/issues/32
- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
- name: Setup node
uses: actions/setup-node@v1
with: