How do I configure a new Ubuntu installation to accept ssh connections?
Credit link
sudo apt-get update
sudo apt-get install openssh-server
How do I configure a new Ubuntu installation to accept ssh connections?
Credit link
sudo apt-get update
sudo apt-get install openssh-server
Reference: http://yeoman.io/learning/deployment.html
Git subtree command
You can also maintain the source and built code on the same branch, and deploy only the dist directory with the git subtree command.
dist
directory from the .gitignore
file. Yeoman projects ignore it by default.dist
directory to your repository:
/* | |
* Join the elements in an javascript array, | |
* but let the last separator be different eg: `and` / `or` | |
* Stackoverflow link: http://stackoverflow.com/questions/15069587/is-there-a-way-to-join-the-elements-in-an-js-array-but-let-the-last-separator-b | |
* Credit: Chris Barr - http://stackoverflow.com/users/79677/chris-barr | |
*/ | |
function formatArray(arr){ | |
var outStr = ""; | |
if (arr.length === 1) { | |
outStr = arr[0]; |
-- ---------- | |
-- http://dev.mysql.com/doc/refman/5.0/en/converting-tables-to-innodb.html | |
-- ---------- | |
SELECT CONCAT('ALTER TABLE ',TABLE_NAME,' ENGINE=InnoDB;') FROM INFORMATION_SCHEMA.TABLES | |
WHERE ENGINE='MyISAM' | |
AND table_schema = 'mydatabase' | |
-- ------- | |
-- To very run |
define(['angular'], function (angular) { | |
'use strict'; | |
return angular.module('app.common.after-render', []) | |
.directive('afterRender', [ '$timeout', function($timeout) { | |
var def = { | |
restrict : 'A', | |
terminal : true, | |
transclude : false, | |
link : function(scope, element, attrs) { |
<!-- | |
Credit: | |
Dave Smith - Deep Dive into Custom Directives - NG-Conf 2014 | |
https://www.youtube.com/watch?v=UMkd0nYmLzY&list=WL&index=24 | |
--> | |
<script type="text/ng-template" | |
id="/partials/my-social-buttons.html"></script> |
#!/bin/bash | |
# Credit goes to jruzafa | |
# stackoverflow link - http://stackoverflow.com/questions/9497869/export-and-import-all-mysql-databases-at-one-time | |
USER="root" | |
PASSWORD="" | |
#OUTPUT="/Users/rabino/DBs" | |
# Parent backup directory |
# Credit: http://www.keyboardninja.eu/linux/find-the-10-largest-directories-in-linux | |
du -BM / | sort -n -r | head -n 10 |
# Credit: http://stackoverflow.com/a/3855359 | |
lsof -i tcp:3000 |
Link - https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md
sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install nodejs