-
Install xcode command line tools
xcode-select --install
-
If you are on a M1 / Apple Silicon chip, install rosetta2
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # docker | |
| wget -q -O - https://get.docker.io/gpg | apt-key add - | |
| echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list | |
| apt-get update -qq; apt-get install -q -y --force-yes lxc-docker | |
| # Add vagrant user to the docker group | |
| usermod -a -G docker vagrant | |
| # packer | |
| apt-get install unzip | |
| wget https://dl.bintray.com/mitchellh/packer/0.5.2_linux_amd64.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install build-essential zlib1g-dev libreadline-dev libssl-dev libcurl4-openssl-dev | |
| apt-get -y install git-core | |
| # Install rbenv | |
| git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
| # Add rbenv to the path: | |
| echo '# rbenv setup' > /etc/profile.d/rbenv.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aaron | |
| abacus | |
| abandon | |
| abandoned | |
| abandoning | |
| abandonment | |
| abandons | |
| abate | |
| abatement | |
| abba |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "http://json-schema.org/schema#", | |
| "type": "object", | |
| "definitions": { | |
| "empty": { | |
| "type": "string", | |
| "maxLength": 0 | |
| }, | |
| "intOrEmpty": { | |
| "oneOf": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # BEGIN Cache Enabler | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| # set blog sub path | |
| SetEnvIf Request_URI "^(.*)$" SUB_PATH=/app/cache/cache-enabler/ | |
| # set Cache Enabler path | |
| SetEnvIf Request_URI "^(.*)$" CE_PATH=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -k -w " time_namelookup: %{time_namelookup}\n\ | |
| time_connect: %{time_connect}\n\ | |
| time_appconnect: %{time_appconnect}\n\ | |
| time_pretransfer: %{time_pretransfer}\n\ | |
| time_redirect: %{time_redirect}\n\ | |
| time_starttransfer: %{time_starttransfer}\n\ | |
| ----------\n\ | |
| time_total: %{time_total}\n" -o /dev/null -s "$URL" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # supress php errors | |
| php_flag display_startup_errors off | |
| php_flag display_errors off | |
| php_flag html_errors off | |
| # enable PHP error logging | |
| php_flag log_errors on | |
| php_value error_log /home/path/public_html/domain/PHP_errors.log | |
| # prevent access to PHP error log | |
| <Files PHP_errors.log> | |
| Order allow,deny |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Apache Server Configs v3.2.1 | MIT License | |
| # https://github.com/h5bp/server-configs-apache | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| # RewriteCond %{HTTP_HOST} !^$ | |
| # RewriteCond %{HTTP_HOST} !^www\. [NC] | |
| # # RewriteCond %{HTTPS}s ^on(s)| | |
| # # RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
Unfortunately nodejs does not provide compiled binaries for all nodejs version on arm64 at the moment. And propably never will. Only starting with version 15, you can easily install nodejs on arm64 without having to got through a lenghty compilation.
Additionally, not all node modules support arm64. Especially node-sass does not have arm64 support as of now.
With rosetta, however, we can run most nodejs applications successfully.
OlderNewer