Similar Posts
Node.js App on AWS EC2 Instance
To get started let’s spin up an Ubuntu 16.4 LTS instance on AWS. After instance is up and running, we need to add port 80 to the instance’s security group inbound rules. There should be at least two ports open: 22, and 80. Now we can ssh into the instance and install Nginx, Node, and…
Install Ruby on MacOS
MacOS comes with already pre-installed system Ruby. However this Ruby, most likely, will be outdated for Shopify development. You don’t want to mess with the pre-installed system Ruby. What you want to do is to install another Ruby using Homebrew and set the $PATH so the Homebrew-installed Ruby takes priority over the macOS system Ruby. https://mac.install.guide/ruby/13 Share…
Ubuntu Command Line Search
Sometimes I have to go through log files searching for a certain error message. The command below will show you log file names and lines where the message was recorded. grep -rnw ‘logs/’ -e ‘Hello World’ To learn more about “grep” command use the following link https://help.ubuntu.com/community/grep Share this article
Adding Virtual Box Bridged Network Adapter to Laravel Homestead
Vagrant allows you to configure bridged network adapter, so your vagrant(homestead) box can be seen on local network. I order to make this possible by adding a line of code to homestear.rb script in scripts folder. I opted to add this line after the following code. if settings.has_key?(“networks”) settings[“networks”].each do |network| config.vm.network network[“type”], ip: network[“ip”], bridge: network[“bridge”]…
Disable .htaccess on Apache
It is possible to disable .htaccess files while using mod_rewrite in virtual host’s configuration file. Options FollowSymLinks AllowOverride None Require all granted RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] Share this article