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
| const fs = require('fs'); | |
| const replacementList = [ | |
| { | |
| find: /\\u001b\[24m\\n/gmi, | |
| replace: '\n', | |
| }, | |
| { | |
| find: /4m/gmi, | |
| replace: '', |
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
| 1ae79e953ddf490f376049a613205c91ec5332c5a6f3d2dd5161dbdd09daaea0fae10cd9ddfeeee83b0d868db1ce47003e67bc3c1bf44b071c7338a173054037 |
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
| function git-open-pr() { | |
| ref=$(git symbolic-ref HEAD --short) | |
| parent=$(git show-branch | grep '*' | grep -v "$(git rev-parse --abbrev-ref HEAD)" | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//') | |
| repo=$(git remote get-url origin | sed -En "s/git@(.*):(.*)\/(.*).git/https:\/\/\1\/\2\/\3/p") | |
| open "$repo/compare/$parent...$ref?expand=1" | |
| } | |
| # Example alias | |
| alias g:pr='git-open-pr' |
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
| {"tags":[],"lastModified":1517903500045} |
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 ..='cd ..' | |
| alias ...='cd ../..' | |
| alias ....='cd ../../..' | |
| alias .....='cd ../../../..' | |
| alias art='php artisan $*' | |
| alias db:open='mysql -uroot' | |
| alias db:refresh='art migrate:refresh --seed' | |
| alias ls='ls -F $*' | |
| alias ll='ls -l' |
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
| const Fs = require('fs') | |
| const Path = require('path') | |
| const Async = require('async') | |
| const Glob = require('glob') | |
| const CleanPlugin = require('clean-webpack-plugin') | |
| const NodemonPlugin = require("nodemon-webpack-plugin") | |
| const LaravelMix = require('laravel-mix') | |
| class WebpackHelper { |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am usameavci on github. | |
| * I am usameavci (https://keybase.io/usameavci) on keybase. | |
| * I have a public key ASBlvVZtFSk_OMnRUiMComKdu4HSd-GKAu3fttO4HRoGwgo | |
| To claim this, I am signing this object: |
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
| /** | |
| * Get spesific values with keys for objectsin Javascript. | |
| * @param {[string, array]} params Keys in object | |
| * @return {[object]} Filtered object | |
| */ | |
| Object.prototype.only = function(params) { | |
| var obj = this, | |
| tmp = {}, | |
| filters = typeof params == 'string' ? [params] : params; | |
| filters.forEach(function($key) { |

