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 / defocused_miku1.css
Last active December 27, 2015 10:58
DeFocused Miku-1 — a theme for vk.com
/* Inject this as a Userstyle for VK.com domain! */
/*
____ _____ _
| _ \ ___ | ___|___ ___ _ _ ___ ___ __| |
| | | | / _ \| |_ / _ \ / __|| | | |/ __| / _ \ / _` |
| |_| || __/| _|| (_) || (__ | |_| |\__ \| __/| (_| |
Option Explicit On
Module Yuki
''''''''''''''
' Typing sim '
' TODO: Make '
' skip space '
' on line '
' start '
''''''''''''''
Sub TextType(ByVal TextToType As String)
@vladkorotnev
vladkorotnev / payment.php
Created October 14, 2013 12:38
Имитация платежной системы с редиректом на один урл в случае отмены и на другой в случае оплаты
<html>
<head>
<title> Какая-то платежная система </title>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body style="background-image: url(http://bradjasper.com/subtle-patterns-bookmarklet/patterns/satinweave.png); background-size: auto; background-repeat: repeat repeat;">
<small > Данная страница является вымыслом и вообще используется только для проверки ПО</small>
<?
$names = array(
@vladkorotnev
vladkorotnev / vk-dephotify.js
Last active December 22, 2015 10:48
VK -- удаление много фото из верхней панельки
// Код букмарклета: (да, оно требует jquery, да, мы настолько обленились :D)
// javascript:(function(){document.body.appendChild(document.createElement('script')).src='https://code.jquery.com/jquery-1.10.1.min.js';document.body.appendChild(document.createElement('script')).src='https://gist.github.com/vladkorotnev/6460898/raw';})();
var iteration = 0; // ограничение на количество фото
var limitation= 0; // итерация текущая
var fb = undefined; // тут будет фастбокс
// фн САС -- основная функция обработки фотогратативов, с нее все и началось
var sas = function() {
if(window.location.href != $('#myprofile')[0].href) { // если мы не на своем профиле
@vladkorotnev
vladkorotnev / connect_this_mac.sh
Created August 14, 2013 09:42
Shared Code Snippets for Xcode across multiple Macintoshes
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$DIR"
mv ~/Library/Developer/Xcode/UserData/CodeSnippets/* stash
rm -rf ~/Library/Developer/Xcode/UserData/CodeSnippets
ln -s "$DIR/stash" ~/Library/Developer/Xcode/UserData/CodeSnippets
echo This Macintosh should now be successfully sharing the snippets with other connected Macs
@vladkorotnev
vladkorotnev / gist:5919300
Last active December 19, 2015 07:29 — forked from kirb/gist:5918953

Translations needed before I can release TypeStatus 1.1

Russian (ro.lproj)

"Check out #TypeStatus by HASHBANG Productions!" = "Зацените #TypeStatus от HASHBANG Productions!";
"Hide Text After Delay" = "Скрывать текст после задержки;
"Overlay Animation" = "Анимация оверлея";
"Overlay Display Duration" = "Длительность анимации оверлея";
"Test Read" = "Тест прочтения";

"Test Typing" = "Тест набора";

@vladkorotnev
vladkorotnev / vkaddict.js
Last active December 17, 2015 02:09
"коробочки" чата ВК на другом сайте, предварительная версия
//Usage: bookmarklet. Create a new bookmark with these contents:
// javascript:(function(){document.body.appendChild(document.createElement('script')).src='https://gist.github.com/vladkorotnev/5533667/raw';})();
var hp="http://vladkorotnev.github.io";
var sp=hp;
function createCookie(name, value, days) {
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
var expires = "; expires=" + date.toGMTString();
@vladkorotnev
vladkorotnev / autooff.scpt
Last active December 14, 2015 03:58
Auto stop minecraft server
global minut
on tweet()
tell first window of application "Terminal"
if get custom title of selected tab is "Server Start.sh" then
do script ("me * Shutdown in " & minut & "minutes *") in selected tab
end if
end tell
set minut to minut - 1
end tweet
@vladkorotnev
vladkorotnev / mcsong.scpt
Last active December 14, 2015 03:58
applescript to control and search itunes on admin's machine. example of background scripting of terminals.
global adminer
global assum
global artiste
global oldcontenta
global foundTracks
-- vars for old trackname, old artist, old terminal screen, search result
to split(someText, delimiter) --split text
set AppleScript's text item delimiters to delimiter
set someText to someText's text items
@vladkorotnev
vladkorotnev / vk-adblock.js
Last active December 12, 2015 08:29
Блокировка рекламы пабликов в ВК
// by vladkorotnev 2013
function spoilerize(x){
var messages = ["Здесь было гавно","VKDeshitifier успешно выпилил этот пост по подозрению в засере ленты","Потенциальное говно было здесь","Здесь был пост, в очередной раз пытающийся на вас нажиться"];
return messages[Math.floor(Math.random() * messages.length)]+"<br><strong>Нажмите здесь, чтобы прочитать скрытый пост</strong>";
}
function deshitiCheck(){
showFastBox('VKDeshitifier','VKDeshitifier is protecting you!');
}
function loadF(){