This is my take on how to get up and running with NGINX, PHP-FPM, MySQL and phpMyAdmin on OSX Yosemite.
This article is adapted from the original by Jonas Friedmann. Who I just discovered is from Würzburg in Germany. A stonesthrow from where I was born ;)
Make sure you have the latest version of XCode installed. Available from the Mac App Store.
Install the Xcode Command Line Tools:
xcode-select --install
- Do you have an Github account ? If not create one.
- Install required tools
- Latest Git Client
- gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.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
<?php | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); | |
$database = 'db'; | |
$user = 'user'; | |
$pass = 'pass'; | |
$host = 'localhost'; |
A NET parece que só libera o uso de qualquer porta, como a porta 22 de ssh, para pessoa jurídica em seus novos planos (desde 2016).
Para conseguir usar o github por ssh com plano de internet da NET para pessoa física, é necessário:
Criar o arquivo ~/.ssh/config e adicionar:
Host github.com
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
# Passos que o seu Servidor de CI deverá seguir (test/build/deploy) | |
stages: | |
- deploy | |
# nome da tarefa do CI | |
deploy_prod: | |
# Passo a que esta tarefa pertence | |
stage: deploy | |
# definição de comandos necessários para essa tarefa | |
script: |
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
(function () { | |
const timeContainer = document.querySelectorAll( | |
".ytd-thumbnail-overlay-time-status-renderer" | |
); | |
let timeSeconds = 0; | |
for (let i = 0; i < timeContainer.length; i++) { | |
const timeStr = timeContainer[i].innerText; | |
if (!/\d?\d:\d{2}(:\d{2})?/g.test(timeStr)) continue; | |
const timeParts = timeStr.split(":"); |
Open your sudo
file:
sudo vi /etc/pam.d/sudo
Add the following after the first line:
auth sufficient pam_tid.so