Skip to content

Instantly share code, notes, and snippets.

View jeffersonsouza's full-sized avatar

Jefferson Souza jeffersonsouza

View GitHub Profile
upstream rancher {
server rancher:8080
}
server {
listen 80;
server_name <domain>;
location / {
proxy_set_header Host $host;
version: '2'
services:
nginx:
container_name: 'nginx'
image: nginx
restart: always
ports:
- 80:80
- 443:443
#! /bin/bash
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew update
# install brew packages
@jeffersonsouza
jeffersonsouza / sites-available_angularjs_html5
Created November 25, 2015 11:05
Nginx config for HTML5 AngularJS applications
server {
listen 8000;
server_name localhost;
root /Users/dmoore/projects/tutorials/angular-phonecat2/.build;
access_log "/Users/dmoore/projects/tutorials/angular-phonecat2/logs/hotili-net.access.log";
error_log "/Users/dmoore/projects/tutorials/angular-phonecat2/logs/hotili-net.error.log";
error_page 404 /app/404.html;
error_page 403 /app/403.html;
wordpress:
image: wordpress
links:
- db:mysql
ports:
- 12301:80
db:
image: mariadb
environment:
@jeffersonsouza
jeffersonsouza / install.sh
Created October 24, 2015 14:11
Install docker Compose on CoreOS
sudo mkdir /opt/
mkdir /opt/bin
curl -L https://github.com/docker/compose/releases/download/1.4.2/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
chmod +x /opt/bin/docker-compose
@jeffersonsouza
jeffersonsouza / gist:be44fcfc213d142090ce
Last active September 22, 2015 10:04 — forked from ravenlp/gist:96a66df5dbc1b96afba7
Angular ng-hide fade in/out animation
.fadable {
transition: 0s linear all;
}
.fadable.ng-hide-remove {
opacity: 0;
display: block !important;
transition: 0.5s linear all;
}
.fadable.ng-hide-remove.ng-hide-remove-active {
opacity: .5;
server {
listen 80;
server_name yoursite.com;
root /var/www/your-site/public;
index index.php index.html index.htm;
error_log /var/log/nginx/ys_error_log;
location / {
@jeffersonsouza
jeffersonsouza / gulpfile.js
Last active August 29, 2015 14:27
Concat K
/**
* Gulp stuff
*/
gulp.task('css', function () {
gulp.src(paths.sass) // something like a array of scss files [ 'default.scss', 'colors.scss', 'user.scss' ]
.pipe(plugins.sass({errLogToConsole: true}))
.pipe(plugins.minifyCss())
.pipe('concat')
.pipe(gulp.dest('./www/application.min.css'));
@jeffersonsouza
jeffersonsouza / val
Created June 18, 2015 19:08
Angular Constants
// app.js
'use strict';
angular.module('myApp',['ionic'])
.constant("config", {
"apiUrl": "http://localhost:3000"
});
// seuController.js
angular.module('myApp')