Skip to content

Instantly share code, notes, and snippets.

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

Arthur Barros arthurbarros

🏠
Working from home
View GitHub Profile
@arthurbarros
arthurbarros / app.css
Created February 12, 2017 21:43 — forked from koba04/app.css
socket.io chat sample by vue.js http://socket.io/get-started/chat/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font: 13px Helvetica, Arial;
}
@arthurbarros
arthurbarros / screen-crash-course.md
Created January 24, 2017 17:24 — forked from andrewsardone/screen-crash-course.md
GNU Screen Crash Course

GNU Screen Crash Course

Introduction

A real quick GNU screen crash course with the key features I use.

man screen

  • Emulates terminals in a full-screen window manager
  • Detachable, so shell sessions aren't attached to a login process
@arthurbarros
arthurbarros / nginx.conf
Created May 11, 2016 03:38 — forked from atma/nginx.conf
Nginx + nodejs + socket.io websockets
# Add to nginx.conf http section
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
@arthurbarros
arthurbarros / docker-create-swarm.sh
Created March 29, 2016 03:22 — forked from lukemadera/docker-create-swarm.sh
jwilder/nginx-proxy using Compose + Swarm + Machine attempt 1
#!/bin/bash
set -e
if [ -z "$DIGITALOCEAN_ACCESS_TOKEN" ]; then
echo >&2 "ERROR: You must export DIGITALOCEAN_ACCESS_TOKEN"
exit 1
fi
docker pull swarm > /dev/null