Skip to content

Instantly share code, notes, and snippets.

View gui25's full-sized avatar
🎯
Focusing

Guilherme gui25

🎯
Focusing
View GitHub Profile

Uso do --force-with-lease em Git

Introdução

Este documento fornece um guia sobre o comando --force-with-lease no Git, uma opção crucial para atualizações seguras em repositórios remotos, especialmente útil em operações de rebase.

Importância do --force-with-lease

O --force-with-lease é uma alternativa segura ao git push --force. Ele assegura que suas mudanças só serão aplicadas no repositório remoto se ninguém mais tiver atualizado a branch desde sua última sincronização.

@gui25
gui25 / donut_animation.js
Created March 15, 2023 20:12
Donut 3D animation script, Copy and paste the provided script into your Browser Console in any page.
(function() {
const canvas = document.createElement('canvas');
canvas.id = 'canvasDonut';
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
canvas.style.position = 'fixed';
canvas.style.zIndex = 1000;
canvas.style.top = '0';
canvas.style.left = '0';
@gui25
gui25 / page_rotation.js
Created March 15, 2023 19:40
Page Rotation Animation, just copy and past on your browser console
const styleElement = document.createElement('style');
styleElement.textContent = `
body > * {
transform-style: preserve-3d;
animation: rotate 5s linear infinite;
}
@keyframes rotate {
100% {
@gui25
gui25 / unfollow-non-followers-twitter.js
Last active April 18, 2023 01:32 — forked from jalbam/unfollow-non-followers-twitter.js
Code to stop following those ones who are not following you back on Twitter and keeping those you want or follow anyone you want, with certain filters (working in July 2019)
/*
Unfollow (stop following) those people who are not following you back on Twitter (or unfollow everyone if desired).
This will work for new Twitter web site code structure (it was changed from July 2019, causing other unfollow-scripts to stop working).
Instructions:
1) The code may need to be modified depending on the language of your Twitter web site:
* For English language web site, no modification needed.
* For Spanish language web site, remember to set the 'LANGUAGE' variable to "ES".
* For another language, remember to set the 'LANGUAGE' variable to that language and modify the 'WORDS' object to add the words in that language.