user@instance-mumbai:~/docker-setup-v2/flask$ dig files.pythonhosted.org A
; <<>> DiG 9.10.3-P4-Ubuntu <<>> files.pythonhosted.org A ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3624 ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512
# | |
... import xgboost.sklearn as xgb | |
... from sklearn.model_selection import GridSearchCV | |
... from sklearn.model_selection import TimeSeriesSplit | |
... | |
... cv = 2 | |
... | |
... trainX= [[1], [2], [3], [4], [5]] | |
... trainY = [1, 2, 1, 2, 1] |
[Unit] | |
Description=Datadog Docker Swarm | |
After=systemd-journald.service | |
Requires=systemd-journald.service | |
[Service] | |
ExecStart=/bin/zsh -c "coproc while true; do ncat --ssl intake.logs.datadoghq.com 10516; done ;journalctl -o json -f | jq -r --unbuffered '\"c441ade4f5f4d04c \" + ({ message:.MESSAGE, service_name:.COM_DOCKER_SWARM_SERVICE_NAME, container:.CONTAINER_NAME, containerid:.CONTAINER_ID_FULL, host:._HOSTNAME,pid:(._PID // \"-\"), timestamp:(.__REALTIME_TIMESTAMP|tonumber/1000000|todate),\"syslog.severity\":((.PRIORITY|tonumber)) }|tostring)' >&p 2>&p" | |
wget https://developer.nvidia.com/compute/cuda/9.1/Prod/local_installers/cuda-repo-ubuntu1604-9-1-local_9.1.85-1_amd64 | |
sudo add-apt-repository ppa:graphics-drivers | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - |
from PIL import Image | |
import requests | |
from io import BytesIO | |
from io import StringIO | |
url1 = "https://res.cloudinary.com/prestige-gifting/image/fetch/fl_progressive,q_95,e_sharpen:50,w_480/e_saturation:05/https://www.prestigeflowers.co.uk/images/NF4016-130116.jpg" | |
url2 = "https://static.pexels.com/photos/39517/rose-flower-blossom-bloom-39517.jpeg" | |
url3 = "https://i.pinimg.com/736x/f2/01/57/f201574c8705365b2c3e182953f765f2--blue-roses-blue-flowers.jpg" |
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch (Production)", | |
"type": "node", | |
"request": "launch", |
OSX - https://github.com/OpenSC/OpenSC/releases/download/0.16.0/OpenSC-0.16.0.dmg
Fedora - sudo dnf install pcsc-tools opensc ccid
ubuntu - sudo dnf install pcsc-tools opensc libccid
Find out where OpenSC has installed the pkcs11 module.
For OS X with binary installation this is typically in
/Library/OpenSC/lib/. Homebrew users can use export OPENSC_LIBS=$(brew --prefix opensc)/lib
#!/bin/bash | |
# inspired by http://veithen.github.io/2014/11/16/sigterm-propagation.html | |
if [ -z "$DBNAME" ]; then | |
echo "Environment variable DBNAME is not set!!!" | |
exit 1 | |
else | |
sed -i 's|DBNAME|'"$DBNAME"'|' /etc/pgbouncer/pgbouncer.ini | |
fi |
##SHA256 hash of the public key openssl req -in namecheap-1549141.csr -noout -pubkey | openssl rsa -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64 ##will match openssl s_client -connect api.redcarpetup.com:443 | openssl x509 -pubkey -noout | openssl rsa -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64
##modulus to check in browser openssl req -in namecheap-1549141.csr -noout -modulus ##will match openssl s_client -connect api.redcarpetup.com:443 | openssl x509 -pubkey -noout | openssl rsa -pubin -noout -modulus
The project is a reverse auction ecommerce store for clothes - with search and facebook login.
- Magento Community Edition 2.0.10
- php 7
- You will use composer to create the magento project and manage libraries. https://blog.amasty.com/how-to-install-magento-2-php7-localhost/
- You will use Heroku to deploy in production. You do NOT have to bother about apache, etc.
- Use redis for session and caching - http://devdocs.magento.com/guides/m1x/ce18-ee113/using_redis.html . there is a redis plugin available on heroku.
- all assets (images, videos, etc) should be uploaded to s3 . All images should have a unique "cache-busting" url
- integrate Elasticsearch addon (we can purchase this). Use hosted elasticsearch on amazon - https://aws.amazon.com/elasticsearch-service/pricing/
- Use Amazon RDS for MySQL hosting