ssh-copy-id takes your public key, connects to the remote server and inserts your key into the authorized_keys
file.
$ brew install ssh-copy-id
$ ssh-copy-id user@host
SET @r=0; | |
UPDATE sys_template SET sorting = @r:= (@r+128) ORDER BY title ASC; |
(function() { | |
var root = $(document.getElementsByTagName('body')); | |
var watchers = []; | |
var f = function(element) { | |
if (element.data().hasOwnProperty('$scope')) { | |
angular.forEach(element.data().$scope.$$watchers, function(watcher) { | |
watchers.push(watcher); | |
}); | |
} | |
angular.forEach(element.children(), function(childElement) { |
ssh-copy-id takes your public key, connects to the remote server and inserts your key into the authorized_keys
file.
$ brew install ssh-copy-id
$ ssh-copy-id user@host
# This is an annotated subset of the Nginx configuration from our Magento production platform @ www.hypernode.com | |
# See https://www.byte.nl/blog/magento-cacheleak-issue | |
user app; | |
worker_processes 4; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 768; | |
} |
Stability ratings: 0-5 | |
0 - Deprecated. This feature is known to be problematic, and changes are | |
planned. Do not rely on it. Use of the feature may cause warnings. Backwards | |
compatibility should not be expected. | |
1 - Experimental. This feature was introduced recently, and may change | |
or be removed in future versions. Please try it out and provide feedback. | |
If it addresses a use-case that is important to you, tell the node core team. |
What is a vision?
Your vision answers the question "What do I want?" A clear vision help you communicate why you're here and what impact you're going to have.
Your vision should be aligned with the company vision, with your manager's V2MOM, and it should be personal. It should be an honest reflection of your own vision for your own work.
If you manage a team, it should be reflective of the purpose of the team and your collective impact.
You can use Codeception to test Javascript, like DOM manipulations and Ajax requests. Out of the box it can manipulate DOM elements but can't execute Javascript code, like most testing frameworks. But it gives you the option to use a WebDriver, to connect to a headless browser, and mimic a user browsing your website. It gives you some options: Selenium2, ZombieJS and, the easiest to configure, PhantomJS.
This article covers the installation and usage of PhantomJS, and assumes you are using Laravel Homestead, but it will work on any relatively new Debian based distro, like Ubuntu 14.04.
###Install PhantomJS
Just run those commands to install it:
sudo apt-get update
<style> | |
.Alert { | |
padding: 2em; | |
} | |
.Alert-Success { | |
border: 10px solid green; | |
} | |
.Alert-Error { | |
border: 10px solid red; | |
} |
#!/bin/sh | |
BACKUP_BASE_DIR=/var/www/backups/db/ | |
MYSQL_USER="" | |
MYSQL_PWD="" | |
MYSQL_DB="" | |
MYSQL_HOST="localhost" | |
TAR="$(which tar)" |
<?php | |
function iAmLoggedIn() | |
{ | |
// Destroy the previous session | |
if (Session::isStarted()) | |
{ | |
Session::regenerate(true); | |
} | |
else |