├── .github └── FUNDING.yml ├── overlay ├── php │ ├── var │ │ └── www │ │ │ └── default │ │ │ └── public │ │ │ ├── adminer │ │ │ ├── plugins │ │ │ │ ├── index.html │ │ │ │ ├── plugin_ForeignConvention.php │ │ │ │ ├── plugin_EditForeign.php │ │ │ │ └── plugin_EnumOption.php │ │ │ ├── index.php │ │ │ └── adminer.css │ │ │ └── info.php │ └── etc │ │ └── nginx │ │ └── conf.d │ │ └── http_fastcgi.conf ├── mysql │ ├── root │ │ └── .my.cnf │ └── etc │ │ └── mysql │ │ └── conf.d │ │ └── halBox.cnf ├── composer │ └── etc │ │ └── cron.monthly │ │ └── composer ├── clamav │ ├── var │ │ └── quarantine │ │ │ └── eicar.test │ └── etc │ │ └── cron.daily │ │ └── clamav ├── iptables │ └── etc │ │ ├── network │ │ └── if-pre-up.d │ │ │ └── iptables │ │ └── iptables.rules ├── nginx │ ├── etc │ │ └── nginx │ │ │ ├── conf.d │ │ │ ├── http_fastcgi.conf │ │ │ ├── http_gzip_static.conf │ │ │ ├── http_empty_gif.conf │ │ │ ├── http_autoindex.conf │ │ │ ├── http_limit_req.conf │ │ │ ├── http_charset.conf │ │ │ ├── http_gzip.conf │ │ │ ├── http_ssl.conf │ │ │ └── http.conf │ │ │ ├── nginx.conf │ │ │ ├── fastcgi_params │ │ │ ├── sites-available │ │ │ ├── default │ │ │ └── example.com │ │ │ └── mime.types │ ├── var │ │ └── www │ │ │ └── default │ │ │ ├── public │ │ │ ├── favicon.ico │ │ │ ├── robots.txt │ │ │ └── index.html │ │ │ └── error │ │ │ ├── 403.html │ │ │ ├── 404.html │ │ │ ├── 5xx.html │ │ │ └── 405.html │ └── usr │ │ └── local │ │ └── sbin │ │ ├── ngxdissite │ │ ├── ngxensite │ │ ├── ngxgzip │ │ └── ngxsite ├── php5-yar │ └── etc │ │ └── php5 │ │ └── mods-available │ │ └── yar.ini ├── php5-solr │ └── etc │ │ └── php5 │ │ └── mods-available │ │ └── solr.ini ├── php5-http │ └── etc │ │ └── php5 │ │ └── mods-available │ │ └── http.ini ├── rsync │ └── usr │ │ └── local │ │ └── bin │ │ ├── rsync_rm │ │ ├── rsync_cp │ │ └── rsync_mv ├── ntp │ └── etc │ │ └── ntp.conf ├── letsencrypt │ └── etc │ │ ├── letsencrypt │ │ └── letsencrypt.ini │ │ └── cron.monthly │ │ └── letsencrypt ├── postgresql │ └── main │ │ └── pg_hba.conf ├── zsh │ └── root │ │ └── .zshrc ├── php5 │ └── etc │ │ └── php5 │ │ └── mods-available │ │ ├── halBox-dev.ini │ │ └── halBox-prod.ini └── php7 │ └── etc │ └── php │ └── mods-available │ ├── halBox-dev.ini │ └── halBox-prod.ini ├── packages └── ubuntu │ ├── trusty │ ├── go │ │ ├── godep.sh │ │ ├── goxc.sh │ │ ├── glide.sh │ │ ├── godef.sh │ │ ├── godoc.sh │ │ ├── jsonf.sh │ │ ├── devd.sh │ │ ├── errcheck.sh │ │ ├── oracle.sh │ │ ├── penv.sh │ │ ├── godepgraph.sh │ │ ├── goimports.sh │ │ ├── interfacer.sh │ │ ├── gox.sh │ │ └── gometalinter.sh │ ├── virtualbox.sh │ ├── php5 │ │ ├── php5-phpunit.sh │ │ ├── php5-xhprof.sh │ │ ├── php5-composer.sh │ │ ├── php5-librdf.sh │ │ ├── php5-mssql.sh │ │ ├── php5-odbc.sh │ │ ├── php5-pgsql.sh │ │ ├── php5-sqlite.sh │ │ ├── php5-ev.sh │ │ ├── php5-eio.sh │ │ ├── php5-lzf.sh │ │ ├── php5-mysql.sh │ │ ├── php5-rar.sh │ │ ├── php5-yaf.sh │ │ ├── php5-stem.sh │ │ ├── php5-svm.sh │ │ ├── php5-jsmin.sh │ │ ├── php5-stats.sh │ │ ├── php5-uuid.sh │ │ ├── php5-amqp.sh │ │ ├── php5-bitset.sh │ │ ├── php5-chdb.sh │ │ ├── php5-fann.sh │ │ ├── php5-gender.sh │ │ ├── php5-judy.sh │ │ ├── php5-radius.sh │ │ ├── php5-scream.sh │ │ ├── php5-scrypt.sh │ │ ├── php5-ssh2.sh │ │ ├── php5-swoole.sh │ │ ├── php5-yaml.sh │ │ ├── php5-inotify.sh │ │ ├── php5-opcache.sh │ │ ├── php5-sundown.sh │ │ ├── php5-ssdeep.sh │ │ ├── php5-discount.sh │ │ ├── php5-igbinary.sh │ │ ├── php5-sphinx.sh │ │ ├── php5-mailparse.sh │ │ ├── php5-quickhash.sh │ │ ├── php5-libevent.sh │ │ ├── php5-varnish.sh │ │ ├── php5-timezonedb.sh │ │ ├── php5-yar.sh │ │ ├── php5-mogilefs.sh │ │ ├── php5-spidermonkey.sh │ │ ├── php5-doublemetaphone.sh │ │ ├── php5-protocolbuffers.sh │ │ ├── php5-solr.sh │ │ ├── php5-http.sh │ │ ├── php5-tokyo_tyrant.sh │ │ ├── php5-phalcon.sh │ │ └── php5-leveldb.sh │ ├── php7 │ │ ├── php7-phpunit.sh │ │ ├── php7-curl.sh │ │ ├── php7-gd.sh │ │ ├── php7-imap.sh │ │ ├── php7-intl.sh │ │ ├── php7-json.sh │ │ ├── php7-ldap.sh │ │ ├── php7-tidy.sh │ │ ├── php7-pspell.sh │ │ ├── php7-recode.sh │ │ ├── php7-xmlrpc.sh │ │ ├── php7-interbase.sh │ │ ├── php7-memcached.sh │ │ ├── php7-opcache.sh │ │ ├── php7-readline.sh │ │ ├── php7-composer.sh │ │ ├── php7-odbc.sh │ │ ├── php7-pgsql.sh │ │ ├── php7-mysql.sh │ │ ├── php7-sqlite.sh │ │ ├── php7-redis.sh │ │ └── php7-timezonedb.sh │ ├── ps_mem.sh │ ├── mycli.sh │ ├── nginx │ │ └── ngxtop.sh │ ├── mysql │ │ ├── mycli.sh │ │ ├── mysqltuner.sh │ │ ├── tuning-primer.sh │ │ └── innotop.sh │ ├── direnv.sh │ ├── postgresql │ │ └── pgcli.sh │ ├── r.sh │ ├── rkhunter.sh │ ├── imagemagick.sh │ ├── libav-tools.sh │ ├── yui-compressor.sh │ ├── rust.sh │ ├── vmtouch.sh │ ├── rsync.sh │ ├── ruby.sh │ ├── ngrok.sh │ ├── maldet.sh │ ├── iptables.sh │ ├── redis.sh │ ├── dexec.sh │ ├── git.sh │ ├── scout_realtime.sh │ ├── clamav.sh │ ├── exim4.sh │ ├── ntp.sh │ ├── caddy.sh │ ├── sqlite.sh │ ├── zsh.sh │ ├── letsencrypt.sh │ ├── nodejs.sh │ ├── docker.sh │ ├── go.sh │ ├── php5.sh │ ├── postgresql.sh │ ├── php7.sh │ ├── mysql.sh │ ├── mariadb.sh │ └── nginx.sh │ └── trusty.sh ├── .editorconfig ├── LICENSE ├── bin └── mysql_secure_installation.sh ├── README.md └── halBox.sh /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | custom: https://paypal.me/alixaxel 2 | -------------------------------------------------------------------------------- /overlay/php/var/www/default/public/adminer/plugins/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /overlay/php/var/www/default/public/info.php: -------------------------------------------------------------------------------- 1 | /dev/null 2>&1 4 | -------------------------------------------------------------------------------- /overlay/iptables/etc/network/if-pre-up.d/iptables: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | iptables-restore < /etc/iptables.rules && exit 0 4 | -------------------------------------------------------------------------------- /overlay/nginx/etc/nginx/conf.d/http_fastcgi.conf: -------------------------------------------------------------------------------- 1 | # //nginx.org/en/docs/http/ngx_http_fastcgi_module.html 2 | 3 | deny all; 4 | -------------------------------------------------------------------------------- /overlay/php5-yar/etc/php5/mods-available/yar.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php Yar module 2 | ; priority=30 3 | 4 | extension="yar.so" 5 | -------------------------------------------------------------------------------- /overlay/php5-solr/etc/php5/mods-available/solr.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php Solr module 2 | ; priority=30 3 | 4 | extension="solr.so" 5 | -------------------------------------------------------------------------------- /overlay/nginx/etc/nginx/conf.d/http_gzip_static.conf: -------------------------------------------------------------------------------- 1 | # //nginx.org/en/docs/http/ngx_http_gzip_static_module.html 2 | 3 | gzip_static on; 4 | -------------------------------------------------------------------------------- /overlay/nginx/var/www/default/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alixaxel/halBox/HEAD/overlay/nginx/var/www/default/public/favicon.ico -------------------------------------------------------------------------------- /packages/ubuntu/trusty/virtualbox.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | DEBIAN_FRONTEND=noninteractive apt-get -qq install virtualbox-guest-dkms > /dev/null 4 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/go/gometalinter.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | go get github.com/alecthomas/gometalinter && gometalinter --install --update > /dev/null 4 | -------------------------------------------------------------------------------- /overlay/clamav/etc/cron.daily/clamav: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | freshclam && clamscan -ir /var/www/ --log=/var/log/clamscan.log --move=/var/quarantine/ --scan-mail=no 4 | -------------------------------------------------------------------------------- /overlay/nginx/var/www/default/public/robots.txt: -------------------------------------------------------------------------------- 1 | User-Agent: * 2 | Allow: / 3 | 4 | User-Agent: Baiduspider 5 | Disallow: / 6 | 7 | User-Agent: Yahoo Pipes 1.0 8 | Disallow: / 9 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-phpunit.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wget -q https://phar.phpunit.de/phpunit.phar -O /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit 4 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-phpunit.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wget -q https://phar.phpunit.de/phpunit.phar -O /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit 4 | -------------------------------------------------------------------------------- /overlay/php5-http/etc/php5/mods-available/http.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php HTTP module 2 | ; priority=30 3 | 4 | extension="propro.so" 5 | extension="raphf.so" 6 | extension="http.so" 7 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/ps_mem.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wget -q https://raw.github.com/pixelb/ps_mem/master/ps_mem.py -O /usr/local/sbin/ps_mem && chmod +x /usr/local/sbin/ps_mem 4 | -------------------------------------------------------------------------------- /overlay/nginx/etc/nginx/conf.d/http_empty_gif.conf: -------------------------------------------------------------------------------- 1 | # //nginx.org/en/docs/http/ngx_http_empty_gif_module.html 2 | 3 | location = /_.gif { 4 | empty_gif; 5 | expires max; 6 | } 7 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/mycli.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install python-dev python-pip > /dev/null && pip -q install -U setuptools pip > /dev/null && pip -q install mycli > /dev/null 4 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/nginx/ngxtop.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | if [[ ! $(type -P pip) ]]; then 4 | apt-get -qq install python-pip > /dev/null 5 | fi 6 | 7 | pip -q install ngxtop > /dev/null 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/mysql/mycli.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install python-dev python-pip > /dev/null && pip -q install -U setuptools pip > /dev/null && pip -q install mycli > /dev/null 2>&1 4 | -------------------------------------------------------------------------------- /overlay/nginx/etc/nginx/conf.d/http_autoindex.conf: -------------------------------------------------------------------------------- 1 | # //nginx.org/en/docs/http/ngx_http_autoindex_module.html 2 | 3 | autoindex on; 4 | autoindex_exact_size off; 5 | autoindex_localtime off; 6 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/direnv.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wget -q https://github.com/direnv/direnv/releases/download/v2.6.0/direnv.linux-$halBox_Arch -O /usr/local/bin/direnv && chmod +x /usr/local/bin/direnv 4 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/postgresql/pgcli.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install python-dev python-pip > /dev/null && pip -q install -U setuptools pip > /dev/null && pip -q install pgcli > /dev/null 2>&1 4 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/mysql/mysqltuner.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wget -q https://raw.github.com/rackerhacker/MySQLTuner-perl/master/mysqltuner.pl -O /usr/local/bin/mysqltuner && chmod +x /usr/local/bin/mysqltuner 4 | -------------------------------------------------------------------------------- /overlay/rsync/usr/local/bin/rsync_rm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | if [[ $# -eq 1 && -d $1 ]]; then 4 | rsync -av --delete `mktemp -d`/ $1 && rmdir $1 5 | else 6 | echo "Usage: $0 DIRECTORY/" 1>&2 && exit 1 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/r.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install r-base > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | end_of_line = lf 7 | indent_size = 4 8 | indent_style = space 9 | insert_final_newline = true 10 | trim_trailing_whitespace = true 11 | -------------------------------------------------------------------------------- /overlay/rsync/usr/local/bin/rsync_cp: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | if [[ $# -eq 2 && -d $1 && -d $2 ]]; then 4 | rsync -av --ignore-existing $1 $2 5 | else 6 | echo "Usage: $0 SOURCE/ DESTINATION/" 1>&2 && exit 1 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/rkhunter.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install rkhunter > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/imagemagick.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install imagemagick > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/libav-tools.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install libav-tools > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/mysql/tuning-primer.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wget -q https://launchpad.net/mysql-tuning-primer/trunk/1.6-r1/+download/tuning-primer.sh -O /usr/local/bin/tuning-primer && chmod +x /usr/local/bin/tuning-primer 4 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-curl.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-curl > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-gd.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-gd > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-imap.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-imap > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-intl.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-intl > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-json.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-json > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-ldap.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-ldap > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-tidy.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-tidy > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/yui-compressor.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install yui-compressor > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-pspell.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-pspell > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-recode.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-recode > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-xmlrpc.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-xmlrpc > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-interbase.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-interbase > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-memcached.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-memcached > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-opcache.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-opcache > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-readline.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-readline > /dev/null 2>&1 4 | 5 | if [[ $? != 0 ]]; then 6 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/rust.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wget -q https://static.rust-lang.org/rustup.sh -O /tmp/rustup.sh 4 | 5 | if [[ $? == 0 ]]; then 6 | chmod +x /tmp/rustup.sh && /tmp/rustup.sh -y > /dev/null 2>&1 7 | fi 8 | 9 | rm -rf /tmp/rustup.sh 10 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/vmtouch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wget -q https://raw.github.com/hoytech/vmtouch/master/vmtouch.c -O /tmp/vmtouch.c 4 | 5 | if [[ $? == 0 ]]; then 6 | gcc -Wall -O3 -o /usr/local/sbin/vmtouch /tmp/vmtouch.c 7 | fi 8 | 9 | rm -rf /tmp/vmtouch.c 10 | -------------------------------------------------------------------------------- /overlay/rsync/usr/local/bin/rsync_mv: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | if [[ $# -eq 2 && -d $1 && -d $2 ]]; then 4 | rsync -av --ignore-existing --remove-source-files $1 $2 && rsync -av --delete `mktemp -d`/ $1 && rmdir $1 5 | else 6 | echo "Usage: $0 SOURCE/ DESTINATION/" 1>&2 && exit 1 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-xhprof.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php5-xhprof > /dev/null 2>&1 4 | 5 | if [[ $? == 0 && -f /etc/php5/mods-available/xhprof.ini ]]; then 6 | php5enmod xhprof 7 | else 8 | echo -e "\e[1;31mSomething went wrong installing 'php5-xhprof'.\e[0m" 9 | fi 10 | -------------------------------------------------------------------------------- /overlay/ntp/etc/ntp.conf: -------------------------------------------------------------------------------- 1 | # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help 2 | 3 | driftfile /var/lib/ntp/ntp.drift 4 | 5 | restrict ::1 6 | restrict 127.0.0.1 7 | 8 | server 0.pool.ntp.org 9 | server 1.pool.ntp.org 10 | server 2.pool.ntp.org 11 | server 3.pool.ntp.org 12 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-composer.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wget -q http://getcomposer.org/composer.phar -O /usr/local/bin/composer && chmod +x /usr/local/bin/composer && cp -r $halBox_Base/overlay/composer/. / 4 | 5 | if [[ -f /etc/cron.monthly/composer ]]; then 6 | chmod +x /etc/cron.monthly/composer 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-librdf.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php5-librdf > /dev/null 2>&1 4 | 5 | if [[ $? == 0 && -f /etc/php5/mods-available/redland.ini ]]; then 6 | php5enmod redland 7 | else 8 | echo -e "\e[1;31mSomething went wrong installing 'php5-librdf'.\e[0m" 9 | fi 10 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-composer.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wget -q http://getcomposer.org/composer.phar -O /usr/local/bin/composer && chmod +x /usr/local/bin/composer && cp -r $halBox_Base/overlay/composer/. / 4 | 5 | if [[ -f /etc/cron.monthly/composer ]]; then 6 | chmod +x /etc/cron.monthly/composer 7 | fi 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/rsync.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install rsync > /dev/null 2>&1 4 | 5 | if [[ $? == 0 ]]; then 6 | cp -r $halBox_Base/overlay/rsync/. / && chmod +x /usr/local/bin/{rsync_cp,rsync_mv,rsync_rm} 7 | else 8 | echo -e "\e[1;31mSomething went wrong installing '$halBox_package'.\e[0m" 9 | fi 10 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/ruby.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install ruby > /dev/null 4 | 5 | if [[ $? == 0 ]]; then 6 | echo -e "\e[1;32mDave, I'm also installing 'rake'.\e[0m" && apt-get -qq install rake > /dev/null 7 | else 8 | echo -e "\e[1;31mSomething went wrong installing '$halBox_package'.\e[0m" 9 | fi 10 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/ngrok.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wget -q https://dl.ngrok.com/ngrok_2.0.19_linux_$halBox_Arch.zip -O /tmp/ngrok.zip 4 | 5 | if [[ $? == 0 ]]; then 6 | cd /tmp/ && unzip ngrok.zip > /dev/null && mv /tmp/ngrok /usr/local/sbin/ngrok && chmod +x /usr/local/sbin/ngrok 7 | fi 8 | 9 | cd ~ && rm -rf /tmp/ngrok* 10 | -------------------------------------------------------------------------------- /overlay/letsencrypt/etc/letsencrypt/letsencrypt.ini: -------------------------------------------------------------------------------- 1 | agree-tos = True 2 | email = 3 | expand = True 4 | renew-by-default = True 5 | rsa-key-size = 2048 6 | text = True 7 | # register-unsafely-without-email 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/maldet.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wget -q http://www.rfxn.com/downloads/maldetect-current.tar.gz -O /tmp/maldet.tar.gz 4 | 5 | if [[ $? == 0 ]]; then 6 | cd /tmp/ && tar -xf /tmp/maldet.tar.gz && cd /tmp/maldetect-*/ && chmod +x ./install.sh && ./install.sh > /dev/null 2>&1 7 | fi 8 | 9 | cd ~ && rm -rf /tmp/maldet* 10 | -------------------------------------------------------------------------------- /overlay/postgresql/main/pg_hba.conf: -------------------------------------------------------------------------------- 1 | # PostgreSQL Client Authentication Configuration File 2 | # =================================================== 3 | 4 | # TYPE DATABASE USER ADDRESS METHOD 5 | local all postgres peer 6 | host all root 0.0.0.0/0 md5 7 | host all root ::0/0 md5 8 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/iptables.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install iptables > /dev/null 4 | 5 | if [[ $? == 0 ]]; then 6 | cp -r $halBox_Base/overlay/iptables/. / && chmod +x /etc/network/if-pre-up.d/iptables && iptables-restore < /etc/iptables.rules 7 | else 8 | echo -e "\e[1;31mSomething went wrong installing '$halBox_package'.\e[0m" 9 | fi 10 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/redis.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | add-apt-repository -y ppa:chris-lea/redis-server > /dev/null 2>&1 4 | 5 | if [[ $? == 0 ]]; then 6 | apt-get -qq update > /dev/null 7 | fi 8 | 9 | apt-get -qq install redis-server > /dev/null 10 | 11 | if [[ $? != 0 ]]; then 12 | echo -e "\e[1;31mSomething went wrong installing '$halBox_package'.\e[0m" 13 | fi 14 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/dexec.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wget -q https://bintray.com/artifact/download/dexec/release/dexec_1.0.3_linux_$halBox_Arch.tar.gz -O /tmp/dexec.tar.gz 4 | 5 | if [[ $? == 0 ]]; then 6 | cd /tmp/ && mkdir -p /tmp/dexec/ && tar -xf /tmp/dexec.tar.gz -C /tmp/dexec/ && mv /tmp/dexec/*/dexec /usr/local/sbin/dexec && chmod +x /usr/local/sbin/dexec 7 | fi 8 | 9 | cd ~ && rm -rf /tmp/dexec* 10 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/git.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install git > /dev/null 4 | 5 | if [[ $? == 0 ]]; then 6 | echo -e "\e[1;32mDave, I'm also installing 'hub'.\e[0m" && apt-get -qq install ruby > /dev/null && wget -q http://hub.github.com/standalone -O /usr/local/bin/hub && chmod +x /usr/local/bin/hub 7 | else 8 | echo -e "\e[1;31mSomething went wrong installing '$halBox_package'.\e[0m" 9 | fi 10 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/scout_realtime.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | if [[ ! $(type -P gem) ]]; then 4 | apt-get -qq install ruby > /dev/null 5 | fi 6 | 7 | gem install scout_realtime > /dev/null 8 | 9 | if [[ $? == 0 ]]; then 10 | if [[ -f /etc/iptables.rules ]]; then 11 | sed -i -r "s~(--dport 5555) -j DROP~\1 -j ACCEPT~" /etc/iptables.rules && iptables-restore < /etc/iptables.rules 12 | fi 13 | fi 14 | 15 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-mssql.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install freetds-bin freetds-dev tdsodbc unixodbc unixodbc-dev php5-mssql > /dev/null 2>&1 4 | 5 | if [[ $? == 0 ]]; then 6 | if [[ -f /etc/php5/mods-available/mssql.ini ]]; then 7 | echo -e "\e[1;32mDave, I'm disabling the non-PDO 'mssql' extension, you can re-enable it with:\n php5enmod mssql\n\e[0m" && php5dismod mssql 8 | fi 9 | fi 10 | -------------------------------------------------------------------------------- /overlay/nginx/etc/nginx/conf.d/http_limit_req.conf: -------------------------------------------------------------------------------- 1 | # //nginx.org/en/docs/http/ngx_http_limit_req_module.html 2 | 3 | limit_req_zone $binary_remote_addr zone=bot:4M rate=128r/m; 4 | limit_req_zone $binary_remote_addr zone=flood:4M rate=16r/s; 5 | limit_req_status 429; 6 | limit_req_log_level error; 7 | 8 | limit_req zone=bot burst=64 nodelay; 9 | limit_req zone=flood burst=16 nodelay; 10 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-odbc.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php5-odbc > /dev/null 2>&1 4 | 5 | if [[ $? == 0 ]]; then 6 | if [[ -f /etc/php5/mods-available/odbc.ini ]]; then 7 | echo -e "\e[1;32mDave, I'm disabling the non-PDO 'odbc' extension, you can re-enable it with:\n php5enmod odbc\n\e[0m" && php5dismod odbc 8 | fi 9 | else 10 | echo -e "\e[1;31mSomething went wrong installing 'php5-odbc'.\e[0m" 11 | fi 12 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-pgsql.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php5-pgsql > /dev/null 2>&1 4 | 5 | if [[ $? == 0 ]]; then 6 | if [[ -f /etc/php5/mods-available/pgsql.ini ]]; then 7 | echo -e "\e[1;32mDave, I'm disabling the non-PDO 'pgsql' extension, you can re-enable it with:\n php5enmod pgsql\n\e[0m" && php5dismod pgsql 8 | fi 9 | else 10 | echo -e "\e[1;31mSomething went wrong installing 'php5-pgsql'.\e[0m" 11 | fi 12 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-sqlite.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php5-sqlite > /dev/null 2>&1 4 | 5 | if [[ $? == 0 ]]; then 6 | if [[ -f /etc/php5/mods-available/sqlite3.ini ]]; then 7 | echo -e "\e[1;32mDave, I'm disabling the non-PDO 'sqlite3' extension, you can re-enable it with:\n php5enmod sqlite3\n\e[0m" && php5dismod sqlite3 8 | fi 9 | else 10 | echo -e "\e[1;31mSomething went wrong installing 'php5-sqlite'.\e[0m" 11 | fi 12 | -------------------------------------------------------------------------------- /overlay/nginx/usr/local/sbin/ngxdissite: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | if [[ $# -ne 1 ]]; then 4 | echo "Usage: $0 FILE" && exit 1 5 | fi 6 | 7 | if [[ -h /etc/nginx/sites-enabled/$1 ]]; then 8 | rm /etc/nginx/sites-enabled/$1 9 | 10 | if [[ $? == 0 ]]; then 11 | echo -e "Site $1 disabled.\nTo activate the new configuration, you need to run:\n service nginx reload" && exit 0 12 | fi 13 | else 14 | echo "ERROR: Site $1 does not exist!" && exit 1 15 | fi 16 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-odbc.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-odbc > /dev/null 2>&1 4 | 5 | if [[ $? == 0 ]]; then 6 | if [[ -f /etc/php/mods-available/odbc.ini ]]; then 7 | echo -e "\e[1;32mDave, I'm disabling the non-PDO 'odbc' extension, you can re-enable it with:\n phpenmod -v ALL odbc\n\e[0m" && phpdismod -v ALL odbc 8 | fi 9 | else 10 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 11 | fi 12 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-pgsql.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-pgsql > /dev/null 2>&1 4 | 5 | if [[ $? == 0 ]]; then 6 | if [[ -f /etc/php/mods-available/pgsql.ini ]]; then 7 | echo -e "\e[1;32mDave, I'm disabling the non-PDO 'pgsql' extension, you can re-enable it with:\n phpenmod -v ALL pgsql\n\e[0m" && phpdismod -v ALL pgsql 8 | fi 9 | else 10 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 11 | fi 12 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-mysql.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-mysql > /dev/null 2>&1 4 | 5 | if [[ $? == 0 ]]; then 6 | if [[ -f /etc/php/mods-available/mysqli.ini ]]; then 7 | echo -e "\e[1;32mDave, I'm disabling the non-PDO 'mysqli' extension, you can re-enable it with:\n phpenmod -v ALL mysqli\n\e[0m" && phpdismod -v ALL mysqli 8 | fi 9 | else 10 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 11 | fi 12 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-sqlite.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-sqlite > /dev/null 2>&1 4 | 5 | if [[ $? == 0 ]]; then 6 | if [[ -f /etc/php/mods-available/sqlite3.ini ]]; then 7 | echo -e "\e[1;32mDave, I'm disabling the non-PDO 'sqlite3' extension, you can re-enable it with:\n phpenmod -v ALL sqlite3\n\e[0m" && phpdismod -v ALL sqlite3 8 | fi 9 | else 10 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" 11 | fi 12 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/clamav.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install clamav clamav-freshclam > /dev/null 2>&1 4 | 5 | if [[ $? == 0 ]]; then 6 | cp -r $halBox_Base/overlay/clamav/. / 7 | 8 | if [[ -f /etc/cron.daily/clamav ]]; then 9 | chmod +x /etc/cron.daily/clamav 10 | fi 11 | 12 | if [[ -d /var/quarantine/ ]]; then 13 | chmod -R 0600 /var/quarantine/ 14 | fi 15 | else 16 | echo -e "\e[1;31mSomething went wrong installing '$halBox_package'.\e[0m" 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/exim4.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install exim4 > /dev/null 2>&1 4 | 5 | if [[ $? == 0 ]]; then 6 | if [[ -f /etc/exim4/update-exim4.conf.conf ]]; then 7 | sed -i "s~dc_eximconfig_configtype='local'~dc_eximconfig_configtype='internet'~" /etc/exim4/update-exim4.conf.conf 8 | fi 9 | else 10 | echo -e "\e[1;31mSomething went wrong installing '$halBox_package'.\e[0m" 11 | fi 12 | 13 | if [[ -f /etc/init.d/exim4 ]]; then 14 | echo -e "\e[1;32mDave, I'm restarting the 'exim4' service.\e[0m" && service exim4 restart > /dev/null 15 | fi 16 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/ntp.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install ntp > /dev/null 4 | 5 | if [[ $? == 0 ]]; then 6 | cp -r $halBox_Base/overlay/ntp/. / 7 | 8 | if [[ -f /etc/iptables.rules ]]; then 9 | sed -i -r "s~(--dport 123) -j DROP~\1 -j ACCEPT~" /etc/iptables.rules && iptables-restore < /etc/iptables.rules 10 | fi 11 | else 12 | echo -e "\e[1;31mSomething went wrong installing '$halBox_package'.\e[0m" 13 | fi 14 | 15 | if [[ -f /etc/init.d/ntp ]]; then 16 | echo -e "\e[1;32mDave, I'm restarting the 'ntp' service.\e[0m" && service ntp restart > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/caddy.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wget -q "https://caddyserver.com/download/build?os=linux&arch=$halBox_Arch&features=cors,git,ipfilter,jsonp" -O /tmp/caddy.tar.gz 4 | 5 | if [[ $? == 0 ]]; then 6 | cd /tmp/ && mkdir -p /tmp/caddy/ && tar -xf /tmp/caddy.tar.gz -C /tmp/caddy/ && mv /tmp/caddy/caddy /usr/local/sbin/caddy && chmod +x /usr/local/sbin/caddy 7 | 8 | if [[ -f /etc/iptables.rules ]]; then 9 | sed -i -r "s~(--dport 2015) -j DROP~\1 -j ACCEPT~" /etc/iptables.rules && iptables-restore < /etc/iptables.rules 10 | fi 11 | fi 12 | 13 | cd ~ && rm -rf /tmp/caddy* 14 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/mysql/innotop.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wget -q http://innotop.googlecode.com/files/innotop-1.9.0.tar.gz -O /tmp/innotop.tar.gz 4 | 5 | if [[ $? == 0 ]]; then 6 | apt-get -qq install libdbd-mysql-perl libdbi-perl libterm-readkey-perl > /dev/null 7 | 8 | if [[ $? == 0 ]]; then 9 | cd /tmp/ && tar -xf /tmp/innotop.tar.gz && cd /tmp/innotop-*/ && perl ./Makefile.PL > /dev/null && make install > /dev/null 10 | 11 | if [[ -f /usr/local/bin/innotop ]]; then 12 | chmod +x /usr/local/bin/innotop 13 | fi 14 | fi 15 | fi 16 | 17 | cd ~ && rm -rf /tmp/innotop* 18 | -------------------------------------------------------------------------------- /overlay/nginx/usr/local/sbin/ngxensite: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | if [[ $# -ne 1 ]]; then 4 | echo "Usage: $0 FILE" && exit 1 5 | fi 6 | 7 | if [[ -r /etc/nginx/sites-available/$1 ]]; then 8 | if [[ -h /etc/nginx/sites-enabled/$1 ]]; then 9 | echo "Site $1 already enabled." && exit 0 10 | else 11 | ln -s /etc/nginx/sites-available/$1 /etc/nginx/sites-enabled/$1 12 | 13 | if [[ $? == 0 ]]; then 14 | echo -e "Enabling site $1.\nTo activate the new configuration, you need to run:\n service nginx reload" && exit 0 15 | fi 16 | fi 17 | else 18 | echo "ERROR: Site $1 does not exist!" && exit 1 19 | fi 20 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-ev.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/ev.ini ]]; then 6 | echo "" > /etc/php5/mods-available/ev.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/ev.ini > /dev/null && yes "" | pecl -q install -f ev > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/ev.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/ev.ini 12 | else 13 | php5enmod ev 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /overlay/php/var/www/default/public/adminer/index.php: -------------------------------------------------------------------------------- 1 | /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/eio.ini ]]; then 6 | echo "" > /etc/php5/mods-available/eio.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/eio.ini > /dev/null && yes "" | pecl -q install -f eio > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/eio.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/eio.ini 12 | else 13 | php5enmod eio 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-lzf.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/lzf.ini ]]; then 6 | echo "" > /etc/php5/mods-available/lzf.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/lzf.ini > /dev/null && yes "" | pecl -q install -f lzf > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/lzf.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/lzf.ini 12 | else 13 | php5enmod lzf 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-mysql.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php5-mysql > /dev/null 2>&1 4 | 5 | if [[ $? == 0 ]]; then 6 | if [[ -f /etc/php5/mods-available/mysql.ini ]]; then 7 | echo -e "\e[1;32mDave, I'm disabling the non-PDO 'mysql' extension, you can re-enable it with:\n php5enmod mysql\n\e[0m" && php5dismod mysql 8 | fi 9 | 10 | if [[ -f /etc/php5/mods-available/mysqli.ini ]]; then 11 | echo -e "\e[1;32mDave, I'm disabling the non-PDO 'mysqli' extension, you can re-enable it with:\n php5enmod mysqli\n\e[0m" && php5dismod mysqli 12 | fi 13 | else 14 | echo -e "\e[1;31mSomething went wrong installing 'php5-mysql'.\e[0m" 15 | fi 16 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-rar.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/rar.ini ]]; then 6 | echo "" > /etc/php5/mods-available/rar.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/rar.ini > /dev/null && yes "" | pecl -q install -f rar > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/rar.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/rar.ini 12 | else 13 | php5enmod rar 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-yaf.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/yaf.ini ]]; then 6 | echo "" > /etc/php5/mods-available/yaf.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/yaf.ini > /dev/null && yes "" | pecl -q install -f yaf > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/yaf.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/yaf.ini 12 | else 13 | php5enmod yaf 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-stem.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/stem.ini ]]; then 6 | echo "" > /etc/php5/mods-available/stem.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/stem.ini > /dev/null && yes "" | pecl -q install -f stem > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/stem.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/stem.ini 12 | else 13 | php5enmod stem 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-svm.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev libsvm-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/svm.ini ]]; then 6 | echo "" > /etc/php5/mods-available/svm.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/svm.ini > /dev/null && yes "" | pecl -q install -f svm > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/svm.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/svm.ini 12 | else 13 | php5enmod svm 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-jsmin.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/jsmin.ini ]]; then 6 | echo "" > /etc/php5/mods-available/jsmin.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/jsmin.ini > /dev/null && yes "" | pecl -q install -f jsmin > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/jsmin.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/jsmin.ini 12 | else 13 | php5enmod jsmin 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-stats.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/stats.ini ]]; then 6 | echo "" > /etc/php5/mods-available/stats.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/stats.ini > /dev/null && yes "" | pecl -q install -f stats > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/stats.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/stats.ini 12 | else 13 | php5enmod stats 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-uuid.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev uuid-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/uuid.ini ]]; then 6 | echo "" > /etc/php5/mods-available/uuid.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/uuid.ini > /dev/null && yes "" | pecl -q install -f uuid > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/uuid.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/uuid.ini 12 | else 13 | php5enmod uuid 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-amqp.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev librabbitmq-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/amqp.ini ]]; then 6 | echo "" > /etc/php5/mods-available/amqp.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/amqp.ini > /dev/null && yes "" | pecl -q install -f amqp > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/amqp.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/amqp.ini 12 | else 13 | php5enmod amqp 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-bitset.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/bitset.ini ]]; then 6 | echo "" > /etc/php5/mods-available/bitset.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/bitset.ini > /dev/null && yes "" | pecl -q install -f bitset > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/bitset.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/bitset.ini 12 | else 13 | php5enmod bitset 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-chdb.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev libcmph-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/chdb.ini ]]; then 6 | echo "" > /etc/php5/mods-available/chdb.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/chdb.ini > /dev/null && yes "" | pecl -q install -f chdb > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/chdb.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/chdb.ini 12 | else 13 | php5enmod chdb 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-fann.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev libfann-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/fann.ini ]]; then 6 | echo "" > /etc/php5/mods-available/fann.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/fann.ini > /dev/null && yes "" | pecl -q install -f fann > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/fann.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/fann.ini 12 | else 13 | php5enmod fann 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-gender.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/gender.ini ]]; then 6 | echo "" > /etc/php5/mods-available/gender.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/gender.ini > /dev/null && yes "" | pecl -q install -f gender > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/gender.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/gender.ini 12 | else 13 | php5enmod gender 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-judy.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev libjudy-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/judy.ini ]]; then 6 | echo "" > /etc/php5/mods-available/judy.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/judy.ini > /dev/null && yes "" | pecl -q install -f judy > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/judy.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/judy.ini 12 | else 13 | php5enmod judy 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-radius.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/radius.ini ]]; then 6 | echo "" > /etc/php5/mods-available/radius.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/radius.ini > /dev/null && yes "" | pecl -q install -f radius > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/radius.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/radius.ini 12 | else 13 | php5enmod radius 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-scream.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/scream.ini ]]; then 6 | echo "" > /etc/php5/mods-available/scream.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/scream.ini > /dev/null && yes "" | pecl -q install -f scream > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/scream.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/scream.ini 12 | else 13 | php5enmod scream 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-scrypt.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/scrypt.ini ]]; then 6 | echo "" > /etc/php5/mods-available/scrypt.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/scrypt.ini > /dev/null && yes "" | pecl -q install -f scrypt > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/scrypt.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/scrypt.ini 12 | else 13 | php5enmod scrypt 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-ssh2.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev libssh2-1-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/ssh2.ini ]]; then 6 | echo "" > /etc/php5/mods-available/ssh2.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/ssh2.ini > /dev/null && yes "" | pecl -q install -f ssh2 > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/ssh2.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/ssh2.ini 12 | else 13 | php5enmod ssh2 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-swoole.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/swoole.ini ]]; then 6 | echo "" > /etc/php5/mods-available/swoole.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/swoole.ini > /dev/null && yes "" | pecl -q install -f swoole > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/swoole.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/swoole.ini 12 | else 13 | php5enmod swoole 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-yaml.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev libyaml-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/yaml.ini ]]; then 6 | echo "" > /etc/php5/mods-available/yaml.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/yaml.ini > /dev/null && yes "" | pecl -q install -f yaml > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/yaml.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/yaml.ini 12 | else 13 | php5enmod yaml 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /overlay/php/var/www/default/public/adminer/plugins/plugin_ForeignConvention.php: -------------------------------------------------------------------------------- 1 | preg_replace('~^(?:id|by)_|_(?:id|by)$~', '', $field), 14 | 'source' => [$field], 15 | 'target' => ['id'], 16 | ]; 17 | } 18 | 19 | return $result; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-inotify.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/inotify.ini ]]; then 6 | echo "" > /etc/php5/mods-available/inotify.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/inotify.ini > /dev/null && yes "" | pecl -q install -f inotify > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/inotify.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/inotify.ini 12 | else 13 | php5enmod inotify 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-opcache.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/opcache.ini ]]; then 6 | echo "" > /etc/php5/mods-available/opcache.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/opcache.ini > /dev/null && yes "" | pecl -q install -f opcache > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/opcache.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/opcache.ini 12 | else 13 | php5enmod opcache 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-sundown.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/sundown.ini ]]; then 6 | echo "" > /etc/php5/mods-available/sundown.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/sundown.ini > /dev/null && yes "" | pecl -q install -f sundown > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/sundown.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/sundown.ini 12 | else 13 | php5enmod sundown 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-ssdeep.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev libfuzzy-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/ssdeep.ini ]]; then 6 | echo "" > /etc/php5/mods-available/ssdeep.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/ssdeep.ini > /dev/null && yes "" | pecl -q install -f ssdeep > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/ssdeep.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/ssdeep.ini 12 | else 13 | php5enmod ssdeep 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-discount.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/discount.ini ]]; then 6 | echo "" > /etc/php5/mods-available/discount.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/discount.ini > /dev/null && yes "" | pecl -q install -f markdown > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/discount.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/discount.ini 12 | else 13 | php5enmod discount 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-igbinary.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/igbinary.ini ]]; then 6 | echo "" > /etc/php5/mods-available/igbinary.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/igbinary.ini > /dev/null && yes "" | pecl -q install -f igbinary > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/igbinary.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/igbinary.ini 12 | else 13 | php5enmod igbinary 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-sphinx.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev libsphinxclient-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/sphinx.ini ]]; then 6 | echo "" > /etc/php5/mods-available/sphinx.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/sphinx.ini > /dev/null && yes "" | pecl -q install -f sphinx > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/sphinx.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/sphinx.ini 12 | else 13 | php5enmod sphinx 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-mailparse.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/mailparse.ini ]]; then 6 | echo "" > /etc/php5/mods-available/mailparse.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/mailparse.ini > /dev/null && yes "" | pecl -q install -f mailparse > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/mailparse.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/mailparse.ini 12 | else 13 | php5enmod mailparse 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-quickhash.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/quickhash.ini ]]; then 6 | echo "" > /etc/php5/mods-available/quickhash.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/quickhash.ini > /dev/null && yes "" | pecl -q install -f quickhash > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/quickhash.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/quickhash.ini 12 | else 13 | php5enmod quickhash 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /overlay/nginx/etc/nginx/conf.d/http_charset.conf: -------------------------------------------------------------------------------- 1 | # //nginx.org/en/docs/http/ngx_http_charset_module.html 2 | 3 | charset utf-8; 4 | charset_types application/atom+xml 5 | application/javascript 6 | application/json 7 | application/owl+xml 8 | application/rdf+xml 9 | application/rss+xml 10 | application/x-web-app-manifest+json 11 | application/xhtml+xml 12 | application/xml 13 | text/css 14 | text/csv 15 | text/mathml 16 | text/plain 17 | text/vtt; 18 | override_charset off; 19 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-libevent.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev libevent-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/libevent.ini ]]; then 6 | echo "" > /etc/php5/mods-available/libevent.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/libevent.ini > /dev/null && yes "" | pecl -q install -f libevent > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/libevent.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/libevent.ini 12 | else 13 | php5enmod libevent 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-varnish.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev libvarnishapi-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/varnish.ini ]]; then 6 | echo "" > /etc/php5/mods-available/varnish.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/varnish.ini > /dev/null && yes "" | pecl -q install -f varnish > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/varnish.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/varnish.ini 12 | else 13 | php5enmod varnish 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-timezonedb.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/timezonedb.ini ]]; then 6 | echo "" > /etc/php5/mods-available/timezonedb.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/timezonedb.ini > /dev/null && yes "" | pecl -q install -f timezonedb > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/timezonedb.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/timezonedb.ini 12 | else 13 | php5enmod timezonedb 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-yar.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev libcurl4-openssl-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/yar.ini ]]; then 6 | echo "" > /etc/php5/mods-available/yar.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/yar.ini > /dev/null && yes "" | pecl -q install -f yar > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/yar.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/yar.ini 12 | else 13 | cp -r $halBox_Base/overlay/php5-yar/. / && php5enmod yar 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-mogilefs.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev libxml2-dev libneon27-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/mogilefs.ini ]]; then 6 | echo "" > /etc/php5/mods-available/mogilefs.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/mogilefs.ini > /dev/null && yes "" | pecl -q install -f mogilefs > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/mogilefs.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/mogilefs.ini 12 | else 13 | php5enmod mogilefs 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-spidermonkey.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev libmozjs185-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/spidermonkey.ini ]]; then 6 | echo "" > /etc/php5/mods-available/spidermonkey.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/spidermonkey.ini > /dev/null && yes "" | pecl -q install -f spidermonkey > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/spidermonkey.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/spidermonkey.ini 12 | else 13 | php5enmod spidermonkey 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-doublemetaphone.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/doublemetaphone.ini ]]; then 6 | echo "" > /etc/php5/mods-available/doublemetaphone.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/doublemetaphone.ini > /dev/null && yes "" | pecl -q install -f doublemetaphone > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/doublemetaphone.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/doublemetaphone.ini 12 | else 13 | php5enmod doublemetaphone 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-protocolbuffers.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/protocolbuffers.ini ]]; then 6 | echo "" > /etc/php5/mods-available/protocolbuffers.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/protocolbuffers.ini > /dev/null && yes "" | pecl -q install -f protocolbuffers > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/protocolbuffers.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/protocolbuffers.ini 12 | else 13 | php5enmod protocolbuffers 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-solr.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev php5-curl libxml2-dev libcurl4-openssl-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/solr.ini ]]; then 6 | echo "" > /etc/php5/mods-available/solr.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/solr.ini > /dev/null && yes "" | pecl -q install -f solr > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/solr.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/solr.ini 12 | else 13 | cp -r $halBox_Base/overlay/php5-solr/. / && php5enmod solr 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-http.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev libcurl4-openssl-dev libevent-dev libmagic-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/http.ini ]]; then 6 | echo "" > /etc/php5/mods-available/http.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/http.ini > /dev/null && yes "" | pecl -q install -f pecl_http > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/http.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/http.ini 12 | else 13 | cp -r $halBox_Base/overlay/php5-http/. / && php5enmod http 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-tokyo_tyrant.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev pkg-config libtokyotyrant-dev > /dev/null 4 | 5 | if [[ ! -f /etc/php5/mods-available/tokyo_tyrant.ini ]]; then 6 | echo "" > /etc/php5/mods-available/tokyo_tyrant.ini 7 | 8 | pear config-set php_ini /etc/php5/mods-available/tokyo_tyrant.ini > /dev/null && yes "" | pecl -q install -f tokyo_tyrant > /dev/null 9 | 10 | if [[ $(cat /etc/php5/mods-available/tokyo_tyrant.ini | wc -c) -le 1 ]]; then 11 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/tokyo_tyrant.ini 12 | else 13 | php5enmod tokyo_tyrant 14 | fi 15 | 16 | pear config-set php_ini "" > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/sqlite.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wget -q http://www.sqlite.org/2016/sqlite-autoconf-3100200.tar.gz -O /tmp/sqlite-autoconf-3100200.tar.gz 4 | 5 | if [[ $? == 0 ]]; then 6 | cd /tmp/ && tar -xf /tmp/sqlite-autoconf-3100200.tar.gz && cd /tmp/sqlite-autoconf-3100200 && ./configure --enable-fts5 --enable-json1 > /dev/null && make > /dev/null && make install > /dev/null 7 | fi 8 | 9 | cd ~ && rm -rf /tmp/sqlite-autoconf-3100200* 10 | 11 | if [[ -f /etc/init.d/php5-fpm ]]; then 12 | echo -e "\e[1;32mDave, I'm restarting the 'php5-fpm' service.\e[0m" && service php5-fpm restart > /dev/null 13 | fi 14 | 15 | if [[ -f /etc/init.d/php7.0-fpm ]]; then 16 | echo -e "\e[1;32mDave, I'm restarting the 'php7.0-fpm' service.\e[0m" && service php7.0-fpm restart > /dev/null 17 | fi 18 | -------------------------------------------------------------------------------- /overlay/php/etc/nginx/conf.d/http_fastcgi.conf: -------------------------------------------------------------------------------- 1 | # //nginx.org/en/docs/http/ngx_http_fastcgi_module.html 2 | 3 | fastcgi_buffer_size 16K; 4 | fastcgi_buffers 128 16K; 5 | fastcgi_busy_buffers_size 32K; 6 | fastcgi_connect_timeout 30s; 7 | fastcgi_ignore_client_abort off; 8 | fastcgi_index index.php; 9 | fastcgi_intercept_errors on; 10 | fastcgi_keep_conn on; 11 | fastcgi_max_temp_file_size 0; 12 | fastcgi_pass 127.0.0.1:9000; 13 | fastcgi_pass_request_body on; 14 | fastcgi_pass_request_headers on; 15 | fastcgi_read_timeout 60s; 16 | fastcgi_send_timeout 60s; 17 | fastcgi_split_path_info ^(.+[.]php)(/.*)$; 18 | 19 | include /etc/nginx/fastcgi_params; 20 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/zsh.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install zsh > /dev/null 2>&1 4 | 5 | if [[ ! $(type -P git) ]]; then 6 | apt-get -qq install git > /dev/null 7 | fi 8 | 9 | if [[ $? == 0 ]]; then 10 | echo -e "\e[1;32mDave, I'm also installing 'oh-my-zsh'.\e[0m" && git clone -q git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh/ 11 | 12 | if [[ $? == 0 ]]; then 13 | cp -r halBox-master/overlay/zsh/root/. ~/ 14 | 15 | if [[ -n $SUDO_USER ]]; then 16 | chsh -s /bin/zsh "$SUDO_USER" 17 | else 18 | chsh -s /bin/zsh root 19 | fi 20 | 21 | echo -e "\e[1;31mDave, your default sheel is now ZSH - I suggest a reboot.\e[0m" 22 | fi 23 | else 24 | echo -e "\e[1;31mSomething went wrong installing '$halBox_package'.\e[0m" 25 | fi 26 | -------------------------------------------------------------------------------- /overlay/zsh/root/.zshrc: -------------------------------------------------------------------------------- 1 | export ZSH=/root/.oh-my-zsh 2 | export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" 3 | export UPDATE_ZSH_DAYS=30 4 | 5 | ZSH_THEME="ys" 6 | CASE_SENSITIVE="true" 7 | ENABLE_CORRECTION="false" 8 | HYPHEN_INSENSITIVE="false" 9 | COMPLETION_WAITING_DOTS="true" 10 | DISABLE_LS_COLORS="false" 11 | DISABLE_AUTO_TITLE="false" 12 | DISABLE_AUTO_UPDATE="false" 13 | DISABLE_UNTRACKED_FILES_DIRTY="false" 14 | 15 | plugins=(composer docker extract git git-extras history last-working-dir vagrant) 16 | 17 | source $ZSH/oh-my-zsh.sh 18 | 19 | [[ -f /usr/local/bin/direnv ]] && eval "$(direnv hook zsh)" 20 | [[ -f ~/.gvm/scripts/gvm ]] && source ~/.gvm/scripts/gvm 21 | [[ -f /etc/profile.d/go.sh ]] && source /etc/profile.d/go.sh 22 | [[ -f /etc/profile.d/nodejs.sh ]] && source /etc/profile.d/nodejs.sh 23 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-phalcon.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! $(type -P git) ]]; then 6 | apt-get -qq install git > /dev/null 7 | fi 8 | 9 | git clone -q --depth=1 git://github.com/phalcon/cphalcon.git /tmp/php-phalcon/ 10 | 11 | if [[ $? == 0 ]]; then 12 | cd /tmp/php-phalcon/build && ./install > /dev/null 2>&1 13 | 14 | if [[ $? == 0 ]]; then 15 | echo "extension=phalcon.so" > /etc/php5/mods-available/phalcon.ini 16 | fi 17 | fi 18 | 19 | if [[ $(cat /etc/php5/mods-available/phalcon.ini | wc -c) -le 1 ]]; then 20 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/phalcon.ini 21 | else 22 | php5enmod phalcon 23 | fi 24 | 25 | cd ~ && rm -rf /tmp/php-phalcon/ 26 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/letsencrypt.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | if [[ ! $(type -P git) ]]; then 4 | apt-get -qq install git > /dev/null 5 | fi 6 | 7 | git clone -q https://github.com/letsencrypt/letsencrypt ~/.letsencrypt/ 8 | 9 | if [[ $? == 0 ]]; then 10 | cp -r $halBox_Base/overlay/letsencrypt/. / 11 | 12 | if [[ -f /etc/letsencrypt/letsencrypt.ini ]]; then 13 | if [[ $halBox_LetsEncrypt_email == *"@"* ]]; then 14 | sed -i -r "s~^email([[:blank:]]*)=$~email\1= $halBox_LetsEncrypt_email~" /etc/letsencrypt/letsencrypt.ini 15 | else 16 | sed -i -r "s~^# register-unsafely-without-email$~register-unsafely-without-email~" /etc/letsencrypt/letsencrypt.ini 17 | fi 18 | fi 19 | 20 | if [[ -f /etc/cron.monthly/letsencrypt ]]; then 21 | chmod +x /etc/cron.monthly/letsencrypt 22 | fi 23 | fi 24 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-redis.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-dev re2c > /dev/null 2>&1 4 | 5 | if [[ ! $(type -P git) ]]; then 6 | apt-get -qq install git > /dev/null 7 | fi 8 | 9 | git clone -q https://github.com/phpredis/phpredis.git /tmp/php-redis/ 10 | 11 | if [[ $? == 0 ]]; then 12 | cd /tmp/php-redis/ && git checkout -q php7 && phpize > /dev/null && ./configure > /dev/null && make > /dev/null && make install > /dev/null 13 | 14 | if [[ $? == 0 ]]; then 15 | echo "extension=redis.so" > /etc/php/mods-available/redis.ini 16 | fi 17 | fi 18 | 19 | if [[ $(cat /etc/php/mods-available/redis.ini | wc -c) -le 1 ]]; then 20 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" && rm -f /etc/php/mods-available/redis.ini 21 | else 22 | phpenmod -v ALL redis 23 | fi 24 | 25 | cd ~ && rm -rf /tmp/php-redis/ 26 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php7/php7-timezonedb.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php7.0-dev re2c > /dev/null 2>&1 4 | wget -q https://pecl.php.net/get/timezonedb -O /tmp/timezonedb.tar.gz 5 | 6 | if [[ $? == 0 ]]; then 7 | cd /tmp/ && mkdir -p /tmp/timezonedb/ && tar -xf /tmp/timezonedb.tar.gz -C /tmp/timezonedb/ && cd /tmp/timezonedb/timezonedb-*/ && phpize > /dev/null && ./configure > /dev/null && make > /dev/null 2>&1 && make install > /dev/null 8 | 9 | if [[ $? == 0 ]]; then 10 | echo "extension=timezonedb.so" > /etc/php/mods-available/timezonedb.ini 11 | fi 12 | fi 13 | 14 | if [[ $(cat /etc/php/mods-available/timezonedb.ini | wc -c) -le 1 ]]; then 15 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP7_package'.\e[0m" && rm -f /etc/php/mods-available/timezonedb.ini 16 | else 17 | phpenmod -v ALL timezonedb 18 | fi 19 | 20 | cd ~ && rm -rf /tmp/timezonedb* 21 | -------------------------------------------------------------------------------- /overlay/letsencrypt/etc/cron.monthly/letsencrypt: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | halBox_LetsEncrypt_domains=$(ls /etc/letsencrypt/live) 4 | 5 | if [[ ${#halBox_LetsEncrypt_domains[@]} -gt 0 ]]; then 6 | for halBox_LetsEncrypt_domain in $halBox_LetsEncrypt_domains; do 7 | ~/.letsencrypt/letsencrypt-auto certonly -a webroot --config /etc/letsencrypt/letsencrypt.ini --domain $halBox_LetsEncrypt_domain --webroot-path /var/www/$halBox_LetsEncrypt_domain/ > /dev/null 2>&1 8 | 9 | if [[ $? != 0 ]]; then 10 | echo "Unable to renew the SSL certificate for '$halBox_LetsEncrypt_domain'." >> /var/log/cron.letsencrypt.log 11 | else 12 | echo "SSL certificate for '$halBox_LetsEncrypt_domain' renewed successfully." >> /var/log/cron.letsencrypt.log 13 | fi 14 | 15 | rm -rf /var/www/$halBox_LetsEncrypt_domain/.well-known/ 16 | done 17 | 18 | if [[ -f /etc/init.d/nginx ]]; then 19 | service nginx reload > /dev/null 20 | fi 21 | fi 22 | -------------------------------------------------------------------------------- /overlay/nginx/etc/nginx/nginx.conf: -------------------------------------------------------------------------------- 1 | # //calomel.org/nginx.html 2 | 3 | pid /var/run/nginx.pid; 4 | user www-data www-data; 5 | error_log /var/log/nginx/error.log warn; 6 | worker_processes 2; 7 | worker_rlimit_nofile 8192; 8 | 9 | events { 10 | accept_mutex on; 11 | accept_mutex_delay 50ms; 12 | multi_accept off; 13 | worker_connections 2048; 14 | } 15 | 16 | http { 17 | access_log /var/log/nginx/access.log combined buffer=4K flush=1m; 18 | server_names_hash_max_size 64; 19 | 20 | map $http_upgrade $connection_upgrade { 21 | default upgrade; 22 | '' close; 23 | } 24 | 25 | include /etc/nginx/mime.types; 26 | include /etc/nginx/conf.d/http.conf; 27 | include /etc/nginx/sites-enabled/*; 28 | } 29 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/nodejs.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | wget -q https://deb.nodesource.com/gpgkey/nodesource.gpg.key -O - | apt-key add - > /dev/null 4 | 5 | if [[ $? == 0 ]]; then 6 | if [[ ! -f /etc/apt/sources.list.d/nodejs.list ]]; then 7 | echo "deb https://deb.nodesource.com/node_5.x $halBox_OS_Codename main" > /etc/apt/sources.list.d/nodejs.list 8 | fi 9 | 10 | apt-get -qq update > /dev/null 11 | fi 12 | 13 | apt-get -qq install nodejs > /dev/null 2>&1 14 | 15 | if [[ $? == 0 ]]; then 16 | echo -e 'export NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules\n' > /etc/profile.d/nodejs.sh && source /etc/profile.d/nodejs.sh 17 | 18 | for halBox_NodeJS_package in bower browserify coffee-script express forever grunt grunt-cli gulp nixar pm2 yo; do 19 | echo -e "\e[1;32mDave, I'm also installing '$halBox_NodeJS_package'.\e[0m" && npm install --global $halBox_NodeJS_package > /dev/null 2>&1 20 | done 21 | else 22 | echo -e "\e[1;31mSomething went wrong installing '$halBox_package'.\e[0m" 23 | fi 24 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/php5/php5-leveldb.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install php-pear php5-dev re2c libpcre3-dev > /dev/null 4 | 5 | if [[ ! $(type -P git) ]]; then 6 | apt-get -qq install git > /dev/null 7 | fi 8 | 9 | apt-get -qq install libleveldb-dev > /dev/null 10 | 11 | if [[ $(find /usr/lib/ -name libleveldb.so | wc -l) -eq 1 ]]; then 12 | git clone -q https://github.com/reeze/php-leveldb.git /tmp/php-leveldb/ 13 | 14 | if [[ $? == 0 ]]; then 15 | cd /tmp/php-leveldb/ && phpize > /dev/null && ./configure --with-leveldb=$(dirname $(find /usr/lib/ -name libleveldb.so)) > /dev/null && make > /dev/null && make install > /dev/null 16 | 17 | if [[ $? == 0 ]]; then 18 | echo "extension=leveldb.so" > /etc/php5/mods-available/leveldb.ini 19 | fi 20 | fi 21 | fi 22 | 23 | if [[ $(cat /etc/php5/mods-available/leveldb.ini | wc -c) -le 1 ]]; then 24 | echo -e "\e[1;31mSomething went wrong installing '$halBox_PHP5_package'.\e[0m" && rm -f /etc/php5/mods-available/leveldb.ini 25 | else 26 | php5enmod leveldb 27 | fi 28 | 29 | cd ~ && rm -rf /tmp/php-leveldb/ 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2012 Alix Axel 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to 7 | deal in the Software without restriction, including without limitation the 8 | rights to use, copy, modify, merge, publish, distribute, sublicense, 9 | and/or sell copies of the Software, and to permit persons to whom the 10 | Software is furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 | THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 | DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /overlay/nginx/etc/nginx/fastcgi_params: -------------------------------------------------------------------------------- 1 | fastcgi_param CONTENT_LENGTH $content_length; 2 | fastcgi_param CONTENT_TYPE $content_type; 3 | fastcgi_param DOCUMENT_ROOT $document_root; 4 | fastcgi_param DOCUMENT_URI $document_uri; 5 | fastcgi_param GATEWAY_INTERFACE CGI/1.1; 6 | fastcgi_param HTTPS $https if_not_empty; 7 | fastcgi_param PATH_INFO $fastcgi_path_info; 8 | fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; 9 | fastcgi_param QUERY_STRING $query_string; 10 | fastcgi_param REDIRECT_STATUS 200; 11 | fastcgi_param REMOTE_ADDR $remote_addr; 12 | fastcgi_param REMOTE_PORT $remote_port; 13 | fastcgi_param REQUEST_METHOD $request_method; 14 | fastcgi_param REQUEST_URI $request_uri; 15 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 16 | fastcgi_param SCRIPT_NAME $fastcgi_script_name; 17 | fastcgi_param SERVER_ADDR $server_addr; 18 | fastcgi_param SERVER_NAME $server_name; 19 | fastcgi_param SERVER_PORT $server_port; 20 | fastcgi_param SERVER_PROTOCOL $server_protocol; 21 | fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; 22 | -------------------------------------------------------------------------------- /overlay/iptables/etc/iptables.rules: -------------------------------------------------------------------------------- 1 | # //help.ubuntu.com/community/IptablesHowTo 2 | 3 | *filter 4 | :INPUT DROP [0:0] 5 | :FORWARD ACCEPT [0:0] 6 | :OUTPUT ACCEPT [0:0] 7 | 8 | -A INPUT -i lo -j ACCEPT 9 | -A INPUT -m state --state INVALID -j DROP 10 | -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT 11 | 12 | # Pings 13 | -A INPUT -p icmp -m icmp --icmp-type 8 -m limit --limit 1/second -j ACCEPT 14 | -A INPUT -p icmp -m icmp --icmp-type 11 -m limit --limit 1/second -j ACCEPT 15 | 16 | # NTP 17 | -A INPUT -p udp -m udp --dport 123 -j DROP 18 | 19 | # SSH 20 | -A INPUT -p tcp -m tcp --dport 22 -m limit --limit 30/hour --limit-burst 60 -j ACCEPT 21 | 22 | # HTTP/HTTPS 23 | -A INPUT -p tcp -m tcp -m multiport --dports 80,443 -j DROP 24 | 25 | # Caddy 26 | -A INPUT -p tcp -m tcp --dport 2015 -j DROP 27 | 28 | # MySQL 29 | -A INPUT -p tcp -m tcp --dport 3306 -j DROP 30 | 31 | # PostgreSQL 32 | -A INPUT -p tcp -m tcp --dport 5432 -j DROP 33 | 34 | # Scout Realtime 35 | -A INPUT -p tcp -m tcp --dport 5555 -j DROP 36 | 37 | # Redis 38 | -A INPUT -p tcp -m tcp --dport 6379 -j DROP 39 | 40 | # Memcached 41 | -A INPUT -p tcp -m tcp --dport 11211 -j DROP 42 | 43 | # Beanstalk 44 | -A INPUT -p tcp -m tcp --dport 11300 -j DROP 45 | COMMIT 46 | -------------------------------------------------------------------------------- /overlay/mysql/etc/mysql/conf.d/halBox.cnf: -------------------------------------------------------------------------------- 1 | [mysqld] 2 | bind-address = 0.0.0.0 3 | bulk_insert_buffer_size = 4M 4 | character-set-server = utf8 5 | collation-server = utf8_general_ci 6 | concurrent_insert = 2 7 | default_storage_engine = MyISAM 8 | join_buffer_size = 128K 9 | key_buffer_size = 8M 10 | low-priority-updates = 1 11 | lower_case_table_names = 0 12 | max_allowed_packet = 4M 13 | max_connections = 128 14 | max_heap_table_size = 4M 15 | myisam_sort_buffer_size = 8M 16 | net_buffer_length = 1K 17 | preload_buffer_size = 32K 18 | query_cache_limit = 512K 19 | query_cache_min_res_unit = 1K 20 | query_cache_size = 4M 21 | query_cache_type = 1 22 | read_buffer_size = 128K 23 | read_rnd_buffer_size = 128K 24 | skip-external-locking 25 | skip-innodb 26 | skip-name-resolve 27 | skip-networking 28 | sort_buffer_size = 256K 29 | sql_mode = ANSI 30 | table_definition_cache = 512 31 | table_open_cache = 256 32 | thread_cache_size = 2 33 | thread_stack = 128K 34 | tmp_table_size = 4M 35 | -------------------------------------------------------------------------------- /overlay/php/var/www/default/public/adminer/plugins/plugin_EditForeign.php: -------------------------------------------------------------------------------- 1 | "") + get_vals("SELECT " . idf_escape($id) . " FROM " . table($target) . " ORDER BY 1"); 27 | } 28 | 29 | return "" . optionlist($options, $value) . ""; 30 | } 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/docker.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | if [[ $halBox_Bits -eq 64 ]]; then 4 | apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D > /dev/null 2>&1 5 | 6 | if [[ $? == 0 ]]; then 7 | if [[ ! -f /etc/apt/sources.list.d/docker.list ]]; then 8 | echo "deb https://apt.dockerproject.org/repo ubuntu-$halBox_OS_Codename main" > /etc/apt/sources.list.d/docker.list 9 | fi 10 | 11 | apt-get -qq update > /dev/null 12 | fi 13 | 14 | if [[ $(dpkg --compare-versions $halBox_OS_Kernel lt 3.10) ]]; then 15 | echo -e "\e[1;31mDave, I'm upgrading the kernel.\e[0m" && apt-get -qq install linux-image-extra-$halBox_OS_Kernel > /dev/null 16 | fi 17 | 18 | apt-get -qq install docker-engine > /dev/null 19 | 20 | if [[ $? == 0 ]]; then 21 | if [[ -f /etc/default/docker ]]; then 22 | sed -i "s~#DOCKER_OPTS=~DOCKER_OPTS=~" /etc/default/docker 23 | fi 24 | else 25 | echo -e "\e[1;31mSomething went wrong installing '$halBox_package'.\e[0m" 26 | fi 27 | else 28 | echo -e "\e[1;31mDave, '$halBox_package' requires a 64-bit installation.\e[0m" 29 | fi 30 | 31 | if [[ -f /etc/init.d/docker ]]; then 32 | echo -e "\e[1;32mDave, I'm restarting the 'docker' service.\e[0m" && service docker restart > /dev/null 33 | fi 34 | -------------------------------------------------------------------------------- /overlay/nginx/etc/nginx/conf.d/http_gzip.conf: -------------------------------------------------------------------------------- 1 | # //nginx.org/en/docs/http/ngx_http_gzip_module.html 2 | 3 | gzip on; 4 | gzip_buffers 128 4K; 5 | gzip_comp_level 4; 6 | gzip_disable "msie6"; 7 | gzip_http_version 1.0; 8 | gzip_min_length 256; 9 | gzip_proxied any; 10 | gzip_types application/atom+xml 11 | application/javascript 12 | application/json 13 | application/owl+xml 14 | application/rdf+xml 15 | application/rss+xml 16 | application/vnd.ms-fontobject 17 | application/x-bittorrent 18 | application/x-font-otf 19 | application/x-font-ttf 20 | application/x-web-app-manifest+json 21 | application/xhtml+xml 22 | application/xml 23 | application/xml-dtd 24 | image/svg+xml 25 | image/x-icon 26 | text/cache-manifest 27 | text/css 28 | text/csv 29 | text/mathml 30 | text/plain 31 | text/vcard 32 | text/vtt 33 | text/x-component 34 | text/x-markdown; 35 | gzip_vary on; 36 | -------------------------------------------------------------------------------- /packages/ubuntu/trusty/go.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | apt-get -qq install binutils bison gcc git make mercurial > /dev/null 2>&1 4 | wget -q https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer -O - | bash > /dev/null 5 | 6 | if [[ -f ~/.gvm/scripts/gvm ]]; then 7 | source ~/.gvm/scripts/gvm && gvm install go1.4 > /dev/null && gvm use go1.4 > /dev/null && gvm install go1.5.3 > /dev/null && gvm use go1.5.3 --default > /dev/null && gvm uninstall go1.4 > /dev/null 8 | 9 | if [[ $? == 0 ]]; then 10 | mkdir -p ~/Go/{bin/,pkg/,src/} 11 | 12 | if [[ ! -f /etc/profile.d/go.sh ]]; then 13 | echo -e 'export GO15VENDOREXPERIMENT=1\nexport GOROOT_BOOTSTRAP=$GOROOT\nexport GOPATH=$HOME/Go\nexport PATH=$PATH:$GOPATH/bin\n' > /etc/profile.d/go.sh && source /etc/profile.d/go.sh 14 | fi 15 | 16 | for halBox_Go_package in devd errcheck glide godef godep godepgraph godoc goimports gometalinter gox goxc interfacer jsonf oracle penv; do 17 | if [[ -f $halBox_Base/packages/$halBox_OS/$halBox_OS_Codename/go/$halBox_Go_package.sh ]]; then 18 | echo -e "\e[1;32mDave, I'm also installing '$halBox_Go_package'.\e[0m" && source $halBox_Base/packages/$halBox_OS/$halBox_OS_Codename/go/$halBox_Go_package.sh 19 | fi 20 | done 21 | fi 22 | fi 23 | 24 | if [[ ! -d ~/Go/ ]]; then 25 | echo -e "\e[1;31mSomething went wrong installing '$halBox_package'.\e[0m" 26 | fi 27 | -------------------------------------------------------------------------------- /bin/mysql_secure_installation.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/expect -f 2 | 3 | log_user 0 4 | set timeout 3 5 | set password [lindex $argv 0] 6 | 7 | spawn mysql_secure_installation 8 | 9 | expect "Enter current password for root (enter for none):" { send -- "\r"; 10 | expect "OK, successfully used password, moving on..." { 11 | expect "Set root password" { send -- "y\r"; 12 | expect "New password:" { send -- "$password\r"; 13 | expect "Re-enter new password:" { send -- "$password\n"; 14 | expect "Remove anonymous users" { send -- "y\r"; 15 | expect "Disallow root login remotely" { send -- "y\r"; 16 | expect "Remove test database and access to it" { send -- "y\r"; 17 | expect "Reload privilege tables now" { send -- "y\r"; 18 | expect "Thanks for using MySQL!" { 19 | exit 0; 20 | } 21 | } 22 | } 23 | } 24 | } 25 | } 26 | } 27 | } 28 | } 29 | } 30 | 31 | exit 1; 32 | -------------------------------------------------------------------------------- /overlay/php/var/www/default/public/adminer/plugins/plugin_EnumOption.php: -------------------------------------------------------------------------------- 1 |