This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you want BooruSaver on 10.6 and GBBrowser Mac crashes on you. | |
Rightclick GBBrowser's .app file, then in this window go to Contents-> Resources-> Open BooruSaver.saver, then click install. | |
Place the code below into: ~/Library/Preferences/com.vladkorotnev.boorusaver.plist | |
Use either a plist editor or TextWrangler or Nano in terminal. | |
Change 1 under 'absurd' to 0 to allow loading absurdres full images (goes very high on RAM!). If 1, loads sample for absurdres instead of full. | |
Change safebooru.org under 'board' to any Gelbooru-based board without http:// | |
Change 4 under 'delay' to show each picture for more seconds. | |
Change tags under 'tags' to match your favourite search query :P |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mod_python import apache | |
from BeautifulSoup import BeautifulSoup | |
import urllib | |
import subprocess | |
import random | |
import os,sys | |
import Image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# v 0.1.3 | |
# | |
# __ ___ _ __ __ | |
# / |/ /___ (_)___/ /___ ____ / / ___ _ ___ | |
# / /|_/ // -_)/ // _ // _ \/ __// _ \/ _ `// _ \ | |
# /_/ /_/ \__//_/ \_,_/ \___/\__//_//_/\_,_//_//_/ | |
# |