Tech C**P
Zed_A_Shaw_Learn_Python_3_the_Hard.pdf
Learn Python 3 the hardway. Applicable for those who has just started programming with Python 3.
سلام دوستان عزیز 😊
دوستان یکسری پادکست براتون در نظر دارم که در حدود 20 پادکست یک ساعته هست. یکی از بهترین پادکستهای موجود در زمینه بحث scaling و management که با مدیران شرکتهای فیسبوک، گوگل، اوبر و... صحبت میشه و تجارب ناب تکنیکال در اختیارتون قرار میگیره. منتظر سری اول پادکستهای کانال باشید. صبحتون پر نشااااااااااط 🏃😋
Stay tuned! 😍
#podcast #intro
دوستان یکسری پادکست براتون در نظر دارم که در حدود 20 پادکست یک ساعته هست. یکی از بهترین پادکستهای موجود در زمینه بحث scaling و management که با مدیران شرکتهای فیسبوک، گوگل، اوبر و... صحبت میشه و تجارب ناب تکنیکال در اختیارتون قرار میگیره. منتظر سری اول پادکستهای کانال باشید. صبحتون پر نشااااااااااط 🏃😋
Stay tuned! 😍
#podcast #intro
How do you give maintenance for your infrastructure when a new BIG deployment comes in?
You can use
Inside of your
What happens here is that we first check for a file named
Outside of location we need to server
And with an exact match for the file (`location =`) we serve that static page from root of
The note about this code is that when your file is named
#linux #nginx #maintenance #maintenance_mode #location #error_page
You can use
nginX
to display a nice page about your maintenance. First of all create your fancy landing page for your maintenance in html format with the name of maintenance_off.html
.Inside of your
server
block in nginX configuration we do like below:server {
...
location / {
if (-f /webapps/your_app/maintenance_on.html) {
return 503;
}
...
}
# Error pages.
error_page 503 /maintenance_on.html;
location = /maintenance_on.html {
root /webapps/your_app/;
}
...
}
What happens here is that we first check for a file named
maintenance_on.html
, if it's present we return 503 Server error
. This error code is returned when server is not available. This code is inside of location
section of root.Outside of location we need to server
/maintenance_on.html
for error 503:error_page 503 /maintenance_on.html;
And with an exact match for the file (`location =`) we serve that static page from root of
/webapps/your_app/
.The note about this code is that when your file is named
maintenance_off.html
maintenance will be ignored and when we rename the file to maintenance_on.html
then error 503 is returned.#linux #nginx #maintenance #maintenance_mode #location #error_page
There are many other ways to put a website in maintenance mode, like to allow specific ip addresses to see the website but others see the maintenance mode page:
This is it. If you don't know what the above code do, then SEARCH. :)
#nginx #linux #maintenance #maintenance_mode #503
server {
..
set $maintenance on;
if ($remote_addr ~ (34.34.133.12|53.13.53.12)) {
set $maintenance off;
}
if ($maintenance = on) {
return 503;
}
location /maintenance {
}
error_page 503 @maintenance;
location @maintenance {
root /var/www/html/maintenance;
rewrite ^(.*)$ /index.html break;
}
..
}
This is it. If you don't know what the above code do, then SEARCH. :)
#nginx #linux #maintenance #maintenance_mode #503
وقتی اسنپ تریپ از هول عید برنامه خود را سریع وارد بازار می کند!
#بی_برنامگی #فرجه #اسنپ
#deadline #snapptrip
#بی_برنامگی #فرجه #اسنپ
#deadline #snapptrip
Tech C**P
#1 Airbnb's Brian Chesky in Handcrafted.mp3
دوستان این پادکست ها همون پادکست هایی بود که بهتون قولش رو داده بودم. حتما حتما حتما گوش فرا دهید. بسیار مفید هست و توانمندی های فنی و planning شما رو به شدت بهتر میکند و خواهید دید که شرکتهای بزرگ چگونه بزرگ شدند. آیا aribnb از ابتدا بزرگ بوده؟ از کجا شروع کردند؟ چگونه بازار هدف را پیدا کردند؟ و...
Tech C**P
#2 The Money Episode w_ Minted's Mariam Naficy.mp3
مصاحبه با مریم نفیسی co-founder سایت eve و یکی از کارآفرینان مطرح آمریکا در مورد نحوه رشد شرکت و جذب سرمایه گذار و...
Tech C**P
#3_Beauty_of_A_Bad_Idea_w__Walker.mp3
Here it is discussed that when you have a bad idea that people laugh at, it seems that it's a good idea. :)
Some real world examples are given here that some bad ideas went successful.
Some real world examples are given here that some bad ideas went successful.
Have you seen that when you want to query from
If you enter the above command in
#mongodb #mongo #shellBatchSize #limit
MongoDB
in shell it just prints the last 10 records and prompts to enter it
in order to see more? Well in MongoDB shell you can issue the below command to say how many records to return:DBQuery.shellBatchSize = 3000
If you enter the above command in
MongoDB
shell and use find
to query a collection that has more than 3000 documents, 3000 documents will be returned at once.#mongodb #mongo #shellBatchSize #limit
Tech C**P
WaitWhat – #4 Facebook's Mark Zuckerberg in Imperfect is Perfect
در این پادکست ارزشمند خواهید شنید چگونه مارک زاکربرگ از سنین 10-11 سالگی شروع به برنامه نویسی کرد و چگونه فیسبوک در دوران دانشگاهش شکل گرفت. آیا خود زاکربرگ فکرش را می کرد فیسبوک به اینجا برسد؟ شعار فیسبوک از ابتدا چه بوده است؟
جواب این سوالات همه در پادکست "مصاحبه با زاکربر" از زبان خالق فیسبوک
جواب این سوالات همه در پادکست "مصاحبه با زاکربر" از زبان خالق فیسبوک