Skip to content

Instantly share code, notes, and snippets.

View metemaddar's full-sized avatar
🎯
Focusing

Mohammad Etemaddar metemaddar

🎯
Focusing
View GitHub Profile
<?php
$params = require(__DIR__ . '/params.php');
$db = require(__DIR__ . '/db.php');
$config = [
'defaultRoute' => 'site/login',
'id' => 'basic',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
@metemaddar
metemaddar / compare.sh
Last active October 18, 2022 13:27
compare.sh
#!/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)