Personal Git Server in a VPS

GitLab CE Early last year I upgraded my vps box. The main reason: GitLab CE. GitLab CE properly is one of the best open source, free, mature and actively maintained git server package. It is feature rich, come with beautiful user interface, and backed by commercial development team. You really cannot ask for more. I was ...

Lighttpd url.redirect and changing WordPress permalink structure

Changing Permalink Structure I used to use the Date and Name permalink structure for my blog: https://johnsiu.com/index.php/2016/10/13/sample-post/ But I think it is kind of long and want to shorten it, and change it to Post name structure: https://johnsiu.com/index.php/sample-post/ Changing that is as easy as a few clicks in WordPress setting. All existing and future posts ...

Lighttpd url.rewrite for latest WordPress Jetpack

Issue The latest WordPress Jetpack (4.3.1) is using <your-site>/wp-json/whatever/ for its api callback to the web server. It is an issue for web server not supporting .htaccess, and Lighttpd is one of them. I end up with a lot of 404 errors in the access.log like the following one: [12/Oct/2016:17:54:58 -0400] "POST /wp-json/jetpack/v4/module/markdown/active HTTP/1.1" 404 ...

Angular2 Simple MQ Service

ng2-simple-mq A simple message queue for Angular 2 inter-component communication base on RxJS. Name/ID(string) base API. RxJS object not exposed. (This pacakge does not communicate with RabbitMQ or any other message queue software/service.) Index Install Usage Import into Angular 2 application (typescript) API newQueue delQueue getQueue getSubscription publish subscribe unsubscribe Example Install npm install ng2-simple-mq ...

Angular2 Simple Timer Service

ng2-simple-timer A simple timer service for Angular 2, base on RxJS. Name/ID(string) base API. RxJS object not exposed. Index Install Usage Import into Angular 2 RC5 application (typescript) API newTimer delTimer getTimer getSubscription subscribe unsubscribe Example Install npm install ng2-simple-timer Usage Import into Angular 2 RC5 application (typescript) ng2-simple-timer is implemented as Angular 2 injectable ...

Simple API handler for node.js / expressjs

simple-api-express simple-api-express is an expressjs api handler (NOT middleware) that work with simple-api-client-ng2, an Angular 2 api service. Index Install Usage Flow API constructor debug list register registerObject response handler Error Handleing 404 Not Found Callback throw Example Install npm install simple-api-express Usage Flow simple-api-express depends on expressjs middleware bodyParser for json body decode. const ...

Angular2 Simple API Client Service

simple-api-client-ng2 simple-api-client-ng2 is an Angular 2 api service, which work with simple-api-express, an expressjs api handler. Index Install Usage Flow Import into Angular 2 application (typescript) API SimpleApiClient.get SimpleApiClient.list SimpleApiObj.call SimpleApiObj.setErrorHandler Error Handling Example Install npm install simple-api-client-ng2 Usage Flow Import into Angular 2 application (typescript) simple-api-client-ng2 is implemented as Angular 2 injectable service name ...

Angular2 Simple Global Variable Service

ng2-simple-global A simple global variable service for Angular 2. Index Install Usage Repository Example Install npm install ng2-simple-global Usage Import into Angular 2 application (typescript) ng2-simple-global is implemented as Angular 2 injectable service name SimpleGlobal. For module using SimpleGlobal Add SimpleGlobal into module providers. import { SimpleGlobal } from 'ng2-simple-global'; @NgModule({ providers: [SimpleGlobal] }) For ...

How to configure Systemd Journal Remote

System Info OS: Ubuntu 16.04 systemd: 229-1ubuntu2 systemd-journal-remote: 229-1ubuntu2 Upload server configuration This one is actually simple, online example are correct and only need to touch one configuration file. Use following command to install systemd-journal-remote sudo apt-get install systemd-journal-remote Edit /etc/systemd/journal-upload.conf. [Upload] URL=http://10.0.0.1:19532 # ServerKeyFile=/etc/ssl/private/journal-upload.pem # ServerCertificateFile=/etc/ssl/certs/journal-upload.pem # TrustedCertificateFile=/etc/ssl/ca/trusted.pem To make sure journal-upload auto start ...

RabbitMQ Quick Install on Ubuntu

Note: Before installation, hostname/IP must be configure properly in /etc/hosts or resolvable through DNS. Install RabbitMQ sudo apt-get install rabbitmq-server` Check RabbitMQ after installation sudo service rabbitmq-server status Enable RabbitMQ Management Plugin, this give you the web interface sudo rabbitmq-plugins enable rabbitmq_management Accessing RabbitMQ Web Console http://<hostname/IP>:15672 Create RabbitMQ users sudo rabbitmqctl add_user <username> <password> ...
%d bloggers like this: