(wherever it says url.com, use your server's domain or IP)
Login to new server as root, then add a deploy user
sudo useradd --create-home -s /bin/bash deploy
sudo adduser deploy sudo
sudo passwd deployAnd Update the new password
(wherever it says url.com, use your server's domain or IP)
Login to new server as root, then add a deploy user
sudo useradd --create-home -s /bin/bash deploy
sudo adduser deploy sudo
sudo passwd deployAnd Update the new password
| # Convert the .cer file into a .pem file: | |
| $ openssl x509 -in aps_development.cer -inform der -out PushChatCert.pem | |
| # Convert the private key’s .p12 file into a .pem file: | |
| $ openssl pkcs12 -nocerts -in PushChatKey.p12 -out PushChatKey.pem | |
| # Finally, combine the certificate and key into a single .pem file | |
| $ cat PushChatCert.pem PushChatKey.pem > ck.pem | |
| # At this point it’s a good idea to test whether the certificate works. |
| version: '2.2' | |
| services: | |
| elasticsearch: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:6.4.1 | |
| container_name: elasticsearch | |
| environment: | |
| - cluster.name=docker-cluster | |
| - bootstrap.memory_lock=true | |
| - "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
| ulimits: |
| # post_loc.txt contains the json you want to post | |
| # -p means to POST it | |
| # -H adds an Auth header (could be Basic or Token) | |
| # -T sets the Content-Type | |
| # -c is concurrent clients | |
| # -n is the number of requests to run in the test | |
| ab -p post_loc.txt -T application/json -H 'Authorization: Token abcd1234' -c 10 -n 2000 http://example.com/api/v1/locations/ |
Comodo, the leading Internet Security Provider offers Free Antivirus, SSL Certificate and other Internet Security related products with complete protection. In this post I will walk you through the setup of SSL in Amazon CloudFront (the process is common to all Amazon services)
AWS need that all your certificates are in PEM format. They are two main of encoding certificate:
DER: is a binary encoding of a certificate. Typically these use the file extension of .crt or .cert.
PEM: is a Base64 encoding of a certificate represented in ASCII therefore it is readable as a block of text. This is very useful as you can open it in a text editor work with the data more easily. Comodo certificate are delivered in DER format .crt, so we need to convert them to PEM.
##Windows users:
cmder will be refered as console
##Mac Os, Ubuntu and windows users continue here:
homestead utf8_general_ci| // Type definitions for stripe elements | |
| // Project: https://stripe.com/docs/elements/reference | |
| // Definitions by: Tony Ranieri | |
| // Definitions: | |
| interface StripeFactory { | |
| new (apiKey: string): Stripe; | |
| } | |
| interface Stripe { |
| sudo rabbitmqctl list_connections pid port state user vhost recv_cnt send_cnt send_pend name \ | |
| | grep -vP 'Listing|pid' \ | |
| | awk '{print "rabbitmqctl close_connection \"" $1 "\" \"manually closing idle connection\"" }' \ | |
| | sudo sh |
| sudo apt-get install xapian-omega ruby-xapian libxapian-dev xpdf poppler-utils antiword unzip catdoc libwpd-tools \ | |
| libwps-tools gzip unrtf catdvi djview djview3 uuid uuid-dev xz-utils libemail-outlook-message-perl | |
| cd /opt/redmine/plugins/ | |
| sudo wget https://github.com/danmunn/redmine_dmsf/archive/master.zip | |
| sudo mv master.zip redmine_dmsf.zip | |
| sudo unzip redmine_dmsf.zip | |
| sudo rm redmine_dmsf.zip | |
| sudo passenger-config restart-app | |
| sudo service nginx restart |