socket.emit('message', "this is a test");
io.emit('message', "this is a test");
var app = require('express')(); | |
var http = require('http').Server(app); | |
var io = require('socket.io')(http); | |
var port = process.env.PORT || 3000; | |
app.get('/', function(req, res){ | |
res.sendFile(__dirname + '/index.html'); | |
}); | |
app.get('/chat', function(req, res){ |
sudo rm /usr/bin/php
sudo ln -s /usr/bin/php5.6 /usr/bin/php
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDbHyitKvdYvS+sSKrprTbjasadLMPRfgsdibJBV1/fhXXx78b15eK/8MJY+PnjzwcFNRJ6lacCERPun1o7RqzSEbi+YVTs5tn0GnhsKETKq0UqJYEHawNX3jhx+FZXEn1/CdK7U4okPCFI4JthvUIyuu4PyJZ/rSfrUVz8X1gVY05SMgRM8Gfznjt6ntXEESxNp7GZ5OCP+YN/0cbZE6lQoOb1LskLXfxWAVFL6OdICSMK2IsqZYR8T5CShK7pLs0JkqQitSO4IS7Zjh/PnioD2z9ntjD/m1GSW6/9M0P6QoHy+nJnMNDv/xE3Eh+mWpNnkjZY4a//8RKzvxyI8xO5 [email protected] |
.
├── bin
│ ├── www
│ └── deploy.sh
├── config
│ ├── env
│ ├── index.js
│ └── passport.js
├── controllers
<?php | |
add_action( 'init', 'codex_book_init' ); | |
function codex_book_init() { | |
$labels = array( | |
'name' => _x( 'Books', 'post type general name', 'your-plugin-textdomain' ), | |
'singular_name' => _x( 'Book', 'post type singular name', 'your-plugin-textdomain' ), | |
'menu_name' => _x( 'Books', 'admin menu', 'your-plugin-textdomain' ), | |
'name_admin_bar' => _x( 'Book', 'add new on admin bar', 'your-plugin-textdomain' ), |
Resources: | |
MyEC2Instance: | |
Type: AWS::EC2::Instance | |
Properties: | |
AvailabilityZone: us-east-1a | |
ImageId: ami-068663a3c619dd892 # Ubuntu Server 20.04 LTS | |
InstanceType: t2.micro | |
KeyName: my-test-key # Existing key pair | |
SecurityGroups: | |
- !Ref MyEC2SecurityGroup |