Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @id wallsearch@vkopt
// @name Wall Search by UID for VkOpt
// @version 1.0
// @namespace https://greasyfork.org/users/23
// @author Pmmlabs@github
// @description Плагин для VkOpt, ищущий по стене посты и комменты заданного пользователя
// @include *vk.com*
// @run-at document-end
// @noframes
LIST=$(curl https://www.last.fm/player/station/user/$USER/recommended?ajax=1 | jq -r '.playlist|.[]|._playlinks|.[0]|.url')
FILENAME="lastfm.pls"
echo "" > $FILENAME
i=1
for url in $LIST
do
echo "File$i=$url" >> $FILENAME
i=$((i+1))
done
@Pmmlabs
Pmmlabs / linkshighlight.user.js
Last active April 8, 2020 19:48
Плагин для VkOpt, который преобразует ссылки на instagram.com, magnet и ftp из текста в собственно ссылки
// ==UserScript==
// @id linkshighlight@vkopt
// @name Links Highlight for VkOpt
// @version 1.1
// @namespace https://greasyfork.org/users/23
// @author Pmmlabs@github
// @description Плагин для VkOpt, подсвечивающий некоторые неподсвечиваемые ссылки
// @include *vk.com*
// @run-at document-end
// @noframes
@Pmmlabs
Pmmlabs / twitch.sh
Last active March 23, 2020 16:58
Twitch auto-record bash script
# Dependencies:
# jq https://stedolan.github.io/jq/
# ffmpeg https://ffmpeg.org/
# Usage:
# add to crontab schedule with command: twitch.sh [username] [oauth token]
USER="$1"
OAUTH="$2"
FFMPEG="ffmpeg" # change this if you have ffmpeg installed in other place
JQ="./jq" # change this if you have jq downloaded in other directory. By default, jq called from current directory.
@Pmmlabs
Pmmlabs / convert.sh
Last active February 2, 2020 15:31
Deletes known watermark
#!/bin/bash
MASK="mask.png"
NEGATE_FIXED="negate_fixed.png"
NEGATE="negate.png"
#convert -density 300 -trim test.pdf -quality 100 -flatten -sharpen 0x1.0 test.jpg
convert $MASK -negate $MASK
for i in *.png
do
convert $i -negate $NEGATE
#!/usr/bin/env bash
JQ="jq"
TEMP="temp.json"
COMMENTS="comments.txt"
CURSOR=""
PARAM=""
echo "" > ${TEMP}
echo "" > ${COMMENTS}
// ==UserScript==
// @id imdump@vkopt
// @name Скачивание всех диалогов в TXT
// @version 1.2
// @namespace https://greasyfork.org/users/23
// @author Pmmlabs@github
// @description Плагин для VkOpt, позволяющий получить zip-архив со всеми диалогами ВКонтакте
// @include *vk.com*
// @run-at document-end
// @downloadURL https://gist.github.com/Pmmlabs/0caeee114c77b7037922/raw/c4a79c6819ef1980eb43626693201afcfbe4105c/imdump.user.js
@Pmmlabs
Pmmlabs / exactSearch.user.js
Last active October 24, 2019 03:56
Плагин для VkOpt, добавляющий функцию точного поиска по аудиозаписям
// ==UserScript==
// @id exactsearch@vkopt
// @name Точный поиск для VkOpt
// @version 1.0
// @namespace https://greasyfork.org/users/23
// @author Pmmlabs@github
// @description Плагин для VkOpt, добавляющий функцию точного поиска по аудиозаписям
// @include *vk.com*
// @run-at document-end
// @noframes
@Pmmlabs
Pmmlabs / vkopt_font.user.js
Last active October 24, 2019 03:55
Плагин для VkOpt, добавляющий возможность форматирования текста в диалогах (жирный,курсив,зачеркнутый)
// ==UserScript==
// @id font@vkopt
// @name Font for VkOpt
// @version 1.0
// @namespace https://greasyfork.org/users/23
// @author Pmmlabs@github
// @description Плагин для VkOpt, добавляющий возможность форматирования текста в диалогах (жирный,курсив,зачеркнутый)
// @include *vk.com*
// @run-at document-end
// @noframes
preset="-c:v h264 -crf 18 -preset veryslow"
width=640
height=1136
audiorate=44100
output="output.ts"
rm -rf processed $output
mkdir processed
pad_vertical() {