Skip to content

Instantly share code, notes, and snippets.

View math3vz's full-sized avatar

Matheus Moraes math3vz

  • São Paulo, Brasil
View GitHub Profile
@math3vz
math3vz / docker-ip.sh
Last active February 15, 2017 15:42
Show IP of a docker container
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id
youtube-dl --audio-quality 0 --add-metadata --extract-audio --audio-format mp3 --batch-file musics.txt

Usar component:

<menu
  :items="items"
  :visible="true"
  title="PredictorApp - Teams">
</menu>
@math3vz
math3vz / download-uol-tv-search.php
Created January 3, 2016 09:20
Script in PHP to download an entire UOL TV Search.
<?php
/**
* To run just access it on your server, or run in command line (recommended).
**/
error_reporting(E_ERROR);
ini_set('memory_limit', '-1');
$folder = '/path/to/destination/folder/';
$videosQty = 10;
// url of naruto episodes, its only a example.
@math3vz
math3vz / db_snapshot_using_docker.md
Created December 10, 2015 19:22 — forked from afbio/db_snapshot_using_docker.md
Database's snapshot using Docker

Pull da imagem base para o DB

docker pull mysql:5.5

Pull da imagem a ser usada para extrair o snapshot. Pode ser qualquer outro que contenha o tar

docker pull ubuntu

Cria pasta onde serao salvos os snapshots

mkdir scenes

Criar o container com o DB

$ docker run -d -p 9000:80 -v $(pwd)/workdir:/var/www/html/ matheusmmo/silas