I hereby claim:
- I am frolki1-dev on github.
- I am frolki1_dev (https://keybase.io/frolki1_dev) on keybase.
- I have a public key ASDN2n3tFjvT3LXwgzPgM7baCu7ELf_9nEeXs84EqRMhEgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
$json = json_decode(file_get_contents('icons.json')); | |
$icons = []; | |
foreach ($json as $class => $icon) { | |
$name = 'fa-' . $class; | |
foreach ($icon->styles as $type) { | |
switch($type) { |
<?php | |
/** | |
* Get the brightness of the color. | |
* The return value is between 0 and 1. | |
* 0 = light | |
* 1 = dark | |
* | |
* @param string $hex The hex code of the color | |
* @return float|int | |
*/ |
#!/bin/sh | |
# Before commit minify the assets | |
yarn run prod | |
# Add files (if has some new files) | |
git add ./public |
#!/bin/bash | |
echo "Setup the permission for Laravel project." | |
echo "Laravel base directory is $1" | |
echo "" | |
echo "Set owner to www-data" | |
chown -R www-data:www-data $1 | |
echo "" | |
echo "Set all files to 644" |
#!/bin/bash | |
# Set variables | |
PROJECT_PATH=$1 | |
SSH_KEY=${2:-~/.ssh/git} | |
LARAVEL_PROJECT=0 | |
GIT_RESET=0 | |
RUN_COMPOSER=0 | |
RUN_NPM=0 |
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\Storage; | |
class GeneratePoliciesFromModel extends Command | |
{ | |
/** |
/** | |
* Put this line in index.php | |
*/ | |
$hostname = gethostname(); | |
if (($d = strpos($hostname, '.')) !== false) { | |
$hostname = substr($hostname, 0, $d); | |
} | |
putenv('APP_ENV=' . $hostname); |
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
class RunFactory extends Command | |
{ | |
/** | |
* The name and signature of the console command. |
$('.dropdown-menu.dropdown-hold-open').click(function(e) { | |
e.stopPropagation(); | |
}); |