Skip to content

Instantly share code, notes, and snippets.

View ovitor's full-sized avatar

Vitor Carvalho ovitor

  • Fortaleza - Ceará
View GitHub Profile
@ovitor
ovitor / sandbox.sh
Last active February 17, 2022 13:11
kind basic configuration
# this create a simple k8s cluster using
kind create cluster --config sandbox.yml
@ovitor
ovitor / Dockerfile
Created January 25, 2021 13:02
simple dockerfile to use pandoc + latex in a container
FROM archlinux
RUN pacman -Sy
RUN pacman -S --noconfirm \
pandoc \
libffi \
texlive-bin \
texlive-core \
texlive-latexextra \
git
@ovitor
ovitor / netplan-with-vlan
Created February 14, 2020 12:43
exemplo de arquivo de configuracao do netplan com vlan
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
enp63s0:
dhcp4: no
dhcp6: no
@ovitor
ovitor / keybase.md
Last active May 6, 2020 12:29
keybase github verification

Keybase proof

I hereby claim:

  • I am ovitor on github.
  • I am vcml (https://keybase.io/vcml) on keybase.
  • I have a public key ASBXhevlVvL7O3LnWUIwj0lszjuNm-wd3MBRWe68n0IzGAo

To claim this, I am signing this object:

@ovitor
ovitor / output.log
Created December 1, 2017 00:03
caminhos da aplicação
2017-12-01 00:00:05.288 INFO 1744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/hap/iot]}" onto public java.lang.String com.hap.HapVida.controller.DashBoardController.dashboard()
2017-12-01 00:00:05.299 INFO 1744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/hap/iot/filtro]}" onto public java.lang.String com.hap.HapVida.controller.DashBoardController.dashboardFiltro()
2017-12-01 00:00:05.305 INFO 1744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/hap/solicitacao/{id}]}" onto public org.springframework.web.servlet.ModelAndView com.hap.HapVida.controller.DashBoardController.pesquisarSolicitacoes(java.lang.Long)
2017-12-01 00:00:05.307 INFO 1744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/hap/visita/{id}]}" onto public org.springframework.web.servlet.ModelAndView com.hap.HapVida.controller.DashBoardController.pesquisarVisitas(java.lang.Long)
2017-12-01 00:00:05.308 INFO 1744 --- [
@ovitor
ovitor / Makefile
Created November 29, 2017 12:19
master thesis Makefile
TEX = latexmk -f -pdf -shell-escape -interaction=nonstopmode -file-line-error
PANDOC = pandoc -s -S
PREVIEW = open -a /Applications/Preview.app
#PLANTUML = plantuml -tlatex
PLANTUML = plantuml
BASEDIR = `pwd`
all: compile view
echo 'ok'
FROM ubuntu:14.04
MAINTAINER Traun Leyden <traun.leyden@gmail.com>
# A docker container with the Nvidia kernel module and CUDA drivers installed
ENV CUDA_RUN http://developer.download.nvidia.com/compute/cuda/6_5/rel/installers/cuda_6.5.14_linux_64.run
RUN apt-get update && apt-get install -q -y \
wget \
build-essential
@ovitor
ovitor / resized.sh
Created July 3, 2017 17:38
scale and crop image with ffmpeg
#!/bin/bash
for i in *.JPG ; do
ffmpeg -i "$i" -vf "scale=1920:ih*1920/iw, crop=1920:1440" $(basename "${i/.JPG}").jpeg
done
@ovitor
ovitor / .screenrc
Created November 29, 2016 21:41 — forked from joaopizani/.screenrc
A killer GNU Screen Config
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
# huge scrollback buffer
defscrollback 5000
# no welcome message
startup_message off
@ovitor
ovitor / Vagrantfile
Created June 2, 2016 00:33
Vagrantfile to windows machine (modern.ie)
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
# Windows 7 Modern.ie configuration
config.vm.define "win7" do |win7_config|
win7_config.vm.box = "modern.ie/win7-ie11"
win7_config.vm.box_url = "http://aka.ms/vagrant-win7-ie11"
win7_config.vm.boot_timeout = 500