This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| upstream rancher { | |
| server rancher:8080 | |
| } | |
| server { | |
| listen 80; | |
| server_name <domain>; | |
| location / { | |
| proxy_set_header Host $host; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '2' | |
| services: | |
| nginx: | |
| container_name: 'nginx' | |
| image: nginx | |
| restart: always | |
| ports: | |
| - 80:80 | |
| - 443:443 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wordpress: | |
| image: wordpress | |
| links: | |
| - db:mysql | |
| ports: | |
| - 12301:80 | |
| db: | |
| image: mariadb | |
| environment: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 / { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 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')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // app.js | |
| 'use strict'; | |
| angular.module('myApp',['ionic']) | |
| .constant("config", { | |
| "apiUrl": "http://localhost:3000" | |
| }); | |
| // seuController.js | |
| angular.module('myApp') |