Skip to content

Instantly share code, notes, and snippets.

View mateuspontes's full-sized avatar
⚡

Mateus Pontes mateuspontes

⚡
View GitHub Profile
@mateuspontes
mateuspontes / SKILL.md
Created November 6, 2026 13:59
/pr-review/SKILL.md
name pr-review
description Use when asked to review a GitHub pull request (number, URL, or current branch) or local branch changes that are not a PR yet, and produce a local diagnostic report with an approve / not-approve recommendation, including evaluation of review comments already left by other reviewers or bots.
argument-hint [PR number | PR URL | --local [base]] (default: PR of current branch, else local changes)
allowed-tools Bash(gh pr view:*), Bash(gh pr diff:*), Bash(gh pr checks:*), Bash(gh pr list:*), Bash(gh repo view:*), Bash(gh search:*), Bash(git log:*), Bash(git show:*), Bash(git blame:*), Bash(git fetch:*), Bash(git diff:*), Bash(git grep:*), Bash(git rev-parse:*), Bash(git merge-base:*), Bash(git status:*), Bash(git branch:*)

PR Review

Produce a local report for the user to decide on. The user takes every GitHub action. Applying fixes locally (Step 9) happens only on explicit request.

@mateuspontes
mateuspontes / README.md
Last active June 29, 2025 20:27
Twitter: unfavorite your tweets

Unfavorite Tweets Script

This script is designed to automate the process of unfavoriting tweets on X.com (formerly Twitter). It fetches the list of liked tweets for a user and removes the likes in batches, handling pagination and rate limits.

image

How to Use

  1. Access the Likes tab on X.com, e.g., https://x.com/xxxxxxxx/likes, replacing xxxxxxxx with your username.
  2. Open your browser's developer tools (usually by pressing F12 or Ctrl+Shift+I).
[{
"id": "advertisements",
"name": "Anúncios",
"configurationSchemaSets": [],
"isSingleton": true
}]
[
{
"name": "ProductsShelf",
"schema": {
"title": "Vitrine de produtos",
"description": "Vitrine de produtos",
"type": "object",
"required": ["title"],
"properties": {
"title": {
@mateuspontes
mateuspontes / migrate-fish-history-to-zsh.py
Created April 7, 2018 19:57
Migrate fish history to zsh shell (python 2.7)
import os
import re
def fish_to_zsh(cmd):
return (cmd.replace('; and ', '&&')
.replace('; or ', '||'))
with open(os.path.expanduser('~/.zsh_history.test'), 'a') as o:
with open(os.path.expanduser('~/.local/share/fish/fish_history')) as f:
for line in f:
@mateuspontes
mateuspontes / gugoupi.js
Last active August 29, 2015 14:23
GugouPI
var irc = require("irc");
var google = require('google')
var config = {
channels: ["##gurupi"],
server: "irc.freenode.net",
botName: "gugoupi"
};
var bot = new irc.Client(config.server, config.botName, {
@mateuspontes
mateuspontes / mechanize_bible.rb
Created November 7, 2012 03:19
Bible mechanized
require 'rubygems'
require 'mechanize'
agent = Mechanize.new
# params
book = "sl"
chapter = "100"
verse = [1,2,3,4]
text = []
@mateuspontes
mateuspontes / .htaccess
Created February 2, 2012 18:09
htaccess para remover index.php do CodeIgniter
Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php)
RewriteRule ^(.*)$ index.php/$1 [L]
@mateuspontes
mateuspontes / gist:1070132
Created July 7, 2011 18:10
FadeIn nas imagens depois do load
<html>
<head>
<title>FadeIn images after loaded with jQuery</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("img").each(function(){
$(this).css({opacity: 0}).bind('load', function(){
$(this).animate({opacity: 1}, 'slow');