Skip to content

Instantly share code, notes, and snippets.

Собственный софт самсунга написан чужими для хищников.
@isanosyan
isanosyan / gist:4744715
Last active December 12, 2015 08:29
mac os x: change screenshot location (defaults to desktop)
defaults write com.apple.screencapture location /path/
killall SystemUIServer
@isanosyan
isanosyan / gist:3242469
Created August 3, 2012 00:16
convert video for ipad
ffmpeg -i test.flv -vcodec mpeg4 -b 512k -acodec aac -strict experimental -ac 2 -ab 256k -ar 44100 test.mp4
@isanosyan
isanosyan / Request.php
Created June 22, 2012 07:40
Symfony 2: use GET parameter _path to determine route
<?php
namespace Package\MyBundle\Component\HttpFoundation;
use Symfony\Component\HttpFoundation\Request as BaseRequest;
/**
* Represents HTTP request.
* Replaces actual path with GET _path parameter (if present)
*
@isanosyan
isanosyan / .gitconfig
Created July 29, 2014 18:48
git: ignore local changes to tracked files
[alias]
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
ignored = !git ls-files -v | grep "^[[:lower:]]"
http {
map $http_user_agent $limit_bots {
default '';
~*(google|bing|yandex|msnbot) $binary_remote_addr;
}
limit_req_zone $limit_bots zone=bots:10m rate=1r/m;
server {