brew install postgresql@14
brew services start postgresql@14
psql postgres
# Optional
cd /usr/local/var/
rm -rf postgres
initdb /usr/local/var/postgres
2019-06-03
Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.
Additional config files:
- puma config file: https://github.com/makigas/makigas/blob/master/config/puma/production.rb
- capistrano deploy file: https://github.com/makigas/makigas/blob/master/config/deploy.rb
- capistrano capfile: https://github.com/makigas/makigas/blob/master/Capfile
Config files here:
- nginx-encrypt.conf -> SSL deployment through let's encrypt (include)
- nginx-makigas.conf -> NGINX site
- systemd-makigas.service -> systemd service
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
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.common.exceptions import ElementClickInterceptedException, NoSuchElementException | |
from time import sleep | |
from selenium.common.exceptions import NoSuchElementException | |
EMAIL = "[email protected]" | |
PASSWORD = "password" |
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
# Extends ................................................................... | |
# Includes .................................................................. | |
# Variables ................................................................. | |
# Fields (If use mongo) ..................................................... | |
# Relationships ............................................................. | |
# Validations ............................................................... | |
# Callbacks ................................................................. | |
# Scopes .................................................................... | |
# Uploaders ................................................................. | |
# Additional config (i.e. accepts_nested_attributes_for etc...) ............. |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
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
HTTP status code symbols for Rails | |
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
Status Code Symbol | |
1xx Informational | |
100 :continue | |
101 :switching_protocols | |
102 :processing |
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
FROM ruby:2.3.1 | |
# Install dependencies | |
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs | |
# Set an environment variable where the Rails app is installed to inside of Docker image: | |
ENV RAILS_ROOT /var/www/app_name | |
RUN mkdir -p $RAILS_ROOT | |
# Set working directory, where the commands will be ran: |
NewerOlder