Skip to content

Instantly share code, notes, and snippets.

client_id=2274003&client_secret=hHbZxrka2uZ6jB1inYsH - официальный android клиент
client_id=3140623&client_secret=VeWdmVclDCtn6ihuP1nt - официальный iphone клиент
https://oauth.vk.com/token?grant_type=password&client_id=2274003&client_secret=hHbZxrka2uZ6jB1inYsH&username=***&password=***&v=5.92&2fa_supported=1
@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}'
@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"
#!/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
#!/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
@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
python3 bot.py
@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:
@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/"/>
{
"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",