Tikejhya: Ashish Nepal

Knowledgebase

Month: July 2014

Mirror s3 buckets

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

s3cmd is command line tool which allows you to copy one bucket to another, mirror or from one account to another….

s3cmd sync s3://mybucketone/ s3://mybuckettwo/

this can be done with directory level or subdirectory.

AWS key mangement IAM

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/ssl-server-cert.html

openssl rsa -in certificate.yourdomain.com.key -outform PEM
openssl x509 -inform PEM -in certificate.yourdomain.com.crt
openssl x509 -inform PEM -in your_vendor_bundle.crt

In order to upload content you will need aws cli enabled.

http://aws.amazon.com/cli/

aws iam upload-server-certificate --server-certificate-name yourdomain_comĀ --certificate-body file://yourdomain.com.crt --private-key file://yourdomain.com.key --certificate-chain file://your_vendor_bundle.crt --path /cloudfront/yourdomain/

List all certificates:
aws iam list-server-certificates

Delete Certificate
aws iam delete-server-certificate --server-certificate-name cloudfront/test_certificate

X-Forwarded-For allow deny apache [setenvif]

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

<Location />
SetEnvIf X-Forwarded-For ^192.168.19. proxy_env
Order Deny,Allow
Deny from All
Allow from env=proxy_env
</Location>

MySQL UPDATE with random number between x & y

UPDATE tableName SET columnName = FLOOR(x+ RAND()*y);

here you might say, update between 17 - 30.

Powered by WordPress & Theme by Anders Norén