###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
function ProviderComposer({ contexts, children }) { | |
return contexts.reduceRight( | |
(kids, parent) => | |
React.cloneElement(parent, { | |
children: kids, | |
}), | |
children | |
); | |
} |
###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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="HINCHAS Iframe"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>HINCHAS Iframe</title> | |
<style id="jsbin-css"> | |
body, | |
html { |
function randomErrors(){ | |
var errorMessages = ['Unexpected Error!','Something happended, please try again']; | |
var randomMessage = errorMessages[Math.floor(Math.random() * errorMessages.length)]; | |
var currentURL = (window.location != window.parent.location) ? document.referrer : document.location; | |
if (confirm( randomMessage )) { | |
window.location.reload(true); | |
} else { | |
window.location.reload(true); | |
} | |
} |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
{ | |
"vars": { | |
"@gray-darker": "lighten(#000, 20%)", | |
"@gray-dark": "lighten(#000, 25%)", | |
"@gray": "lighten(#000, 33.5%)", | |
"@gray-light": "lighten(#000, 60%)", | |
"@gray-lighter": "lighten(#000, 90%)", | |
"@brand-primary": "#70b95c", | |
"@brand-success": "#5cb85c", | |
"@brand-info": "#5bc0de", |
/* | |
* Updated to use the function-based method described in http://www.phpied.com/social-button-bffs/ | |
* Better handling of scripts without supplied ids. | |
* | |
* N.B. Be sure to include Google Analytics's _gaq and Facebook's fbAsyncInit prior to this function. | |
*/ | |
(function(doc, script) { | |
var js, | |
fjs = doc.getElementsByTagName(script)[0], |