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 | |
cmd="./letsencrypt-auto certonly --webroot -w" | |
if [ ! -z $1 ] | |
then | |
# CHANGE THIS! | |
source /path/to/configs/$1 | |
cmd="$cmd $webroot" | |
for d in "${domains[@]}" |
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
is-up() { | |
is_up_url="http://isitup.org/$1.json" | |
is_up_json=$(curl -s ${is_up_url}) | |
is_up_status=$(expr "${is_up_json}" : '.*"status_code": \([0-9]\)') | |
if [ ${is_up_status} -eq 1 ]; | |
then | |
echo -e "\e[32m✓\e[0m \e[37m$1\e[0m \e[32mis up\e[0m" | |
else | |
echo -e "\e[31m×\e[0m \e[37m$1\e[0m \e[31mis down\e[0m" |
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
namespace danaketh/twig/ext; | |
use Yii; | |
use yii\helpers\Html; | |
use yii\widgets\ActiveForm; | |
class TwigActiveForm extends \Twig_Extension | |
{ | |
/** | |
* {@inheritdoc} |