###SSH into a remote machine###
ssh user@mydomain.com
#or by ip address
ssh user@192.168.1.1
exit: exit
###Install Something###
#If it's a new server, update apt-get first thing
###SSH into a remote machine###
ssh user@mydomain.com
#or by ip address
ssh user@192.168.1.1
exit: exit
###Install Something###
#If it's a new server, update apt-get first thing
| {% if messages %} | |
| <div class="container messages"> | |
| <div class="row"> | |
| <div class="col-md-12"> | |
| {% for message in messages %} | |
| <div class="alert {% if message.tags %} alert-{{ message.tags }}{% endif %}"> | |
| <a class="close" data-dismiss="alert" href="#">×</a> | |
| {{ message }} | |
| </div> | |
| {% endfor %} |
| // Alerts | |
| @include alert-variant($background, $border, $text-color); | |
| // Background Variant | |
| @include bg-variant($parent, $color); | |
| // Border Radius | |
| @include border-top-radius($radius); | |
| @include border-right-radius($radius); | |
| @include border-bottom-radius($radius); |
| { | |
| "env": { | |
| "browser": true, | |
| "node": true, | |
| "es6": true | |
| }, | |
| "plugins": ["react"], | |
| "ecmaFeatures": { |
| /* | |
| Before using make sure you have: | |
| npm install --save-dev gulp gulp-minify-css gulp-concat gulp-uglify gulp-autoprefixer gulp-sass | |
| Make sure to change the directory names in the default watch function to the CSS/SCSS/SASS directories you are using so it reloads | |
| */ | |
| var gulp = require('gulp'), | |
| minifyCSS = require('gulp-minify-css'), | |
| concat = require('gulp-concat') |
| // Implementation in ES6 | |
| function pagination(c, m) { | |
| var current = c, | |
| last = m, | |
| delta = 2, | |
| left = current - delta, | |
| right = current + delta + 1, | |
| range = [], | |
| rangeWithDots = [], | |
| l; |
| function mapValues(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| result[key] = fn(obj[key], key); | |
| return result; | |
| }, {}); | |
| } | |
| function pick(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| if (fn(obj[key])) { |