Skip to content

Instantly share code, notes, and snippets.

@mcsepes
mcsepes / vkmusic.user.js
Created January 10, 2016 18:39 — forked from bo33b/vkmusic.user.js
Simple and lightweight vk.com music download enabler userscript for Greasemonkey
// ==UserScript==
// @name VK Music Download
// @namespace bo33b
// @description Simple and lightweight VK music download enabler.
// @downloadURL https://gist.github.com/bo33b/092f3c0cdb47365ffd9d/raw/vkmusic.user.js
// @version 3.4
// @include http://vk.com/*
// @include https://vk.com/*
// @grant none
// ==/UserScript==
{
"ETHNIC / FOLK / SPIRITUAL MUSIC": [
{
"url": "http://radcap.ru/indian.html",
"title": "INDIAN",
"name": "Indian Folk/Ethnic",
"img": "http://radcap.ru/stylegraf/indian1.jpg",
"asx": "http://radcap.ru/play/rc3/radio+caprice-indian+folk.asx",
"m3u": "http://radcap.ru/play/rc3/radio+caprice-indian+folk.m3u",
"pls": "http://radcap.ru/play/rc3/radio+caprice-indian+folk.pls",
@mcsepes
mcsepes / bookmarks.xml
Last active March 18, 2023 12:08
Radio Tray bookmarks
<bookmarks>
<group name="root">
<group name="ETHNIC / FOLK / SPIRITUAL MUSIC">
<bookmark name="Indian Folk/Ethnic" url="http://79.111.14.76:9021/"/>
<bookmark name="Russian Folk Music" url="http://79.120.77.11:9057/"/>
<bookmark name="Православная Духовная Музыка" url="http://79.111.14.76:9127/"/>
<bookmark name="Flamenco" url="http://79.111.14.76:9055/"/>
<bookmark name="Tango" url="http://79.120.39.202:9117/"/>
<bookmark name="Middle East Music" url="http://79.111.119.111:9133/"/>
<bookmark name="Celtic Music" url="http://79.111.14.76:9087/"/>
@mcsepes
mcsepes / thebat2mbox.py
Created February 18, 2017 00:52 — forked from alteist/thebat2mbox.py
This dirty script converts "The Bat!" mail databases to Unix mbox ones. It scans directory for .TBB files, reconstructs dir structure and converts databases using another program by Денис Трачук through wine.
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
thebat2mbox.py v0.1
Copyleft 2013 by alteist@gmail.com
This dirty script for *nix converts "The Bat!" mail databases to Unix mbox ones. It scans directory for .TBB files,
reconstructs dir structure and converts databases using another program by Денис Трачук through wine.
Usage:
#!/bin/bash
python3 bot.py
@mcsepes
mcsepes / my_trello.user.css
Last active April 29, 2017 13:42
My Trello userstyle
@-moz-document domain("trello.com") {
.body-board-view .list-card-labels .card-label {
font-weight: bold;
color: #fff !important;
line-height: 14px !important;
height: auto !important;
padding: 2px 6px !important;
margin-right: 5px !important;
width: auto !important;
text-shadow: none !important;
#!/bin/bash
function getPanelIdImpl() {
PANEL="`wmctrl -l | sed -n -e '/xfce4-panel$/ s_ .*$__ p' | sed -n -e $1' p'`"
}
function getPanelId() {
getPanelIdImpl $1
while [[ x == x$PANEL ]] ;do
sleep 0.5s
#!/bin/sh
# xinput --list
# xinput --list-props 'Genius USB Optical Mouse'
xinput --set-prop 'Genius USB Optical Mouse' 'Evdev Wheel Emulation' 1
xinput --set-prop 'Genius USB Optical Mouse' 'Evdev Wheel Emulation Button' 2
xinput --set-prop 'Genius USB Optical Mouse' 'Evdev Wheel Emulation Axes' 6 7 4 5
xinput --set-prop 'Genius USB Optical Mouse' 'Evdev Wheel Emulation Timeout' 5
xinput --set-prop 'Genius USB Optical Mouse' 'Evdev Middle Button Emulation' 1
@mcsepes
mcsepes / pdf2jpg.sh
Last active May 12, 2017 01:33 — forked from yura/pdf2jpg.sh
script to PDF to JPG using pdftk and imagemagick
#!/bin/bash
# Script to convert PDF file to JPG images
#
# Dependencies:
# * pdftk
# * imagemagick
for PDF in *.pdf; do
echo "Processing $PDF"
@mcsepes
mcsepes / emoji.php
Last active December 27, 2022 17:50
Check if string has emojis PHP. DEPRECATED. USE AT YOUR OWN RISK
<?php
// DEPRECATED. USE AT YOUR OWN RISK
function isStringHasEmojis($string)
{
$emojis_regex =
'/[\x{0080}-\x{02AF}'
.'\x{0300}-\x{03FF}'
.'\x{0600}-\x{06FF}'
.'\x{0C00}-\x{0C7F}'
.'\x{1DC0}-\x{1DFF}'