Skip to content

Instantly share code, notes, and snippets.

View pedrualves's full-sized avatar
:octocat:
add, commit, pull, merge, push, repeat

Pedro pedrualves

:octocat:
add, commit, pull, merge, push, repeat
View GitHub Profile
@callmeloureiro
callmeloureiro / comoSerChatoNoWhatsapp.js
Last active September 23, 2024 19:29
Como fazer alguรฉm te responder no whatsapp
/*
Hoje iremos MUDAR a vida da pessoa que nรฃo te responde no whatsappp...
Que tal enviar mensagens pra ela atรฉ obter uma resposta?!
Sensacional nรฃo acha?! Mas, somos devs, correto?! Entรฃo vamos automatizar esse paranauรช!
Para utilizar:
- Abra o web.whatsapp.com;
- Selecione a conversa que vocรช quer;
- Abra o console e cole o cรณdigo que estรก no gist;
var mensagem, mensagemCodificada = '', cifra;
mensagem = prompt('Digite sua mensagem');
cifra = parseInt(prompt('Digite o valor da cifra'));
for (var i = 0, length = mensagem.length; i < length; i++) {
mensagemCodificada += String.fromCharCode(mensagem.charCodeAt(i) + cifra);
}
alert(mensagemCodificada);
@Mahito
Mahito / docker-compose.yml
Created March 30, 2017 08:38
RabbitMQ monitoring with Prometheus and Grafana
version: '2'
services:
rabbitmq:
image: rabbitmq:3.6.4-management
hostname: rabbitmq
expose:
- "9090"
ports:
- "4369:4369"
- "5671:5671"
@MethodGrab
MethodGrab / README.md
Last active February 22, 2023 14:15
Jenkins NodeJS Plugin: Missing nodejs.org installers

Jenkins NodeJS Plugin: Missing nodejs.org installers

Versions

  • Ubuntu 14.04 LTS x64
  • Java 1.7
  • Jenkins 1.639
  • NodeJS plugin 0.2.1
@wayspurrchen
wayspurrchen / git patterns.md
Last active January 18, 2023 21:38
Useful Git Techniques

History

Show file at certain commit

git show <hash>:<file>

Show history of a file

git log -p <filename>

@roachhd
roachhd / README.md
Last active July 15, 2025 20:58
EMOJI cheatsheet ๐Ÿ˜›๐Ÿ˜ณ๐Ÿ˜—๐Ÿ˜“๐Ÿ™‰๐Ÿ˜ธ๐Ÿ™ˆ๐Ÿ™Š๐Ÿ˜ฝ๐Ÿ’€๐Ÿ’ข๐Ÿ’ฅโœจ๐Ÿ’๐Ÿ‘ซ๐Ÿ‘„๐Ÿ‘ƒ๐Ÿ‘€๐Ÿ‘›๐Ÿ‘›๐Ÿ—ผ๐Ÿ”ฎ๐Ÿ”ฎ๐ŸŽ„๐ŸŽ…๐Ÿ‘ป

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. โœˆ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: ๐Ÿ˜„

@rdeavila
rdeavila / git-update-fork.sh
Last active June 19, 2025 06:59
Git: como atualizar um fork com as mudanรงas do original?
#!/bin/bash
# Adicione um novo remote; pode chamรก-lo de "upstream":
git remote add upstream https://github.com/usuario/projeto.git
# Obtenha todos os branches deste novo remote,
# como o upstream/master por exemplo:
git fetch upstream
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 18, 2025 09:50
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.

Variables