- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
This file contains 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
# Install linux update, followed by GCC and Make | |
sudo yum -y update | |
sudo yum install -y gcc make | |
# Install Nginx and PHP-FPM | |
sudo yum install -y nginx php-fpm | |
# Install PHP extensions | |
sudo yum install -y php-devel php-mysql php-pdo \ | |
php-pear php-mbstring php-cli php-odbc \ |
This file contains 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
1. Install Xcode, if you haven't already. | |
a. Once installed, run Xcode and accept the license agreement. | |
b. Go into Xcode Prefs (Cmd + ,), go to Downloads, and install "Command Line Tools for Xcode" (or something named similarily) | |
2. Install Homebrew (copy and paste the following into your terminal): | |
```bash | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" |
This file contains 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
# Ccreate a tar archive of the current directory | |
tar --xform s:'./':: -czvf ../myarchive.tar.gz ./ | |
# Recursively Zip a Directory and Files | |
zip -r name_of_your_directory.zip name_of_your_directory |
This file contains 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
https://github.com/dawbarton/pdf2svg | |
http://www.cityinthesky.co.uk/opensource/pdf2svg/ | |
## Install | |
Ubuntu: | |
```sudo apt-get install pdf2svg``` | |
## Usage |
This file contains 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
## List available packages: | |
`yum list available | less` | |
## List installed packages: | |
`yum list installed` |
This file contains 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
Para criar uma instância nova no console AWS e configurar via Forge: | |
## 1. Criar instância na AWS | |
1. Criar instância na versão linux recomendada pelo Forge (Ubuntu) com uma chave ssh (Key Pair) criada previamente na AWS | |
2. Após criada, o login pode ser feito via WinSCP com essa mesma chave e usuário "ubuntu" | |
## 2. Adicionar instância criada no Forge | |
1. Cliar em Add Custom VPS | |
2. Adicionar dados da instância | |
3. Clicar em Criar e copiar dados informados (senha database e provision code) |
This file contains 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
# Configurar uma conta com poucos privilégios para uma elevação sudo | |
Os procedimentos a seguir criam uma conta com poucos privilégios- e uma elevação “sudo” usando opsuser para um nome de usuário. | |
**Para criar um usuário com privilégios baixos** | |
1. Faça logon no computador UNIX ou Linux como root. | |
2. Adicione o usuário: | |
`useradd opsuser` | |
3. Adicione uma senha e confirme-a: | |
`passwd opsuser` |
This file contains 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
<select name="currency"> | |
<option></option> | |
<optgroup label="Principais moedas"> | |
<option value="BRL">Brasil - Real</option> | |
<option value="CAD">Canadá - Dólar canadense</option> | |
<option value="USD">EUA - Dólar</option> | |
<option value="EUR">Euro</option> | |
<option value="AUD">Austrália - Dólar australiano </option> | |
<option value="GBP">Reino Unido - Libra Esterlina</option> | |
</optgroup> |
This file contains 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
insertArr = [ | |
[ | |
'_id' => new \MongoDB\BSON\ObjectId(), | |
'name' => 'teste | |
] | |
]; | |
$collection = $this->mongo->webapp->hosting; | |
$collection->updateOne( | |
['_id' =>new \MongoDB\BSON\ObjectId($hostingId), 'rooms._id' => new \MongoDB\BSON\ObjectId($roomId)], |
OlderNewer