This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It's simple. Just type in: | |
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
I guess that's a bit too long, eh? Let's just make an alias. Copy and paste the line below on your terminal: | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
And every time you need to see your log, just type in | |
git lg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name www.generator; | |
return 301 $scheme://generator$request_uri; | |
} | |
server { | |
listen 80; | |
listen [::]:80; | |
root /home/andrew/projects/generator/public; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Xdebug] | |
zend_extension="/usr/lib/php5/20131226/xdebug.so" | |
xdebug.remote_autostart=on | |
xdebug.remote_enable=1 | |
xdebug.remote_handler=dbgp | |
xdebug.remote_mode=req | |
xdebug.remote_host=127.0.0.1 | |
xdebug.remote_port=9001 | |
xdebug.max_nesting_level=300 | |
xdebug.idekey="PHPSTORM" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# for install docker and docker-compose | |
sudo apt-get update | |
sudo apt-get -y install docker.io docker-compose | |
# open file and write DOCKER_OPTS="--bip 172.17.42.1/16" | |
sudo nano /etc/default/docker | |
# then restart docker service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://editorconfig.org | |
root = true | |
[*] | |
charset = utf-8 | |
indent_style = space | |
indent_size = 4 | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true |