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
<html> | |
<head> | |
<title>Hello, World!</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js" ></script> | |
</head> | |
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
var net = require('net') | |
, encryption = require('./../encryption') | |
, ursa = require('ursa') | |
, exec = require('child_process').exec | |
, fs = require('fs') | |
, sh = require('execSync') | |
var stdin = process.openStdin() | |
var username, password, connection, privateKey, publicKey, otherPublicKey = false, userNames = [], certificate = false, myId, isNew = true |
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
#generate private key | |
openssl genrsa -out private-key.pem 4096 | |
#generate signing request | |
openssl req -new -key private-key.pem -out certificate-signing-request.pem | |
#self sign the request (or send off the Verisign etc etc) | |
openssl x509 -req -in certificate-signing-request.pem -signkey private-key.pem -out certificate.pem | |
#extract public key out of the certificate |
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
<form action='newpost.php' method=post> | |
Title: <input type=text name=title /> | |
Body: <input type=text name=body /> | |
<input type=submit /> | |
</form> |
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
<?php | |
$post = array( | |
'title' => 'Post title!', | |
'body' => 'Blah blah blah blah blah blah blah blah blah blah blah ' | |
); | |
echo "<h1>".$post['title']."</h1>"; | |
echo "<p>".$post['body']."</p>"; | |
echo "<hr />"; |
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
<html> | |
<head></head> | |
<body> | |
<?php | |
$post1 = array( | |
'title' => 'Title 1', |
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
<html> | |
<head></head> | |
<body> | |
<form action='http://localhost/home.php'> | |
Title: <input type=text name=title /><br /> | |
Body: <input type=text name=body /> | |
<input type=submit /> |
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
<html> | |
<head> | |
<title>My Website</title> | |
</head> | |
<body> | |
<h1>Title</h1> | |
<p>Hello, This is a text</p> |
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
<?php | |
echo "<u>Hello, World!</u>"; | |
?> |
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
(function($){ | |
var Post = Backbone.Model.extend({ | |
defaults : { | |
text : "Default post text", | |
likes : 0 | |
} | |
}); | |
var Posts = Backbone.Collection.extend({ |
NewerOlder