Skip to content

Instantly share code, notes, and snippets.

View MateusAquino's full-sized avatar
🐰
Typing all the way to heaven

Mateus MateusAquino

🐰
Typing all the way to heaven
View GitHub Profile

Octocat Switch

Este script é utilizado para fazer o switch com fetch/pull de branches e PRs :thumbsup-parrot:

Requisitos

Esse script requer 🎀 gum e :octocat: gh!

Script

Você deve colocar a função abaixo no seu .zshrc para usar o switch:

function switch() {

Elixir Logo DB (script)

Esse é um script para rodar alguns comandos do postgres + ecto :thumbsup-parrot:

Requisitos

Esse script requer 🎀 gum!

Scripts

Você deve colocar as funções abaixo no seu .zshrc ou em um arquivo separado para usar o db:

function ecto() {

Elixir Logo Mixes & Coauthors

Esse é um alias para rodar o formatter/credo/testes no elixir e realizar o commit automaticamente (com coautores) :thumbsup-parrot:

Requisitos

Esse script requer 🎀 gum!

Funções

Você deve colocar as funções abaixo no seu .zshrc para usar o mixes:

coauthors_path="$HOME/.config/coauthors"

:peepo-love: Emj Cheat Sheet (Slack → Github)

Esse é um cheat sheet com alguns emojis da Finbits para utilizar em PRs, issues e comentários: use com moderação :thumbsup-parrot:

:term: Bash

Alternativamente, você pode colocar a função abaixo no seu .zshrc para facilitar a busca e/ou copiar o <img> direto:

function emj() {
  raw="${1//:/}"
  companyid="T02BNKN7B1B" # substituir pelo id da empresa/grupo do slack
  emoji="${raw:-rainbowdance}" # substituir rainbowdance por um emoji default
@MateusAquino
MateusAquino / shazam.js
Created December 3, 2020 12:26
This is a working example of how to use shazam's api + generate raw data with fluent-ffmpeg.
/* How to use:
(async () => {
const Shazam = require('this_file.js')
const api = Shazam('your_token')
try {
const song_path = 'example.mp4' // input
const rawb64_path = 'example.raw' // output
const songName = await api.identify(song_path, rawb64_path)
console.log(songName)
} catch (err) {
@MateusAquino
MateusAquino / AmongUsPacketsMatcher.cs
Last active October 4, 2020 16:33
Código para bot de Discord (automute/link) [apenas moderadores]: pacotes udp entre cliente/servidor mais importantes foram mapeados com Regex. (Among Us v.2020.9.9s)
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using SharpPcap;
using System.Linq;
namespace Example5
{