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 / 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
@vladkorotnev
vladkorotnev / Readme
Created Jan 24, 2013
What to do if you want BooruSaver from GBBrowser Mac on 10.6 while GBBrowser itself is crashing on you
View Readme
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
@vladkorotnev
vladkorotnev / vk-adblock.js
Last active Dec 12, 2015
Блокировка рекламы пабликов в ВК
View vk-adblock.js
// 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(){
@vladkorotnev
vladkorotnev / mcsong.scpt
Last active Dec 14, 2015
applescript to control and search itunes on admin's machine. example of background scripting of terminals.
View mcsong.scpt
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 / autooff.scpt
Last active Dec 14, 2015
Auto stop minecraft server
View autooff.scpt
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 / vkaddict.js
Last active Dec 17, 2015
"коробочки" чата ВК на другом сайте, предварительная версия
View vkaddict.js
//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();
View gist:5919300

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 / connect_this_mac.sh
Created Aug 14, 2013
Shared Code Snippets for Xcode across multiple Macintoshes
View connect_this_mac.sh
#!/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
You can’t perform that action at this time.