This file contains 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\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Support\Facades\Schema; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** |
This file contains 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 Illuminate\Database\Console\Migrations; | |
use Illuminate\Console\Command; | |
use Nwidart\Modules\Facades\Module; | |
class BaseCommand extends Command | |
{ | |
/** |
This file contains 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
# You may need this after permission errors | |
# when you move a repository from a user to another one. | |
# Removing hidden flags | |
sudo chflags -R nouchg ./git/* | |
# Set the current user as owner | |
sudo chown -R $(whoami) ./git/* |
This file contains 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
# Some Servers doesnt encode the files in utf-8 correctly even if they look like correct. | |
# Happens mostly if you upload files from mac to unix. | |
# this solve all problems. | |
convmv -f utf-8 -t utf-8 --nfc -r . --notest --replace |
This file contains 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 | |
/* | |
Project: WP Helpers for ... | |
Author: Gkiokan Sali | |
Date: 10.07.2017 | |
*/ | |
class Helpers { | |
/* |
This file contains 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
var magic = { | |
active : false, | |
password : 'aaaa79b9a0437a2e461c6803ffdf6a63', | |
text : [ | |
"888888888888 88 88 88 88 88 ,ad8888ba, 88 88 88 ", | |
" 88 88 \"\" \"\" 88 88 d8\"' `\"8b 88 \"\" 88 ", | |
" 88 88,dPPYba, 88 ,adPPYba, 88 ,adPPYba, 88,dPYba,,adPYba, ,adPPYYba, ,adPPYb,88 ,adPPYba, 88,dPPYba, 8b d8 88 88 ,d8 88 ,adPPYba, 88 ,d8 ,adPPYYba, 8b,dPPYba, ", | |
" 88 88P' \"8a 88 I8[ \"\" 88 I8[ \"\" 88P' \"88\" \"8a \"\" `Y8 a8\" `Y88 a8P_____88 88P' \"8a `8b d8' 88 |
This file contains 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 | |
/* | |
Project: Autoload function files | |
Author: Gkiokan Sali | |
Date: 25.08.2017 | |
Comment: Allows you to include_once files from array only. | |
*/ | |
// Declare the function itself when it is not defined anywhere else | |
if(!is_callable('autoload_function_files')): |
This file contains 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
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} ^domain\.com$ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !^/wp-admin | |
RewriteCond %{REQUEST_URI} !^/wp-json | |
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] |
This file contains 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
echo " > Loading Aliases " | |
# Basics | |
alias ..="cd .." | |
alias lsa="ls -al" | |
alias swatch="sass --watch " | |
alias sfull="sass --watch sass:css --style=compressed" | |
alias sf="sfull" | |
alias m="~/.dotfiles/mount.sh" | |
alias s="source ~/.dotfiles/server.sh" |
This file contains 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
let blob = new Blob([this.stream], { type: 'application/csv' } ) | |
let link = document.createElement('a') | |
link.href = window.URL.createObjectURL(blob) | |
link.download = this.get_download_name() | |
link.click() |