Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Underdoge Underdoge

🏠
Working from home
View GitHub Profile
@Underdoge
Underdoge / hlpvitem.py
Created Dec 2, 2022
Weechat hlpvitem.py script fixed for python3
View hlpvitem.py
# -*- coding: utf-8 -*-
#
# Copyright (C) 2009-2014 Sébastien Helleu <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@Underdoge
Underdoge / announce_url_title.py
Created Dec 2, 2022
Weechat announce_url_title.py fixed for python3
View announce_url_title.py
# -*- coding: utf-8 -*-
#
# Copyright (c) 2009 by xt <xt@bash.no>
# Borrowed parts from pagetitle.py by xororand
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
@Underdoge
Underdoge / imdb_ratings.py
Last active Nov 19, 2022
Write IMDb ratings into m3u movie list
View imdb_ratings.py
from bs4 import BeautifulSoup
import re
import requests
import pandas as pd
import getopt, sys
import unidecode
def getIMDbRating(movietitle):
titleURL = movietitle.replace(" ","+")
url = 'https://www.imdb.com/find?q=' + titleURL + "&ref_=nv_sr_sm"
@Underdoge
Underdoge / SSNMX_catalogo_19010901_20220909_m55_99-SSNMX_catalogo_19010901_20220909_m55_99
Last active Sep 20, 2022
Sismos en México del 9 de diciembre de 1901 al 25 de mayo de 2022
View SSNMX_catalogo_19010901_20220909_m55_99-SSNMX_catalogo_19010901_20220909_m55_99
Fecha,MES,Hora,Magnitud,Latitud,Longitud,Profundidad,Referencia de localizacion,Fecha UTC,Hora UTC,Estatus
1901-12-08,DICIEMBRE,20:17:00,7,26,-110,33,"83 km al OESTE de AHOME, SIN",1901-12-09,2:17:00,revisado
1902-01-16,ENERO,17:19:00,7,17.62,-99.72,33,"21 km al OESTE de ZUMPANGO DEL RIO, GRO",1902-01-16,23:19:00,revisado
1902-04-18,ABRIL,20:23:00,7.5,14.9,-91.5,25,"72 km al ESTE de CACAHOATAN, CHIS",1902-04-19,2:23:00,revisado
1902-09-23,SEPTIEMBRE,14:18:00,7.7,16.5,-92.5,25,"5 km al SUROESTE de TEOPISCA, CHIS",1902-09-23,20:18:00,revisado
1902-12-12,DICIEMBRE,17:10:00,7.1,29,-114,33,"115 km al NORTE de GUERRERO NEGRO, BCS",1902-12-12,23:10:00,revisado
1903-01-13,ENERO,19:47:36,7.6,15,-93,33,"50 km al SUR de MAPASTEPEC, CHIS",1903-01-14,1:47:36,revisado
1905-10-24,OCTUBRE,11:40:00,6.6,20,-110,33,"320 km al SUR de CABO SAN LUCAS, BCS",1905-10-24,17:40:00,revisado
1905-12-16,DICIEMBRE,23:27:00,7.1,17,-113,33,"727 km al SUROESTE de CABO SAN LUCAS, BCS",1905-12-17,5:27:00,revisado
1906-04-10,ABRIL,15:18:00,7.1,2
@Underdoge
Underdoge / preventbinginstall.reg
Created Jan 29, 2020
Registry file to exclude the extension for Microsoft Search in Bing from being installed on Google Chrome
View preventbinginstall.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\office\16.0\common\officeupdate]
"preventbinginstall"=dword:00000001
@Underdoge
Underdoge / moose.sh
Last active Aug 12, 2017
For weechat
View moose.sh
#!/usr/bin/env bash
# Copyright (c) 2017, Anthony DeDominic <adedomin@gmail.com>, Underdoge
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
@Underdoge
Underdoge / ansi2unicode.pl
Created Aug 4, 2017 — forked from revmischa/ansi2unicode.pl
Convert raw ANSI to IRC or HTML
View ansi2unicode.pl
#!/usr/bin/perl
# ansi2unicode.pl
# 4/18/2007
#
# convert an ANSI file to unicode, suitable for display in irssi/mirc or html
# usage: ansi2unicode.pl inputfile [-tc] [-o outputmode] [outputfile]
# -t = terminal output, no color
# -o = output mode, currently only html and irc supported, default is irc
# outputfile = filename to output to if html specified
@Underdoge
Underdoge / config.json
Last active Nov 24, 2022
config.json file for undertweet
View config.json
{
"dalle": {
"api_url": "https://backend.craiyon.com/generate",
"api_request_timeout": 210,
"generate_request_timout": 360,
"retry_delay": 5
},
"openAI":{
"api_generations_url": "https://api.openai.com/v1/images/generations",
"api_variations_url": "https://api.openai.com/v1/images/variations"
@Underdoge
Underdoge / mockme.py
Last active May 18, 2017 — forked from hikilaka/mockme.py
Added random uppercase/lowercase and /prism
View mockme.py
import weechat
import random
SCRIPT_NAME = 'mockme'
SCRIPT_AUTHOR = 'hikilaka,underdoge'
SCRIPT_VERSION = '1.0.1'
SCRIPT_LICENSE = 'none'
SCRIPT_DESC = 'Converts your text into a mOcKiNg VeRsIoN'
weechat.register(SCRIPT_NAME, SCRIPT_AUTHOR, SCRIPT_VERSION,
View extractEachKth.js
function extractEachKth(inputArray, k) {
return inputArray.filter((curr,index)=>{
if((index+1)%k!=0)
return curr;
});
}