Skip to content

Instantly share code, notes, and snippets.

💭
What's happening?

Akasaka Ryuunosuke vladkorotnev

💭
What's happening?
Block or report user

Report or block vladkorotnev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vladkorotnev
vladkorotnev / ufanetcam.js
Last active Aug 29, 2015
Grab camera stream list from Ufanet Maps
View ufanetcam.js
// 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 / inbound.py
Last active Aug 29, 2015
Receives VK messages and drops attachments into a folder
View inbound.py
#!/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 / terminal.css
Created Jan 9, 2015
Terminal style for VK Chatbox
View terminal.css
@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 / WorkOff.sh
Created Jan 14, 2015
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.
View WorkOff.sh
#!/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 / meidochan.py
Created Jan 17, 2015
does what it seems. for VK
View meidochan.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
# v 0.1.3
#
# __ ___ _ __ __
# / |/ /___ (_)___/ /___ ____ / / ___ _ ___
# / /|_/ // -_)/ // _ // _ \/ __// _ \/ _ `// _ \
# /_/ /_/ \__//_/ \_,_/ \___/\__//_//_/\_,_//_//_/
#
@vladkorotnev
vladkorotnev / NSArray+pull.h
Last active Aug 29, 2015
Пьяница — доказательство неразрешимости игры в случае неслучайного и одинакового порядка взятия карт со стола в ротацию
View NSArray+pull.h
//
// 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 / haruhi.pikabu.userscript.js
Last active Aug 29, 2015
Pikabu Suzumiya Haruhi themed mascot installer (thx to the image author http://pikabu.ru/profile/PrincessPanda)
View haruhi.pikabu.userscript.js
// ==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 / gbrandom.py
Created Nov 30, 2012
Random Gelbooru grabber
View gbrandom.py
#!/usr/bin/env python
# -- CONFIG ------
isMacQL = 1 # mac quicklook for the lulz
debugLogging = 1 # logs
rootUrls=["http://gelbooru.com","http://vladkorotnev.dyndns.org:8081/art","http://safebooru.org/"]
# ----------------
try:
from BeautifulSoup import BeautifulSoup
except:
@vladkorotnev
vladkorotnev / randomart.py
Last active Oct 13, 2015
gist 4176162 update for mod_python
View randomart.py
from mod_python import apache
from BeautifulSoup import BeautifulSoup
import urllib
import subprocess
import random
import os,sys
import Image
@vladkorotnev
vladkorotnev / getreading.py
Last active Dec 10, 2015
Get reading for a word
View getreading.py
#!/usr/bin/env python
# coding=utf8
# do not touch the above or it will freak out
try:
from BeautifulSoup import BeautifulSoup
except:
print "REQUIRES BEAUTIFULSOUP!"
import urllib
import urllib2
You can’t perform that action at this time.