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
| echo "ANDROID_HOME=~/android-sdk-linux" >> /home/youruser/.bashrc | |
| echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386" >> /home/youruser/.bashrc | |
| echo "PATH=\$PATH:~/android-sdk-linux/tools:~/android-sdk-linux/platform-tools" >> /home/youruser/.bashrc |
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
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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 groupadd docker | |
| sudo gpasswd -a ${USER} docker | |
| sudo service docker restart # in some ubuntu versions use "sudo service docker.io restart" | |
| newgrp docker |
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
| new |
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 add-apt-repository ppa:nginx/stable | |
| sudo apt-get update | |
| sudo apt-get install nginx | |
| # print the nginx version | |
| nginx -v |
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') |
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
| 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
| .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
| 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 |