Skip to content

Instantly share code, notes, and snippets.

View Polsaker's full-sized avatar
🥔
Focusing

Ramiro Bou Polsaker

🥔
Focusing
View GitHub Profile
{
"0x00":"KEY_NONE",
"0x01":"KEY_ERR_OVF",
"0x04":"KEY_A",
"0x05":"KEY_B",
"0x06":"KEY_C",
"0x07":"KEY_D",
"0x08":"KEY_E",
"0x09":"KEY_F",
"0x0a":"KEY_G",
@Polsaker
Polsaker / wallops_window.py
Created June 18, 2021 01:09
Hexchat wallops window plugin
import hexchat
__module_name__ = "wallops_window"
__module_version__ = "1.0.0"
__module_description__ = "Sends wallops to their own buffer"
def handle_wallops(word, word_eol, userdata):
source: str = word[0]
@Polsaker
Polsaker / alpha3000.js
Last active January 24, 2020 13:25
Alpha 3000
// ==UserScript==
// @name Alpha3000
// @namespace http://polsaker.com/
// @version 0.1
// @description try to take over the world!
// @author Polsaker
// @match https://drive.alpha2000.com.ar/Main
// @match https://drive.alpha2000.com.ar/Documento/Index
// @grant none
// @require http://code.jquery.com/jquery.js
@Polsaker
Polsaker / iitc_plugin_fanfields3.user.js
Last active June 21, 2019 20:02
Updated fanfields plugin
// ==UserScript==
// @id fanfields@heistergand
// @name IITC plugin: Fan Fields 2
// @author Heistergand
// @category Layer
// @version 2.1.4
// @description Calculate how to link the portals to create the largest tidy set of nested fields. Enable from the layer chooser.
// @include https://*.ingress.com/intel*
// @include http://*.ingress.com/intel*
// @include https://*.ingress.com/mission/*
@Polsaker
Polsaker / alexafetch.py
Last active April 13, 2022 21:36
Fetches alexa rank for reddit alternatives
import requests
import re
# Site list in the format ('DOMAIN', 'DISPLAY NAME')
# Display name is only used for the first column of the table.
sites = [('steemit.com', 'steemit'),
('band.us', 'band'),
('voat.co', 'voat'),
('swiflie.com', 'swiflie'),
('papaly.com', 'papaly'),
@Polsaker
Polsaker / donger.php
Last active April 13, 2022 21:22
Donger ranking page
<?php
if(isset($_GET['r'])){
$db = new SQLite3('/home/polsaker/dongerdong/dongerdong.db');
$top_modifier = 0.05;
$our_account = "dongerdong";
$stmt = $db->prepare('SELECT * FROM playerstats LIMIT 100 ORDER BY elo DESC;');
$result = $stmt->execute();
$ranks = array();
$r = 1;
@Polsaker
Polsaker / palabra.py
Created April 11, 2016 02:28
Modifica textos intentando no cambiar el significado.
# Instalación:
# 1 - git clone https://github.com/voldmar/conjugation
# 2 - wget https://gist.githubusercontent.com/Polsaker/c9ca458ab9dfcfb570971e8dba9884bb/raw/0fb23322e5d27b58cb1ab83e5d7a5bcae3b4105c/diff -O- && git apply
# 3 - sudo python3 setup.py install
# 4 - git clone https://github.com/mkalinowski/python-mythes
# 5 - make
# 6 - Editar la línea 12 de cmythes.py, reemplazar "libcmythes.so" con "./libcmythes.so"
# 7 - Poner este script en el mismo directorio que cmythes.py
# 8 - wget http://http.us.debian.org/debian/pool/main/libr/libreoffice-dictionaries/mythes-es_5.1.1-1_all.deb
# 9 - Descomprimir th_es_ANY_v2.dat y th_es_ANY_v2.idx en el mismo directorio que este script
@Polsaker
Polsaker / rainbows.py
Created March 21, 2016 18:05
Rainbows.py, NOW WITH UNICODE SUPPORT!
import hexchat
import itertools
import re
__module_name__ = 'Rainbows'
__module_version__ = '1.0'
__module_description__ = ''
hexchat.prnt('Rainbows script loaded')
@Polsaker
Polsaker / img2irc.py
Last active April 13, 2022 21:36
Makes beautiful ART from regular, boring images.
#!/usr/bin/env python3
# MIT License.
# Copyright (c) 2016 Ramiro Bou (Polsaker)
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#