You need to provide some classes and decorators yourself to maintain the same style as [email protected].
@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}↓
| bank_id | name | image_url | |
|---|---|---|---|
| AMBB0209 | AmBank | https://gate.chip-in.asia/static/images/fpx/AMBB0209.png | |
| AGRO01 | Agronet | https://gate.chip-in.asia/static/images/fpx/AGRO01.png | |
| BMMB0341 | Bank Muamalat | https://gate.chip-in.asia/static/images/fpx/BMMB0341.png | |
| ABB0233 | Affin Bank | https://gate.chip-in.asia/static/images/fpx/ABB0233.png | |
| DBB0199 | Deutsche Bank | https://gate.chip-in.asia/static/images/fpx/DBB0199.png | |
| HLB0224 | Hong Leong Bank | https://gate.chip-in.asia/static/images/fpx/HLB0224.png | |
| ABMB0212 | Alliance Bank (Personal) | https://gate.chip-in.asia/static/images/fpx/ABMB0212.png | |
| BSN0601 | BSN | https://gate.chip-in.asia/static/images/fpx/BSN0601.png | |
| BCBB0235 | CIMB Clicks | https://gate.chip-in.asia/static/images/fpx/BCBB0235.png |
| import signal | |
| import time | |
| import os | |
| def handle_sigterm(signum, frame): | |
| print("Received SIGTERM. Cleaning up...") | |
| print("Cleanup done. Exiting gracefully.") | |
| exit(0) | |
You need to provide some classes and decorators yourself to maintain the same style as [email protected].
@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}↓
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
| # Optimized MySQL configuration for cPanel servers by Kani Baspinar - Updated June 2016 | |
| # | |
| # The settings provided below are a starting point for a 24GB RAM server with 8 CPU cores. | |
| # If you have less or more resources available you MUST adjust accordingly to save CPU, RAM and disk I/O usage. | |
| # To fine tune these settings for your system, use MySQL DB diagnostics tools like: | |
| # Test your configuration ; https://launchpad.net/mysql-tuning-primer | |
| # or | |
| # http://blog.mysqltuner.com/download/ | |
| # Note that if there is NO comment beside a setting, then you don't need to adjust it. | |
| # |
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:
| # Configuration file for runtime kernel parameters. | |
| # See sysctl.conf(5) for more information. | |
| # See also http://www.nateware.com/linux-network-tuning-for-2013.html for | |
| # an explanation about some of these parameters, and instructions for | |
| # a few other tweaks outside this file. Increasing the TCP congestion | |
| # window is particularly important. | |
| # Protection from SYN flood attack. | |
| net.ipv4.tcp_syncookies = 1 |
The first step is to remove older version of PostGIS if any.
sudo apt-get purge postgis
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >> /etc/apt/sources.list.d/postgresql.list'
| import React, { Component } from 'react'; | |
| import TextField from 'components/base/TextField'; | |
| const WAIT_INTERVAL = 1000; | |
| const ENTER_KEY = 13; | |
| export default class TextSearch extends Component { | |
| constructor(props) { | |
| super(); |