Skip to main content

Note aws 4

AWS Elastic Beanstalk has two types of environment tiers to support different types of web applications. Web servers are standard applications that listen for and then process HTTP requests, typically over port 80. Workers are specialized applications that have a background processing task that listens for messages on an Amazon SQS queue. Worker applications post those messages to your application by using HTTP.
aha,

build.yml
version: 0.1
phases:
  build:
    commands:
      - echo Build started on `date`
      - cp ./config/firebase-develop.json.example ./config/firebase-develop.json
artifacts:
  files:
    - '**/*'

Warning
You may not be able to connect to this instance as ports 22 may need to be open in order to be accessible. Your current security groups don't have ports 22 open.


Instance is not associated with a key pair
This instance is not associated with a key pair. Without a key pair you will need to log into this instance using a valid username and password combination.

https://blog.cloudflare.com/memcrashed-major-amplification-attacks-from-port-11211/

Changes to option EC2KeyName settings will not take effect immediately. Each of your existing EC2 instances will be replaced and your new settings will take effect then.
aws:autoscaling:launchconfiguration:EC2KeyName "null" => "osx-test-ec2-memcached"

https://www.sumologic.com/aws/elb/aws-elastic-load-balancers-classic-vs-application/

https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-healthchecks.html


https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-cloudwatch-metrics.html

Try it in case need run bg task, beanstalk have Web, Worker instance, may be worker instance work with console ENV (that env manageble on Web console)
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/https-storingprivatekeys.html
https://serverfault.com/questions/826719/how-to-create-a-url-in-a-wordpress-that-will-return-code-200

https://www.reddit.com/r/aws/comments/4u7os2/which_is_speedier_aws_cloudfront_or_cloudflare/
https://gist.githubusercontent.com/prein/3b36b66fdc1c4cc440c8afe64157f35d/raw/8e420496bfade7b299df70d583f7f9d7415c09d5/copy_dns_zones.rb
http://devopsblues.com/cloudflare-to-aws-route53-and-cloudfront-migration/

https://support.google.com/domains/answer/6010092?hl=en&_ga=2.56730090.1727735880.1548143105-1983811966.1548143105

https://en.wikipedia.org/wiki/CNAME_record
https://www.namecheap.com/support/knowledgebase/article.aspx/9607/2210/how-to-set-up-dns-records-for-your-domain-in-cloudflare-account

https://en.wikipedia.org/wiki/Real-Time_Messaging_Protocol

Alternative GennyMotion
http://www.android-x86.org/
https://stackoverflow.com/questions/517463/how-can-i-install-a-ipa-file-to-my-iphone-simulator

Did you know you have access to New Relic Insights during your New Relic APM trial?

With Insights, you can write custom queries using New Relic Query Language (NRQL) and create visualizations and dashboards of New Relic data that matters to you and your team. To learn more about NRQL and New Relic Insights, head to our documentation center.

Want to try it now? Copy and paste this query into the Insights query tool to see how many transactions your applications have reported in the last 3 days:

SELECT count(*) FROM Transaction SINCE 3 day ago FACET appName TIMESERIES AUTO

https://apple.stackexchange.com/questions/138941/how-do-i-stop-the-adobe-creative-cloud-app-from-auto-launching-on-login

https://stackoverflow.com/questions/46696036/can-aws-codepipeline-track-multiple-feature-branches-and-run-tests-on-each

https://dba.stackexchange.com/questions/174957/how-to-safely-stop-mysqldump

https://stackoverflow.com/questions/18104843/mysql-query-with-large-number-of-records-gets-killed

https://dba.stackexchange.com/questions/19532/safest-way-to-perform-mysqldump-on-a-live-system-with-active-reads-and-writes

http://www.inanzzz.com/index.php/post/x7gq/how-to-backup-only-triggers-and-stored-procedures-with-mysqldump
http://www.mysqltutorial.org/listing-stored-procedures-in-mysql-database.aspx

https://stackoverflow.com/questions/26015160/deterministic-no-sql-or-reads-sql-data-in-its-declaration-and-binary-logging-i
http://getasysadmin.com/2011/06/amazon-rds-super-privileges/
RDS parameter group in right tab.

https://dba.stackexchange.com/questions/19532/safest-way-to-perform-mysqldump-on-a-live-system-with-active-reads-and-writes

http://docs.amazonaws.cn/en_us/elasticbeanstalk/latest/dg/https-storingprivatekeys.html
https://stackoverflow.com/questions/67093/how-do-i-quickly-rename-a-mysql-database-change-schema-name

WP is_ssl() function in wp-includes/functions.php
4063 /**
4064  * Determine if SSL is used.
4065  *
4066  * @since 2.6.0
4067  *
4068  * @return bool True if SSL, false if not used.
4069  */
4070 function is_ssl() {
4071         if ( isset($_SERVER['HTTPS']) ) {
4072                 if ( 'on' == strtolower($_SERVER['HTTPS']) )
4073                         return true;
4074                 if ( '1' == $_SERVER['HTTPS'] )
4075                         return true;
4076         } elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) {
4077                 return true;
4078         }
4079         // return false;
4080         // Fixme hacky way to by pass https/ssl check
4081         return true;
4082 }

