#GIT
- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
@for $i from 1 through 20 { | |
$number: $i * 5; | |
.fs-#{$number} { | |
font-size: $number + px; | |
font-size: $number / 16 + rem; | |
} | |
} |
import socket from 'socket.io' | |
/** | |
* @type {socket} | |
*/ | |
const io = socket() | |
/** | |
* @param {number} code dsadsad as | |
* @param {socket} socket - dsads dsad as |
version: '2' | |
services: | |
mysql: | |
image: mysql:5.7 | |
volumes: | |
- ./database:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: root | |
command: --character-set-server=utf8 --collation-server=utf8_unicode_ci | |
cpu_shares: 30 |
export class EventManager { | |
constructor () { | |
/** | |
* @type {{ [name:string]: Array<Function> }} | |
*/ | |
this.events = {} | |
} | |
/** | |
* @param {string} name |
stages: | |
- test | |
phpunit: | |
stage: test | |
image: php:7.1-cli | |
only: | |
- master | |
script: | |
- apt-get update |
#!/bin/sh | |
mysqldump -u root -pmysql123 –all-databases –routines| gzip > /root/MySQLDB_`date ‘+%m-%d-%Y’`.sql.gz | |
mysqldump -h 172.16.21.3 -u root -pmysql123 –all-databases –routines | gzip > /root/MySQLDB.3_`date ‘+%m-%d-%Y’`.sql.gz | |
#now create cron script smth like this | |
#crontab -e | |
#30 15 * * * /root/MySQLdump.sh 2>&1>> /root/MySQLdump.log | |
#The above will dump the database every day at 15:30. |
type Cliente { | |
id: number, | |
cpfcnpj: number, | |
nome: string, | |
descricao?: string, | |
tipo?: 'privado' | 'publico', // --> enum | |
responsavel?: cliente, // alto referencia, não disponível inicialmente | |
observacoes?: string, // informações adicionais sobre o cliente | |
notificacoes: Array<string> | |
endereco?: string // no futuro daria para sugerir a um cliente onde anunciar baseado em sua localizaçao |
# Simple, scrappy TCP DNS server in Ruby (with protocol annotations) | |
# By Peter Cooper | |
# | |
# MIT license | |
# | |
# * Not advised to use in your production environment! ;-) | |
# * Requires Ruby 1.9 | |
# * Supports A and CNAME records | |
# * See http://www.ietf.org/rfc/rfc1035.txt for protocol guidance | |
# * All records get the same TTL |