Skip to content

Instantly share code, notes, and snippets.

@mistificator
mistificator / VkGetLink.user.js
Last active January 10, 2025 14:42
Script for downloading audio and video files from the vk.com
@mistificator
mistificator / Plurk Time Jumper (Tampermonkey edition).user.js
Created April 19, 2015 20:10
Go back to the past timeline at plurk.com
// ==UserScript==
// @name Plurk Time Jumper (Tampermonkey edition)
// @namespace http://www.plurk.com/
// @description Go back to the past timeline
// @include http://www.plurk.com/*
// @include https://www.plurk.com/*
// @author WiselySong, Mist Poryvaev
// @version 1.4
// @grant none
// ==/UserScript==
@mistificator
mistificator / Block Plurk Users (Tampermonkey edition).user.js
Created April 21, 2015 17:00
Hides replies by plurkers you don't like, as defined by picking from the menu item added by this script
// ==UserScript==
// @name Block Plurk Users (Tampermonkey edition)
// @namespace http://www.plurk.com/
// @description Hides replies by plurkers you don't like, as defined by picking from the menu item added by this script.
// @include http://www.plurk.com/*
// @author Katharine Berry, Mist Poryvaev
// @version 1.12
// @grant none
// ==/UserScript==
@mistificator
mistificator / vc_clean.bat
Created February 2, 2016 11:52
Cleans temporary and intermediate files in MSVC solution folder
del /f /s /q *.pdb
del /f /s /q *.obj
del /f /s /q *.ncb
del /f /s /q *.tlog
del /f /s /q *.cache
del /f /s /q *.sdf
del /f /s /q *.log
del /f /s /q *.ilk
del /f /s /q *.pch
del /f /s /q *.ipch
@mistificator
mistificator / zip.bat
Last active February 2, 2016 15:05
Puts folder contents into a zip-file named %folder%_#%yyyy_mm_dd%.zip
@if exist zip.vbs del /f /q zip.vbs
@echo Set objArgs = WScript.Arguments >> zip.vbs
@echo zipFile = objArgs(0) >> zip.vbs
@echo sFolder = objArgs(1) >> zip.vbs
@echo Set objFSO = CreateObject("Scripting.FileSystemObject") >> zip.vbs
@echo With objFSO >> zip.vbs
@echo zipFile = .GetAbsolutePathName(zipFile) >> zip.vbs
@echo sFolder = .GetAbsolutePathName(sFolder) >> zip.vbs
@echo With .CreateTextFile(zipFile, True) >> zip.vbs
@mistificator
mistificator / Unplurk.user.js
Created February 12, 2016 09:23
Plurk interface patches and other sh..
// ==UserScript==
// @name Unplurk
// @namespace http://www.plurk.com/
// @version 0.1
// @description Plurk interface patches and other sh..
// @author Mist Poryvaev
// @grant none
// @include http://www.plurk.com/*
// @include https://www.plurk.com/*
// ==/UserScript==
@for /f %%i in ('reg.exe query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI\VEN_1393&DEV_1680&SUBSYS_00000000&REV_02"') do @set MoxaDevice="%%i"
@start rundll32.exe devmgr.dll,DeviceProperties_RunDLL /DeviceID %MoxaDevice:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\=%
@mistificator
mistificator / QSqlRTModel.h
Created May 19, 2017 14:23
Qt QSqlRelationalTableModel with JOIN support
#pragma once
#include <QObject>
#include <QString>
#include <QStringList>
#include <QSqlDatabase>
#include <QSqlRelationalTableModel>
class QSqlRTModel: public QSqlRelationalTableModel
{
Q_OBJECT
configure.bat -prefix %CD%\qtbase -debug-and-release -opensource -confirm-license -static -no-qml-debug -nomake examples -nomake tests -skip qtdeclarative -skip qtquick1 -skip qtquickcontrols -skip qtquickcontrols2 -skip qtgamepad -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebkit
nmake
set formats=*.mp3 *.wma
set presets=-vn -ar 44100 -ac 2 -ab 128k -vol 400 -f mp3
set outputext=mp3
for %%g in (music\%formats%) do start /b /wait "" "%~dp0bin\ffmpeg.exe" -i "%~dp0%%g" %presets% "%~dp0%%~ng.%outputext%" && TITLE "Converted: "%%g