Skip to content

Instantly share code, notes, and snippets.

@shtrih
shtrih / test.php
Created May 21, 2011 08:42 — forked from phpony/test.php
Hi!
<?php
echo 'hello world!';
?>
function SharedForm()
{
this.init();
}
SharedForm.prototype =
{
container: null,
close: null,
@shtrih
shtrih / radar(1).xml
Created October 4, 2012 16:31
Перевод названий маркеров на миникарте клиента Salem от Ender
<!-- C:\Users\shtrih\Salem\radar.xml -->
<radarConfig>
<group name="herb" show="true" tooltip="true" color="#ffff00">
<marker match="gfx/terobjs/herbs/lime" text="Lime (Известь)" color="#ffb814" />
<marker match="gfx/terobjs/herbs/flint" text="Flint (Кремень)" color="#aeaece" />
<marker match="gfx/terobjs/herbs/granite" text="Granite (Гранит)" color="#CA6744" />
<marker match="gfx/terobjs/herbs/coarsesalt" text="Coarse Salt (Необработанная соль)" color="#eeeeee" />
<marker match="gfx/terobjs/herbs/autumngrass" text="Autumn Grass (Осенние травы)" color="#bab080" />
<marker match="gfx/terobjs/herbs/seaweed" text="Seaweed (Морские водоросли)" color="#00bd97" />
@shtrih
shtrih / danbooru_tags_getter.user.js
Last active March 25, 2023 20:12
On the post pages under search field appears as a link "🏷️ Tags". When clicked, will open the block with the reference image and a list of tags. На странице поста, под полем поиска появляется ссылка "🏷️ Tags", при нажатии на которую, откроется блок со ссылкой на изображение и списком тегов.
// ==UserScript==
// @name Danbooru tags getter
// @namespace https://gist.github.com/shtrih/5413585/
// @version 0.3
// @description On the post pages under search field appears as a link "🏷️ Tags". When clicked, will open the block with the reference image and a list of tags. На странице поста, под полем поиска появляется ссылка "🏷️ Tags", при нажатии на которую, откроется блок со ссылкой на изображение и списком тегов.
// @match https://danbooru.donmai.us/posts/*
// @match https://aibooru.online/posts/*
// @copyright 2013+, shtrih
// ==/UserScript==
// ==UserScript==
// @name Logs link grabber
// @namespace https://gist.github.com/shtrih/5604907
// @version 0.3
// @description enter something useful
// @match http://old.4otaku.org/logs*
// @copyright 2013+, shtrih
// ==/UserScript==
function scriptBody() {
// ==UserScript==
// @name 4otaku.org Art Sidebar
// @namespace https://gist.github.com/shtrih/5756421
// @version 0.4
// @description enter something useful
// @match http://art.4otaku.org/*
// @copyright 2013+, shtrih
// ==/UserScript==
function scriptBody() {
@shtrih
shtrih / minecraft-dynmap-translit.user.js
Created June 23, 2013 10:36
Исправляет «абракадабру» в чате модификации к Minecraft, dynmap (https://dl.dropboxusercontent.com/u/23033545/Archives/minecraft-map-translit.png). Тестировалось на Chrome 27 в расширении Tampermonkey 3.1.
// ==UserScript==
// @name Minecraft dynmap translator
// @namespace https://gist.github.com/shtrih/
// @version 0.1
// @description Отображение чатлога мода «dynmap» нормальными сообщениями на русском языке, если нет возможности исправить мод на сервере (русский отображается как «ÝÞßàáâãäå»)
// @match http://95.31.22.222:8123/*
// @copyright 2013+, shtrih
// ==/UserScript==
function scriptBody() {
// ==UserScript==
// @name ASS
// @namespace http://4otaku.org/
// @version 0.1
// @description Art Sauce Search
// @match http://art.4otaku.org/*
// @copyright 2013+, shtrih
// ==/UserScript==
function scriptBody() {
@shtrih
shtrih / 4otaku.vk-share.user.js
Last active August 25, 2017 10:52
Ссылка «Поделиться вконтакте» для постов на 4otaku
// ==UserScript==
// @name vk.share
// @namespace http://use.i.E.your.homepage/
// @version 0.2
// @description enter something useful
// @match http://4otaku.org/post/*
// @copyright 2013+, shtrih
// ==/UserScript==
function scriptBody() {
#!/bin/bash
src='/home/http/local'
patch='/home/http/rights'
#enable for loops over items with spaces in their name
IFS=$'\n'
for dir in `ls "$src/"`
do