Skip to content

Instantly share code, notes, and snippets.

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/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
@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==
# 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 / 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() {
@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($) {
#!/bin/bash
DBUSER=
DBPASS=
DBHOST=localhost
FILEPATH="/home/http/local"
DATE=$(date +"%Y-%m-%d-%H_%M")
cd ${FILEPATH}
<?php
require_once "fnc/inc/ajax.php";
$params = array(
'secret',
'from',
'message',
'message_id',
'sent_to',
@shtrih
shtrih / gplus_img_link.user.js
Last active August 29, 2015 14:12
Добавляет кнопку для получения ссылки на полноразмерное изображение в G+: https://www.dropbox.com/s/6c0iza4m2tk2hhm/2014-12-24_06h03_40.png Устанавливать через Tampermonkey/Greazemonkey или аналоги.