See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
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: |
require 'sidekiq/api' | |
# 1. Clear retry set | |
Sidekiq::RetrySet.new.clear | |
# 2. Clear scheduled jobs | |
Sidekiq::ScheduledSet.new.clear |
#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.
Run the following commands in sequence.
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
The contents of this article have moved to a new, happier home https://aka.ms/Redis/DataLoss
#Laravel 5 Simple ACL manager
Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.
If the user has a 'Root' role, then they can perform any actions.
Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php
Deixe algumas dicas para quem está iniciando! |
---|
Estudar e Praticar bastante, é o essencial |
Estude bastante. |
No início é assim mesmo. Depois vc vai se acostumando |
estudar... |
Estudar diariamente, comparecer a eventos e encontros e não ter medo de dizer que não sabe resolver determinado problema para mascarar deficiencias |
Hoje em dia não, mas quando comecei tive dificuldades em saber que tipo de empresa contratava profissionais web. Enviava curriculos em fábricas, empresas com nomes grandes, pois achava que teria um setor de TI onde eu poderia trabalhar. Acredito que o melhor lugar para quem está iniciando são agências, onde ele terá contato com vários tipos de profissionais e poderá pegar uma boa experiência. Também é importante conhecer pessoas, ainda que não pessoalmente, mas sempre participar de grupos e comunidades open source para ficar mais inteirado das tecnologias e aprender mais. Se eu tivesse conhecido comunidades open source antes, com certeza poderia estar em um nível muito mais ava |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs