Skip to content

Instantly share code, notes, and snippets.

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

Maicon Henrique maiconkcond

🏠
Working from home
View GitHub Profile
@jacksonpires
jacksonpires / escamboapp-https
Last active March 1, 2019 05:42
Arquivo de Configuração NGINX/Site (/etc/nginx/sites-enabled/escamboapp) com HTTPS
upstream escamboapp {
server unix:/tmp/escamboapp.sock fail_timeout=0;
}
server {
listen 80;
server_name example.com;
return 301 https://$host$request_uri;
}
@indiesquidge
indiesquidge / subdomain-localhost-rails-5.md
Created January 19, 2016 07:42
how to access subdomains locally with Rails 5

Subdomaining Localhost with Rails 5

I've been following this blog post on how to set up an api-only Rails 5 application. One of the sections talks about creating a subdomain for your api

Rails.application.routes.draw do
  constraints subdomain: "api" do
    scope module: "api" do
@JunichiIto
JunichiIto / alias_matchers.md
Last active September 13, 2024 12:45
List of alias matchers in RSpec 3

This list is based on aliases_spec.rb.

You can see also Module: RSpec::Matchers API.

matcher aliased to description
a_truthy_value be_truthy a truthy value
a_falsey_value be_falsey a falsey value
be_falsy be_falsey be falsy
a_falsy_value be_falsey a falsy value
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active September 21, 2024 08:06
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname