Setting Up Ubuntu 18.04 as Rails ServerOctober 04, 2018 |
Assuming you're logged in as root add these users and login as "not root."
adduser deploy
adduser [yourname] #optionally
vim /etc/group
# add your users to the sudo group like so:
sudo:x:27:isaac,deploy
vim /etc/ssh/sshd_config
# add to file or if they exist set the flags to no.
How to safely remove Byte Order Marks (BOM) from files created on windowsOctober 15, 2017 |
If you read enough files created on a windows box you'll eventually run into this. ""\xEF\xBB\xBFyour expected string"
instead of "your expected string"
. I recently ran into again while parsing some csv files exported in windows. In order to parse the string you'll need to remove what is called a Byte Order Mark.
Just search for "\xEF\xBB\xBF"
and remove it.
Setting up MacOS Sierra for Rails DevelopmentDecember 15, 2016 |
One of the only differences I've noticed is installing mysql is slightly different.
Install xcode.
xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew update
brew install rbenv ruby-build openssl
Ubuntu 16.04 Rails/Nginx/Passenger/MariaDB ServerOctober 25, 2016 |
Assuming you're logged in as root add these users and login as "not root."
adduser deploy
adduser [yourname] #optionally
vim /etc/group
# add your users to the sudo group like so:
sudo:x:27:isaac,deploy
vim /etc/ssh/sshd_config
# add to file or if they exist set the flags to no.
Useful SSH Server Conf TricksApril 24, 2016 |
/etc/ssh/sshd_conf
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no
sudo service ssh restart
ChallengeResponseAuthentication yes
PasswordAuthentication yes
UsePAM yes
/etc/ssh/ssh_config