This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import struct | |
import sys | |
import uuid | |
import zipfile | |
# Yakuza 0 save "converter" (Xbox Game Pass for PC -> Steam) | |
# Might work for other Yakuza games available with the Game Pass if the app name is changed. | |
# Running: Just run the script with Python 3 to create a ZIP file that contains the save files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Valheim/Valve Game Networking Sockets server online checker | |
# Zini, 2021 | |
# Usage: | |
# ./server_online_check.py hostname_or_ip port | |
# Hostname defaults to localhost, port defaults to 2456 | |
import socket |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mattermost Santa hats | |
// =============================================================================== | |
// This script gives every Mattermost avatar a Santa hat (only browser version). | |
// Message display setting needs to be Standard, as Compact doesn't have avatars. | |
// Enable by pasting the code to the browser console while on Mattermost. | |
// Tested with Chrome and Firefox. | |
// Vanilla | |
new MutationObserver((mutList, observer) => | |
[...mutList |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getMatchIDs() { | |
var ids = []; | |
var a_tags = document.getElementsByClassName("covMainBoxContent")[0].getElementsByTagName("a"); | |
for (var i = 0; i < a_tags.length; i++) { | |
var tag = a_tags[i]; | |
if (tag.href.indexOf("matchid") > -1) { | |
var matchId = parseInt(tag.href.split(/matchid=/)[1]); | |
ids.push(matchId); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import requests | |
import re | |
import time | |
import json | |
from argparse import ArgumentParser | |
from bs4 import BeautifulSoup as bs4 | |
from datetime import datetime as dt | |
from datetime import timedelta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/* | |
Simple Hangman Game written in ANSI C | |
Copyright © 2016 zini <zini.fin@gmail.com> | |
This work is free. You can redistribute it and/or modify it under the | |
terms of the Do What The Fuck You Want To Public License, Version 2, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Twitch HTML5 player enabler | |
// @namespace im.zini.twitch_html5_enabler | |
// @include http://www.twitch.tv/* | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js | |
// @grant none | |
// @run-at document-idle | |
// @version 1.0 | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Iltasaatana | |
// @description Iltasaatana | |
// @include http://www.iltalehti.fi/* | |
// @namespace zini-iltasaatana | |
// @version 1.0c | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js | |
// @downloadURL https://gist.github.com/Z1ni/f4aff84d6fc030874169/raw/iltasaatana.user.js | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Naamapalmu Enhancer | |
// @namespace NPEnhancer | |
// @include http://naamapalmu.com/* | |
// @icon http://naamapalmu.com/favicon.ico | |
// @downloadUrl https://gist.github.com/Z1ni/1860115e881e5e12de26/raw/np-enhancer.user.js | |
// @version 1.0 indev 2 | |
// @grant GM_getValue | |
// @grant GM_setValue | |
// @grant GM_addStyle |