Skip to content

Instantly share code, notes, and snippets.

View bonafernando's full-sized avatar
🏠
Working from home

Fernando Wolf Bona bonafernando

🏠
Working from home
  • independent contractor providing solutions to international clients
  • Porto Alegre
View GitHub Profile
@bonafernando
bonafernando / Dockerfile
Created May 5, 2016 19:14
Docker with MongoDB in a brand new Ubuntu 16.04
# Pull base image.
FROM ubuntu:16.04
MAINTAINER W.Bona Fernando <fernando.bona@hp.com>
MAINTAINER Agliardi, Douglas <douglas.agliardi@hp.com>
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
RUN echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list
RUN apt-get update && apt-get install -y mongodb-org
@pencilcheck
pencilcheck / _README.md
Last active March 18, 2023 13:15 — forked from shime/_README.md

What is this?

How do you compare date/times in RSpec?

If you do this

expect(Time.now.to_i).to eq Time.new(2014, 4, 2).to_i
@amatellanes
amatellanes / sublime.sh
Last active October 26, 2021 20:34
Install Sublime Text 3 on Ubuntu 14.04 LTS (Trusty Tahr)
sudo add-apt-repository ppa:webupd8team/sublime-text-3;
sudo apt-get update;
sudo apt-get install sublime-text-installer;
sudo ln -s /usr/lib/sublime-text-3/sublime_text /usr/local/bin/sublime;
@hpcorona
hpcorona / squid.conf
Created March 1, 2013 16:06
simple squid3 configuration to allow all to connect to all
#Recommended minimum configuration:
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 0.0.0.0/8 192.168.100.0/24 192.168.101.0/24
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher