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 | |
use yii\db\ActiveQuery; | |
use yii\db\ActiveRecord; | |
class Account extends ActiveRecord | |
{ | |
public static function tableName() | |
{ | |
return 'account'; | |
} |
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
```bash | |
# Rebuild mp3 file | |
find . -name '*.mp3' | parallel 'ffmpeg -y -i {} -c:a libmp3lame -b:a 128k {.}.temp.mp3 && mv {.}.temp.mp3 {}' | |
# normalize | |
find . -name '*.mp3' | parallel 'mp3gain -a -k {}' | |
# cbr (or find the equivalent flags for ffmpeg and do it in one step) | |
find . -name '*.mp3' | parallel 'lame -m j -b 128 --cbr -q 0 {} {.}.temp.mp3 && mv {.}.temp.mp3 {}' |
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 | |
# | |
# Author: Paris Theofanidis | |
# Purpose: All the steps to create an SSL certificate | |
# | |
if [ -z "$1" ] | |
then | |
echo "Provide the name of the certificate to be generated."; | |
echo "To generate a certificate for " | |
echo " mydomain.test" |
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
# for ZSH users | |
sudo apt-get update | |
sudo apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties | |
sudo apt-get install -y libgdbm-dev libncurses5-dev automake libtool bison libffi-dev | |
# switch to BASH | |
exec bash | |
curl -L https://get.rvm.io | bash -s stable | |
# (if you get error follow the on screen instructions to add the signatures) |
NewerOlder