Sometime we have to forget all what we have learned and ask some very 'ordinary' question :)
https://www.quora.com/Why-does-an-SSL-certificate-cost-money
https://snippets.webaware.com.au/snippets/wordpress-is_ssl-doesnt-work-behind-some-load-balancers/

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https.html
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https-endtoend.html
http://docs.amazonaws.cn/en_us/elasticbeanstalk/latest/dg/https-singleinstance-php.html
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https-elb.html
https://dev.to/jignesh_simform/how-to-select-the-right-database-for-your-androidios-application-2aca

https://blog.lawrencemcdaniel.com/wordpress-aws-elb-ssl/
https://www.podcastinit.com/episode-9-david-baumgold-on-flask-dance-webhookdb-and-open-edx/

https://pushalert.co/blog/free-ssl-easy-setup-guide/
free ssl with cloudflare ? is there something wrong ?

Many info ab RewriteCond, If in apc config here
https://stackoverflow.com/questions/14693852/how-to-force-https-on-elastic-beanstalk

not tested
https://www.essycode.com/posts/force-https-elastic-beanstalk-site-wordpress/
https://aws.amazon.com/premiumsupport/knowledge-center/redirect-http-https-elb/?icmpid=support_rt_kc_videos
https://medium.com/in-development/how-to-add-ssl-certificates-to-elastic-beanstalk-and-cloudfront-452f68591ca5

https://blog.lawrencemcdaniel.com/wordpress-aws-elb-ssl/


https://support.dbvisit.com/hc/en-us/articles/216514817-MySQL-Error-Lock-wait-timeout-exceeded-try-restarting-transaction

Comments

Popular posts from this blog

AWS Elasticache Memcached connection

https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/accessing-elasticache.html#access-from-outside-aws http://hourlyapps.blogspot.com/2010/06/examples-of-memcached-commands.html Access memcached https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/GettingStarted.AuthorizeAccess.html Zip include hidden file https://stackoverflow.com/questions/12493206/zip-including-hidden-files phpmemcachedadmin ~ phpMyAdmin or phpPgAdmin ... telnet mycachecluster.eaogs8.0001.usw2.cache.amazonaws.com 11211 stats items stats cachedump 27 100 https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/VPCs.EC.html https://lzone.de/cheat-sheet/memcached VPC ID Security Group ID (sg-...) Cluster: The identifier for the cluster memcached1 Creation Time: The time (UTC) when the cluster was created January 9, 2019 at 11:47:16 AM UTC+7 Configuration Endpoint: The configuration endpoint of the cluster memcached1.ahgofe.cfg.usw1.cache.amazonaws.com:11211 St

Notes Windows 10 Virtualbox config, PHP Storm Japanese, custom PHP, Apache build, Postgresql

 cmd => Ctrl + Shift + Enter mklink "C:\Users\HauNT\Videos\host3" "C:\Windows\System32\drivers\etc\hosts" https://www.quora.com/How-to-create-a-router-in-php https://serverfault.com/questions/225155/virtualbox-how-to-set-up-networking-so-both-host-and-guest-can-access-internet 1 NAT + 1 host only config https://unix.stackexchange.com/questions/115464/how-to-properly-set-up-2-network-interfaces-in-centos-running-in-virtualbox DEVICE=eth0 TYPE=Ethernet #BOOTPROTO=dhcp BOOTPROTO=none #IPADDR=10.9.11.246 #PREFIX=24 #GATEWAY=10.9.11.1 #IPV4_FAILURE_FATAL=yes #HWADDR=08:00:27:CC:AC:AC ONBOOT=yes NAME="System eth0" [root@localhost www]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 # Advanced Micro Devices, Inc. [AMD] 79c970 [PCnet32 LANCE] DEVICE=eth1 IPADDR=192.168.56.28 <= no eff => auto like DHCP #GATEWAY=192.168.56.1 #BOOTPROTO=dhcp BOOTPROTO=static <= no eff ONBOOT=yes HWADDR=08:00:27:b4:20:10 [root@localhost www]#

Rocket.Chat DB schema

_raix_push_notifications avatars.chunks avatars.files instances meteor_accounts_loginServiceConfiguration meteor_oauth_pendingCredentials meteor_oauth_pendingRequestTokens migrations rocketchat__trash rocketchat_cron_history rocketchat_custom_emoji rocketchat_custom_sounds rocketchat_import rocketchat_integration_history rocketchat_integrations rocketchat_livechat_custom_field rocketchat_livechat_department rocketchat_livechat_department_agents rocketchat_livechat_external_message rocketchat_livechat_inquiry rocketchat_livechat_office_hour rocketchat_livechat_page_visited rocketchat_livechat_trigger rocketchat_message rocketchat_oauth_apps rocketchat_oembed_cache rocketchat_permissions rocketchat_raw_imports rocketchat_reports rocketchat_roles rocketchat_room rocketchat_settings rocketchat_smarsh_history rocketchat_statistics rocketchat_subscription rocketchat_uploads system.indexes users usersSessions https://rocket.chat/docs/developer-guides/sc