$ uname -r
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
alias xy_alias_version='echo xy_alias version 1.44' | |
alias xy_alias_url='echo https://gist.github.com/xy2z/0dad738b1519aed3f67613a6e9e2917a' | |
alias xy_alias_update_linux='wget -nv -O ~/.bash_aliases https://gist.githubusercontent.com/xy2z/0dad738b1519aed3f67613a6e9e2917a/raw/.bash_aliases && source ~/.bash_aliases' | |
alias xy_alias_update_windows='setaliases https://gist.githubusercontent.com/xy2z/0dad738b1519aed3f67613a6e9e2917a/raw/.bash_aliases' | |
alias ll='ls -alh --show-control-chars -F --color $*' | |
alias gl='git log --oneline --all --graph --decorate $*' | |
alias gs='git status $*' | |
alias gd='git diff' | |
alias gds='git diff --staged' |
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
<?php | |
namespace App; | |
use Carbon\Carbon; | |
use Illuminate\Database\Eloquent\Model; | |
class User extends Model | |
{ | |
/** |
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
<?php | |
// Use in the "Post-Receive URLs" section of your GitHub repo. | |
if ( $_POST['payload'] ) { | |
shell_exec( 'cd /srv/www/git-repo/ && git reset --hard HEAD && git pull' ); | |
} | |
?>hi |