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 | |
$params = require(__DIR__ . '/params.php'); | |
$db = require(__DIR__ . '/db.php'); | |
$config = [ | |
'defaultRoute' => 'site/login', | |
'id' => 'basic', | |
'basePath' => dirname(__DIR__), | |
'bootstrap' => ['log'], |
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
#!/bin/bash | |
# Original reference: https://www.networkworld.com/article/3538471/how-to-compress-files-on-linux-5-ways.html | |
# ask user for filename | |
echo -n "filename> " | |
read filename | |
# you need this because some commands will replace the original file | |
cp $filename $filename-2 | |
# clean up first (in case previous results are still available) |