Skip to content

Instantly share code, notes, and snippets.

@isanosyan
isanosyan / two columns
Created April 15, 2013 09:00
two columns for bilingual docs like contract
\begin{table}[ht]
\begin{minipage}[t]{0.45\linewidth}
This is the first column.\\
This is still in the first column.
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[t]{0.45\linewidth}
Собственный софт самсунга написан чужими для хищников.
@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 / gist:2973744
Created June 22, 2012 16:09
mac os x: disable and enable spotlight
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
killall SystemUIServer
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo chmod 755 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
killall SystemUIServer
@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)
*