Skip to content

Instantly share code, notes, and snippets.

@lucianovalenca
lucianovalenca / css_resources.md
Created July 1, 2014 01:33 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 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.

Guides

@lucianovalenca
lucianovalenca / nginx.default.conf
Created October 17, 2016 23:06 — forked from sumardi/nginx.default.conf
Install PHP-FPM, Nginx & MySQL on EC2 with Amazon Linux AMI
# 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 \
@lucianovalenca
lucianovalenca / Cordova for iOS
Created March 24, 2017 00:21 — forked from peteygao/Cordova for iOS
Step by Step guide to installing Cordova for iOS development
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)"
# 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
https://github.com/dawbarton/pdf2svg
http://www.cityinthesky.co.uk/opensource/pdf2svg/
## Install
Ubuntu:
```sudo apt-get install pdf2svg```
## Usage
## List available packages:
`yum list available | less`
## List installed packages:
`yum list installed`
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)
# 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`
<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>
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)],