Skip to content

Instantly share code, notes, and snippets.

View IvanAlekseevichPopov's full-sized avatar
🏠
Working from home

Ivan Alekseevich Popov IvanAlekseevichPopov

🏠
Working from home
  • Saint-Petersburg Russia
View GitHub Profile
$this->get('request')->getBasePath();
$this->get('kernel')->getRootDir();
$this->getContainer()->getParameter('kernel.root_dir')
$this->container->getParameter('kernel.root_dir')
if ($request_uri ~* "\/\/") {
rewrite ^/(.*) $scheme://$host/$1 permanent;
}
\* @JMSAnnotation\\Type\("(.*?)"\)
\* @JMSAnnotation\\Type\("integer"\)\n\t \* @JmsAnnotation\\Sinse\("1.0"\)
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation\Since;
@IvanAlekseevichPopov
IvanAlekseevichPopov / .basrc.bash
Last active July 16, 2017 15:04
.bashrc with GOPATH, history comfortable and Instantly stored
alias go="~/go/bin/go"
export GOROOT=/home/ivan/go
export GOPATH=/home/ivan/go/packages
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
export HISTTIMEFORMAT="%h %d %H:%M:%S "
export HISTFILESIZE=10000
shopt -s histappend
PROMPT_COMMAND='history -a'
@IvanAlekseevichPopov
IvanAlekseevichPopov / sublime
Last active March 16, 2017 10:31
sublime settings
Packets:
package Control
BracketHighlighter
SideBarEnhancements
Theme - Spacegray
jsFormat
GoSublime
Fonts:
https://drive.google.com/open?id=0B91XXENgXqcRcXByZWNPSHFVbmc