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
# 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 |
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
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 |
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
#!/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. |
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
stages: | |
- test | |
phpunit: | |
stage: test | |
image: php:7.1-cli | |
only: | |
- master | |
script: | |
- apt-get update |
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
export class EventManager { | |
constructor () { | |
/** | |
* @type {{ [name:string]: Array<Function> }} | |
*/ | |
this.events = {} | |
} | |
/** | |
* @param {string} name |
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
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 |
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
import socket from 'socket.io' | |
/** | |
* @type {socket} | |
*/ | |
const io = socket() | |
/** | |
* @param {number} code dsadsad as | |
* @param {socket} socket - dsads dsad as |
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
@for $i from 1 through 20 { | |
$number: $i * 5; | |
.fs-#{$number} { | |
font-size: $number + px; | |
font-size: $number / 16 + rem; | |
} | |
} |