Skip to content

Instantly share code, notes, and snippets.

View embs's full-sized avatar

Matheus Santana embs

View GitHub Profile
start = Step.create(name: 'Saudações, aventureiro!',
description: 'Cuidado por onde anda. Esta terra
está repleta de abismos e feras perigosas.')
precipice = Step.create(name: 'Você caiu num precipício :(',
description: 'Mais sorte na próxima vez...')
dragon = Step.create(name: 'Um dragão te tostou :(',
description: 'Nem todo dia é dia de caçador.')
@embs
embs / Gemfile
Last active October 19, 2018 14:49
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.3.1'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.1'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use Puma as the app server
@embs
embs / Building images with Docker.md
Created June 23, 2017 14:31
Adventures In Containers Land

Start with Docker

I've started trying stuff within my hosting machine so I'd more confidently build an image later. It didn't pay off. Just type inside the Dockerfile instead of the terminal (shell).

Give apprentice steps

Nevermind the [state of the art][minimize-layers] when you're starting off:

@embs
embs / .aREADME.md
Last active June 24, 2017 00:29
An epic battle CSP specification
@embs
embs / 2017.1
Last active March 18, 2017 14:06
IN1077 AVALIAÇÃO DE DESEMPENHO DE SISTEMAS
IN1112 ESPECIFICAÇÃO DE SISTEMAS DISTRIBUÍDOS
IN1118 PLATAFORMAS DE DISTRIBUIÇÃO
IN1119 PRINCÍPIOS E TÉCNICAS DA ANÁLISE ESTATÍSTICA EXPERIMENTAL
IN1030 SEMINÁRIOS
@embs
embs / mp42gif.bash
Last active July 14, 2020 17:10
Mp4 to GIF
mkdir frames
ffmpeg -i screencast.mp4 -r 5 'frames/frame-%03d.jpg'
cd frames
convert -delay 20 -loop 0 -layers Optimize *.jpg myimage.gif
@embs
embs / main.cpp
Created April 10, 2014 17:54
Realidade Virtual
/****************************************************
OpenCV Base
Voxar Labs
Informatics Center - CIn
Federal University of Pernambuco - UFPE
http://www.cin.ufpe.br/voxarlabs
@author Rafael Roberto (rar3@cin.ufpe.br)
*****************************************************/
@embs
embs / grails-test-passed.sh
Created July 24, 2013 16:03
RGMS Grails testes passam ao utilizar chromedriver do Linux disponível em http://code.google.com/p/chromedriver/downloads/list
embs@duff ~/Code/rgms (master) $ grails -Dgeb.env=chrome -Dwebdriver.chrome.driver="/home/embs/Downloads/chromedriver" test-app functional:cucumber Record.feature --stacktrace
| Server running. Browse to http://localhost:8080/rgms
| Running 8 cucumber tests...
| Completed 8 cucumber tests, 0 failed in 57598ms
| Server stopped
| Tests PASSED - view reports in /home/embs/Code/rgms/target/test-reports
@embs
embs / grails-tests-fail.sh
Created July 24, 2013 16:01
RGMS Grails testes falham ao utilizar o chromedriver do Linux presente no projeto
embs@duff ~/Code/rgms (master) $ grails -Dgeb.env=chrome -Dwebdriver.chrome.driver="/home/embs/Code/rgms/chromedrivers/chromedriverlinux32" test-app functional:cucumber Record.feature --stacktrace
| Server running. Browse to http://localhost:8080/rgms
| Running 8 cucumber tests...
geb.driver.DriverCreationException: failed to create driver from callback 'script1374681497705835008888$_run_closure1@19d9a63'
at geb.driver.CallbackDriverFactory.getDriver(CallbackDriverFactory.groovy:35)
at geb.driver.CachingDriverFactory$_getDriver_closure3.doCall(CachingDriverFactory.groovy:80)
at geb.driver.CachingDriverFactory$SimpleCache.get(CachingDriverFactory.groovy:30)
at geb.driver.CachingDriverFactory.getDriver(CachingDriverFactory.groovy:79)
at geb.Configuration.createDriver(Configuration.groovy:306)