Skip to content

Instantly share code, notes, and snippets.

View vladkorotnev's full-sized avatar
💭
What's happening?

Akasaka Ryuunosuke vladkorotnev

💭
What's happening?
View GitHub Profile
@vladkorotnev
vladkorotnev / mkgif.sh
Created June 10, 2016 17:19
Quick video to GIF converter
#!/bin/bash
me=`basename "$0"`
## i.e. mkgif Untitled.mov 640x360 20 2d.gif -vf "hflip,vflip"
usage="Usage: $me INFILE WxH FPS OUTFILE ffmpeg_opts.."
if [ -z "$1" ]
then
echo "No input file supplied."
@vladkorotnev
vladkorotnev / vpgp2.user.js
Last active May 30, 2017 17:33
Semi-Unofficial port of vPGP2 to Firefox. ALPHA VERSION
// ==UserScript==
// @name libakasakacore vPGP bundle
// @namespace libakasakacore
// @description by popular demand, ported to FFox by Genjitsu Gadget Lab team
// @include *://vk.com/*
// @version 1
// @grant GM_addStyle
// ==/UserScript==
function addJS_Node (text, s_URL, funcToRun, runOnLoad) {
@vladkorotnev
vladkorotnev / haruhi.pikabu.userscript.js
Last active August 29, 2015 14:27
Pikabu Suzumiya Haruhi themed mascot installer (thx to the image author http://pikabu.ru/profile/PrincessPanda)
// ==UserScript==
// @name Pikabu Haruhiism
// @namespace http://ryuunosuke.me/
// @version 0.1
// @description thx to http://pikabu.ru/story/pechenki_po_suzumiya_haruhi_no_yuuutsu_3559752#comments
// @author Akasaka Ryuunosuke
// @match http://pikabu.ru/*
// @grant none
// ==/UserScript==
@vladkorotnev
vladkorotnev / NSArray+pull.h
Last active August 29, 2015 14:24
Пьяница — доказательство неразрешимости игры в случае неслучайного и одинакового порядка взятия карт со стола в ротацию
//
// NSArray+pull.h
// Drunk
//
// Created by Akasaka Ryuunosuke on 08/07/15.
// Copyright (c) 2015 Akasaka Ryuunosuke. All rights reserved.
//
#ifndef Drunk_NSArray_pull_h
#define Drunk_NSArray_pull_h
@vladkorotnev
vladkorotnev / meidochan.py
Created January 17, 2015 14:37
does what it seems. for VK
#!/usr/bin/python
# -*- coding: utf-8 -*-
# v 0.1.3
#
# __ ___ _ __ __
# / |/ /___ (_)___/ /___ ____ / / ___ _ ___
# / /|_/ // -_)/ // _ // _ \/ __// _ \/ _ `// _ \
# /_/ /_/ \__//_/ \_,_/ \___/\__//_//_/\_,_//_//_/
#
@vladkorotnev
vladkorotnev / WorkOff.sh
Created January 14, 2015 14:13
Annoyed by "A new version of iWork is available, please install our crap new OS then visit App Store to update?" Tell iWork to buzz off by this script.
#!/bin/bash
# Work Off!
# Disable annoying "Install a new update to iWork but first install our crap update to your OS" etc in iWork
# by akasaka, 2014
echo QUIT IWORK BEFORE CONTINUING
echo QUIT IWORK BEFORE CONTINUING
echo QUIT IWORK BEFORE CONTINUING
echo QUIT IWORK BEFORE CONTINUING
@vladkorotnev
vladkorotnev / terminal.css
Created January 9, 2015 06:20
Terminal style for VK Chatbox
@font-face {
font-family: 'keyrus';
src: url('http://vladkorotnev.me/keyrus.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}
#rb_box_fc_peer[YOUR_PSV_NUMERIC_ID] .fc_tab, #rb_box_fc_peer[YOUR_PSV_NUMERIC_ID] .fc_msgs_out,
#rb_box_fc_peer[YOUR_PSV_NUMERIC_ID] .fc_msgs,
#rb_box_fc_peer[YOUR_PSV_NUMERIC_ID] .fc_msgs_unread {
background: #000 !important;
}
@vladkorotnev
vladkorotnev / inbound.py
Last active August 29, 2015 14:01
Receives VK messages and drops attachments into a folder
#!/usr/bin/python
# -*- coding: utf-8 -*-
#return
# Dependencies
import vk_api, datetime
from vk_api import upload
import pdb
import json, urllib, random, uuid, os
from BeautifulSoup import BeautifulStoneSoup
@vladkorotnev
vladkorotnev / ufanetcam.js
Last active August 29, 2015 13:56
Grab camera stream list from Ufanet Maps
// Grab Ufanet Camera Streams
// By Akasaka Ryuunosuke
// 2014/03/01
var cameras = ''; var k = '';
for(var key in layouts) { if(key.substr(0,4) == 'cctv') k=key; }
for(var i in layouts[k]._layers) {
var cam = layouts[k]._layers[i];
var url = "http://"+cam.server+"/"+cam.number+"/index.m3u8?token=maps&autoPlay=true";
@vladkorotnev
vladkorotnev / reply.js
Created December 20, 2013 13:36
Simple bot for VK scriptlet. Reverses the message and replies with it after 1 second.
IM.addMsgOrig=IM.addMsg;
// copy addMsg
IM.sendSys = function (msg, sendPeer) {
peer = sendPeer;
var peerTab = cur.tabs[peer];
var msg_id = --peerTab.sent,
params = {act: 'a_send', to: peer, hash: peerTab.hash, msg: msg, title: "", ts: cur.ts},