https://portainer.io/overview.html
Manage your docker ecosystem by Portainer.
#container #docker #dashboard
Manage your docker ecosystem by Portainer.
#container #docker #dashboard
Tech C**P
https://portainer.io/overview.html Manage your docker ecosystem by Portainer. #container #docker #dashboard
Start it using:
$ docker volume create portainer_data
$ docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
Proxy your whole computer using the command below to tunnel through your server:
Now install
ssh -D 127.0.0.1:8157 admin@YOUR_SERVER_IP_ADDR
Now install
Omega
Chrome addon and setup socks5 proxy to tunnel your browser traffic.In case you are printing utf-8 characters (e.g. Persian) in a python script use the below workaround at the begining of your file:
# coding: utf-8
Put your views on different design documents in couchDB in order to bypass whole DB lock for indexing. Be cautious that if your database has huge amount of data there will be an hourly lock on couchiDB on all operations!!!
So for example if you have couchDB view on:
http://YOUR_IP:5984/_utils/#/database/YOUR_DATABASE/_design/query/_view/THIS_IS_YOUR_VIEW
Put your view that is on a different category like below:
http://YOUR_IP:5984/_utils/#/database/YOUR_DATABASE/_design/NEW_DESIGN_DOCUMENT/_view/THIS_IS_YOUR_VIEW
This simple trick will prevent database lock on whole operations, the change wiill at least does not affect other views operations.
#couchdb #database #performance #lock #indexing
So for example if you have couchDB view on:
http://YOUR_IP:5984/_utils/#/database/YOUR_DATABASE/_design/query/_view/THIS_IS_YOUR_VIEW
Put your view that is on a different category like below:
http://YOUR_IP:5984/_utils/#/database/YOUR_DATABASE/_design/NEW_DESIGN_DOCUMENT/_view/THIS_IS_YOUR_VIEW
This simple trick will prevent database lock on whole operations, the change wiill at least does not affect other views operations.
#couchdb #database #performance #lock #indexing
اسنپ یکی از قابلیتهای مهم «اوبر» به نام «uberPOOL» را به سیستم خود اضافه میکند. بر اساس این طرح، میتوان تعداد سفرهای تکراری را کاهش داد، هزینه کمتری از مسافر دریافت نمود و البته سهم بیشتری نیز به راننده پرداخت.
در این راهکار که تا دو ماه دیگر عملیاتی میشود، مسافرانی که به شکل پیاده کمتر از ۵ دقیقه با هم فاصله داشته باشند میتوانند از یک خودرو استفاده کنند. در واقع یک اسنپ، با این راهکار دو مسافر را جابهجا میکند و هزینه آن نیز ۳۰ درصد ارزانتر است.
#snapp #startup
در این راهکار که تا دو ماه دیگر عملیاتی میشود، مسافرانی که به شکل پیاده کمتر از ۵ دقیقه با هم فاصله داشته باشند میتوانند از یک خودرو استفاده کنند. در واقع یک اسنپ، با این راهکار دو مسافر را جابهجا میکند و هزینه آن نیز ۳۰ درصد ارزانتر است.
#snapp #startup
Projects written in
- uber.com
- ubereats.com
- metbase.com
- trello.com
- instagram
- discordapp.com
ReactJS
:- uber.com
- ubereats.com
- metbase.com
- trello.com
- discordapp.com
.format()
(new method) is far better than string formatters like %s,%r,%d (old method) from readability, flexibility and other point of views.In the following pictures this is demonstrated:
There are tons of these examples for
format()
, like thousand separator and so. Go for it and explore more.Having local git repository server is easy enough by using docker and open source git lab project:
docker pull gitlab/gitlab-ce
#gitlab #open_source #docker
docker pull gitlab/gitlab-ce
#gitlab #open_source #docker
Tech C**P
Having local git repository server is easy enough by using docker and open source git lab project: docker pull gitlab/gitlab-ce #gitlab #open_source #docker
After pulling image into docker repository run the image using the command below:
Reference:
https://docs.gitlab.com/omnibus/docker/README.html
#gitlab #docker #image #docker_run
sudo docker run --detach \
--hostname gitlab.example.com \
--publish 443:443 --publish 80:80 --publish 22:22 \
--name gitlab \
--restart always \
--volume /srv/gitlab/config:/etc/gitlab \
--volume /srv/gitlab/logs:/var/log/gitlab \
--volume /srv/gitlab/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest
Reference:
https://docs.gitlab.com/omnibus/docker/README.html
#gitlab #docker #image #docker_run
Communicate by Telegram bot API by using the most used python library:
Send file, message, audio, image and reply easily by using telegram python library:
https://github.com/python-telegram-bot/python-telegram-bot
#telegram #bot #python #library
python-telegram-bot
.Send file, message, audio, image and reply easily by using telegram python library:
https://github.com/python-telegram-bot/python-telegram-bot
#telegram #bot #python #library
GitHub
GitHub - python-telegram-bot/python-telegram-bot: We have made you a wrapper you can't refuse
We have made you a wrapper you can't refuse. Contribute to python-telegram-bot/python-telegram-bot development by creating an account on GitHub.
Tech C**P
Communicate by Telegram bot API by using the most used python library: python-telegram-bot. Send file, message, audio, image and reply easily by using telegram python library: https://github.com/python-telegram-bot/python-telegram-bot #telegram #bot #python…
A complete reference to the documentation on
https://python-telegram-bot.readthedocs.io/en/stable/
#reference #telegram #bot #readthedocs #python
readthedocs
:https://python-telegram-bot.readthedocs.io/en/stable/
#reference #telegram #bot #readthedocs #python