Skip to content

Instantly share code, notes, and snippets.

View shizeeg's full-sized avatar

Shizeeg Unadequatov shizeeg

View GitHub Profile
[META]
FILE_VERSION = 108
[General]
DirectInput = on
Krypt60FPSMode = 1
MenuAndMoves60FPSMode = 1
HardwareCursor = off
RoundTime = 90
@shizeeg
shizeeg / freenom-autofil.js
Created November 12, 2020 06:29
a script for Tampermonkey to update IPs on freenom's managedns page
// ==UserScript==
// @name freenom fillup IP
// @namespace https://my.freenom.com/
// @version 0.1
// @description fill up IPs
// @author Shizeeg Unadequatov <shizeeque (at) gmail.com>
// @match https://my.freenom.com/clientarea.php?managedns=
// @grant none
// ==/UserScript==
/* eslint-env jquery */
@shizeeg
shizeeg / PKGBUILD
Created March 4, 2020 07:28
Yandex Browser beta
# Maintainer: Vladimir Kamensky <mastersoft24@yandex.ru>
# Contributor: Shizeeg Unadequatov <shizeeg@yandex.ru>
pkgname=yandex-browser-beta
pkgver=20.2.3.259
pkgrel=1
#epoch=1
pkgdesc="The web browser from Yandex.
Yandex Browser is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier."
@shizeeg
shizeeg / rclone@.service
Created February 14, 2020 03:30
Rclone.org mounting service for systemd
[Unit]
Description=Cloud Drive (rclone)
[Service]
Type=simple
ExecStartPre=/usr/bin/mkdir -p %h/Cloud/%I
ExecStart=/usr/bin/rclone mount \
--cache-tmp-upload-path=/tmp/rclone/upload \
--cache-chunk-path=/tmp/rclone/chunks \
--cache-workers=8 \
@shizeeg
shizeeg / mk11br.sh
Last active February 18, 2020 00:49
MK11 Brutalities list command-line tool
#!/usr/bin/env zsh
TDB='/tmp/mk11_brutalities.txt'
if [[ ! -r "${TDB}" ]];then
echo "downloading \"${TDB}\"..."
curl -so "${TDB}" 'https://pastebin.com/raw/WkaZ6PeU'
[[ "$?" -eq 0 ]] && echo "done"
fi
KHR=$(tr '[a-z]' '[A-Z]' <<< $1)
@shizeeg
shizeeg / PKGBUILD
Created April 4, 2018 05:14
torrent-mount v1.4.2 updated & fixed
# Maintainer: petRUShka <petrushkin@yandex.ru>
# Contributor: Shizeeg Unadequatov <shizeeque@gmail.com>
pkgname=torrent-mount
pkgver=1.4.2
pkgrel=3
pkgdesc="Mount a torrent (or magnet link) as a filesystem in real time using torrent-stream and fuse. AKA MAD SCIENCE!"
arch=('any')
url="https://github.com/mafintosh/torrent-mount"
license=('MIT')
@shizeeg
shizeeg / send2kodi.sh
Last active September 7, 2018 14:36
Send any text to Kodi/XBMC
#!/bin/sh
# check if `xdotool` installed
if [[ ! -x $(which xdotool) ]];then
echo
echo "Install 'xdotool' first."
echo "In Arch Linux:"
echo "$ sudo pacman -S xdotool"
echo "or Ubuntu/Debian/etc.:"
echo "$ sudo apt-get install xdotool"
@shizeeg
shizeeg / txt2html.py
Last active August 29, 2015 14:17
worst code ever
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
txt2html.py. v0.0.4
Copyright (C) 2013-15 sh!zeeg <shizeeg@ya.ru>
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.
#!/bin/sh
CONV='enconv -L ru -x utf8 '
# GET='curl -s --range=1-1024
#GET='wget -q -O - '
GET='elinks -source -force-html '
for arg in ${@}; do
if grep -q "http" <<<"${arg}" ;then
LINK="${arg}"
@shizeeg
shizeeg / show_room_occupants_count.patch
Created May 13, 2014 16:15
"show_room_occupants_count" option for mcabber
diff -r 0355be54e3a9 mcabber/mcabber/commands.c
--- a/mcabber/mcabber/commands.c Sun May 11 18:02:41 2014 +0200
+++ b/mcabber/mcabber/commands.c Tue May 13 20:02:43 2014 +0400
@@ -2074,10 +2074,12 @@
strncpy(buffer, "Room members:", 127);
scr_WriteIncomingMessage(bjid, buffer, 0, HBB_PREFIX_INFO, 0);
+ int cnt = 0;
resources = buddy_getresources(bud);
for (p_res = resources ; p_res ; p_res = g_slist_next(p_res)) {