- 浏览: 2564746 次
- 性别:
- 来自: 成都
-
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
文章列表
Remote Desktop Client
- 博客分类:
- UI
Remote Desktop Client
There is an app called Microsoft Remote Desktop.
In the app, we can import the RDP file.
References:
https://mycloudit.com/user-guide/import-rdp-file-into-microsoft-remote-desktop-client-mac/
JekyII Content Generate(1)Installation and Introduction
Check ruby version and other tools on my MAC
> ruby -v
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
> gem -v
2.5.2.3
> gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with- ...
Python RabbitMQ on Lambda
Checking official documents
https://github.com/benjamin-hodgson/asynqp
More detail in the API document
https://asynqp.readthedocs.io/en/v0.4/reference.html#connecting-to-the-amqp-broker
That is the basic method in python
import asyncio
import asynqp
@asyncio.coroutine
d ...
Supervisor
Long time ago, I tried to install and run supervisor on my MAC.
> git clone https://github.com/Supervisor/supervisor
> python -V
Python 2.7.10
> cd supervisor
> sudo python ./setup.py install
> sudo mkdir -p /var/log/supervisord
Set Up the Configuration
> cat /etc/ ...
MetaBase UI Console(2)Docker on MySQL
Setup MetaBase on CentOS 7
Install JAVA
> sudo yum install java-1.8.0-openjdk-devel
> java -version
openjdk version "1.8.0_191"
Once the java ENV are there, we can directly run the command
> java -jar metabase-metabase-2018-11-27.jar
Try to ...
MetaBase UI Console(1)Run from Jar File
Metabase source codes are here
https://github.com/metabase/metabase
How to Build the Metabase Jar
Get the source code
> git clone https://github.com/metabase/metabase
Here is my Blog to install the ENV
http://sillycat.iteye.com/blog/2400566
> brew up ...
RabbitMQ and Lambda
Recently, I am working on Lambda sending message to RabbitMQ. We are using typescript, so the package is
"@types/amqplib": "^0.5.7",
We take the callback example as our references
https://github.com/squaremo/amqp.node/blob/master/examples/tutorials/callback_a ...
Flarum BBS System(2)Docker the BBS
Change PHP to version 7.1.24 in Docker, it seems everything works fine.
Steps to generate the latest PHP Project
In the working directory
> mkdir flarum
> cd flarum/
> composer create-project flarum/flarum . --stability=beta
It seems we need execute the ...
Flarum BBS System(1)Installation and Introduction
Try an open source BBS website. Flarum
First try the steps on my local MAC
> php -version
PHP 7.2.11 (cli) (built: Oct 23 2018 08:40:58) ( ZTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
A ...
Grav CMS System(5)Multiple Domains and Certs
Follow the documents, change the configuration as follow with multiple domains and cert files.
frontend webapp
bind *:80
bind *:443 ssl crt /tool/haproxy-1.8.14/conf/sillycatname.pem crt /tool/haproxy-1.8.14/conf/kikokangname.pem
acl hos ...
Grav CMS System(4)Multiple Domain Sites in HAProxy and HTTPS
Follow
https://www.jianshu.com/p/907eec663cf1
Free SSL Org https://letsencrypt.org/
Tool to generate key https://certbot.eff.org/
Install Certbot on CentOS
> sudo yum install certbot
Install Certbot on Ubuntu
> sudo apt-get update ...
Grav CMS System(3)Docker Nginx and PHP
First of all, Have the PHP ENV on CentOS7
Enable PHP7
> sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
> sudo yum-config-manager --enable remi-php72
Install PHP7
> sudo yum install php72 php72-php-fpm php72-php-mysqlnd php72- ...
Grav CMS System(2)Nginx and FPM
Download the latest stable nginx
https://nginx.org/en/download.html
> wget https://nginx.org/download/nginx-1.14.0.tar.gz
Configure and make and make install that tool
> ./configure --prefix=/Users/hluo/tool/nginx-1.14.0
Once everything is done, here is the c ...
AWS Lambda and NodeJS
- 博客分类:
- Scripts
AWS Lambda and NodeJS
Concurrency Model
NodeJS is single threaded and the event loop is the concurrency model that allows non-blocking I/O.
NodeJS EventLoop
https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/
Call Stack
A simple function code is as follow:
‘Use strict’;
Function work ...
NodeJS work with ActiveMQ(1)Basic Connect to Local ActiveMQ
Long time ago, I am using activeMQ, that is 15 years back, old days in Alibaba? Hudsun? Taobao? Alipay? China telecom? I can not remember, but that is really long time ago.
Today, I will try to use TypeScript under server less framework in ...