Skip to content

Instantly share code, notes, and snippets.

@shtrih
shtrih / steam-summer-sale-2014-sort-by-discounts.user.js
Last active August 29, 2015 14:02
Сортирует «Предложения дня» по скидкам от большей к меньшей. Сортирует в блоке «Лидеры продаж и др.» по убыванию/возрастанию скидок (добавляет настройку сортировки «%▾»). ~~~ Для главной страницы летней распродажи 2014 http://store.steampowered.com/
// ==UserScript==
// @name Steam sort by discount
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description Steam summer sale discount sorting 19/06/14 - 30/06/14
// @match http://store.steampowered.com/
// @copyright 2014+, shtrih
// ==/UserScript==
function scriptBody($) {
@shtrih
shtrih / logs-preview.user.js
Last active August 29, 2015 14:02
logs.4otaku.org pictures preview
// ==UserScript==
// @name logs-preview
// @namespace https://gist.github.com/shtrih/a3ddb3d6b66e4b0013a3
// @version 0.3
// @description enter something useful
// @match http://old.4otaku.org/logs*
// @copyright 2014+, shtrih
// ==/UserScript==
function scriptBody() {
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 304.88 (buildd@lamiak) Tue Apr 9 12:26:21 UTC 2013
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
@shtrih
shtrih / habracomments2php.user.js
Last active August 29, 2015 14:00
Habrahabr comments to PHP Array
// ==UserScript==
// @name Habr comments2array
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description enter something useful
// @match http://habrahabr.ru/post/*
// @match http://habrahabr.ru/company/*/blog/*
// @copyright 2014+, shtrih
// ==/UserScript==
#!/bin/sh
/usr/bin/xwininfo -all -display :0 -id `/usr/bin/xdpyinfo -display :0 | /usr/bin/awk '/^focus:/{print $3}'|tr -d ,` | /bin/grep ' Parent window id:' | /usr/bin/replace ' Parent window id:' `/bin/date +%F-%H:%M:%S ` >> /home/alex/dm.log
/usr/bin/import -window root -display :0 jpg:- > /home/alex/ss/`date +%F-%H%M%S`.jpg
private function moveOrin():Void
{
_orinPos.unshift(new FlxPoint(_orin.x, _orin.y));
if (_orinPos.length >= _orinTrain.members.length)
{
_orinPos.pop();
}
var current_anim_name = _orin.animation.name;
var offset = { x: _orin.x, y: _orin.y };
#!/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
@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() {
// ==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() {