Skip to content

Instantly share code, notes, and snippets.

View mustardandrew's full-sized avatar
🐿️
At work

Mustard Andrew mustardandrew

🐿️
At work
  • Ternopil, Ukraine
View GitHub Profile
@mustardandrew
mustardandrew / git log
Created September 21, 2021 13:35
alias for git log
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
@mustardandrew
mustardandrew / nginx.conf
Last active February 26, 2018 07:45
Base configuration for nginx config
server {
server_name www.generator;
return 301 $scheme://generator$request_uri;
}
server {
listen 80;
listen [::]:80;
root /home/andrew/projects/generator/public;
@mustardandrew
mustardandrew / php.ini
Last active August 10, 2021 09:14
Xdebug config
[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"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Notebook</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@mustardandrew
mustardandrew / .ctags
Last active August 6, 2021 12:48
Vim configuration
--langdef=markdown
--langmap=markdown:.mkd
--regex-markdown=/^#[ \t]+(.*)/\1/h,Heading_L1/
--regex-markdown=/^##[ \t]+(.*)/\1/i,Heading_L2/
--regex-markdown=/^###[ \t]+(.*)/\1/k,Heading_L3/
--langdef=css
--langmap=css:.css.less.scss
--regex-css=/^[ \t]*@([A-Za-z0-9_-]+)/@\1/v,var,variables/
--regex-css=/^[ \t]*\.([A-Za-z0-9_-]+)/.\1/c,class,classes/
@mustardandrew
mustardandrew / install_docker.sh
Last active November 21, 2017 09:30
Install and config docker
#!/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
@mustardandrew
mustardandrew / .editorconfig
Last active July 21, 2018 11:36
IDE editor config
# 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