Tech C**P
14 subscribers
161 photos
9 videos
59 files
304 links
مدرس و برنامه نویس پایتون و لینوکس @alirezastack
Download Telegram
Forwarded from Digiato | دیجیاتو
🔵 حریم نه چندان خصوصی؛ چرا باید وبکم لپ تاپ را بپوشانیم؟
#امنیت #آموزش
👇
http://dgto.ir/rl7

📱 @Digiato 📡
Axigen 10.1.5 Release Update

We are happy to announce the release of a new minor version, Axigen 10.1.5.
This version comes with number of small features, enhancements, performance improvements, and bug fixes, as well as support for openSUSE Leap 42.2 and 42.3.
For a detailed list of what's included in 10.1.5, please consult the list below.

More info: https://www.axigen.com/press/product-releases/axigen-1015-release-update_94.html

#mail #server #mail_server #axigen #update
Mixed Active Content is now blocked by default in Firefox 23!

What is Mixed Content?
When a user visits a page served over HTTP, their connection is open for eavesdropping and man-in-the-middle (MITM) attacks. When a user visits a page served over HTTPS, their connection with the web server is authenticated and encrypted with SSL and hence safeguarded from eavesdroppers and MITM attacks.

However, if an HTTPS page includes HTTP content, the HTTP portion can be read or modified by attackers, even though the main page is served over HTTPS. When an HTTPS page has HTTP content, we call that content “mixed”. The webpage that the user is visiting is only partially encrypted, since some of the content is retrieved unencrypted over HTTP. The Mixed Content Blocker blocks certain HTTP requests on HTTPS pages.

#http #https #mixed_active_content #firefox
Kafka® is used for building real-time data pipelines and streaming apps. It is horizontally scalable, fault-tolerant, wicked fast, and runs in production in thousands of companies.

#kafka
There various tools for a web-based project management applications, but the one which is fantastic is Trello with its ease of use and free of charge.
The similar version of Trello in Persian is Taskulu. It is also a great tool for project management.

I could not find a mobile version for Taskulu, but there are for Trello. Take a look at them both in the following links:

- https://taskulu.com
- https://trello.com

#project_management #task_management #trello #taskulu
sed linux command:

sed stands for Stream Editor. As its name advertise it works on stream of text (input file, input pipleline).
General command executation:
sed REGEX INPUTFILE

For instance if you want to replace hi with bye in hibye.txt file:
sed 's/hi/bye/' hibye.txt

It will print the result into standard output (console). If you want to put the output in a file:
sed 's/hi/bye/' hibye.txt > output.txt

Instead of INPUTFILE we can put - which then reads from standard input:
cat hibye.txt | sed 's/hi/bye/' -

Now if you want to put the output in a file:
cat hibye.txt | sed 's/hi/bye/' - > output.txt

As until now you have seen, sed command writes output to standard output, if you want to write the result to the file itself, use -i as below:
sed -i 's/hi/bye' hibye.txt

So in the above command the result will be written to hibye.txt itself.

#linux #sed #regex
Tech C**P
#python #django #django_part11 #views #render
In this tutorial we would go over rendering templates by using shortcuts and using dynamic urls in views. We also complete the detail function to load question details from database.

#django_part11
جلسه ۵۰ گروه کاربران پایتون تهران، فردا پنجشنبه ۹ آذر ۱۳۹۶ از ساعت ۱۴:۳۰ تا ۱۶:۰۰ در «شتاب‌دهندهٔ آواتک» به نشانی «جاده مخصوص کرج، جنب متروی بیمه، خط کندرو، بین کوچه بیمه 2 و بیمه 3، پلاک 31، (محل سابق کارخانه الکترودسازی آما) کارخانه نوآوری، آواتک» برگزار خواهد شد.
شرکت در این رویداد برای کلیه علاقمندان، آزاد و رایگان است.
#python #tehpug #meetup
Tech C**P
Oreilly.Production-Ready.Microservices.1491965975.epub
About the author
Susan Fowler is a site reliability engineer at Uber Technologies, where she splits her time between running a production-readiness initiative across all Uber microservices and embedding within business-critical teams to bring their services to a production-ready state. She worked on application platforms and infrastructure at several small startups before joining Uber.
Export all collection documents in MongoDB to a JSON file:
mongoexport --db YOUR_DATABASE --collection YOUR_COLLECTION_NAME --out YOUR_OUTPUT_FILE_NAME.json

NOTE: do not use this command for full database backup! Use mongodump instead

#mongodb #export #mongoexport #mongodump #collection #database
Install htop on CentOS from source:

htop is a real-time process viewer for Linux. First, install prerequisites and download the source:
yum groupinstall "Development Tools"
yum install ncurses-devel
wget http://hisham.hm/htop/releases/2.0.2/htop-2.0.2.tar.gz
tar xvfvz htop-2.0.2.tar.gz
cd htop-2.0.2/

Prepare for compilation:
./configure

By default, htop will be installed under /usr/local/bin. If you want to change installation location to something else (e.g., /usr/ bin`), run configure script with `--prefix option instead. For example:
./configure --prefix=/usr

build and install htop as follows:
make
make install

Voila! You're done. just run it using:
htop

#linux #centos #htop #compile #source #install
For REST APIs it usually happens to encode client-id and client-secret to send to an endpoint to get access token.
It has been said in API documentation that send data like below:
Basic BASE64_ENCODEDED_VALUE_OF(CLIENT_ID:CLIENT_SECRET)

There is an online tool for exactly that specific purpose (encode, decode base64).

Go to link below:
- https://www.base64encode.org/

#base64 #base64encode #client_id #client_secret #api #rest #webservice
You are on a server and all of a sudden you need your public IP address. You can do it using cURL and terminal:
$ curl ifconfig.co
142.17.150.17

The website will just spit out the IP address with no bullshit around it! It is more specifically used by sysadmins.

#linux #sysadmin #curl #ifconfig #ifconfigco
In order to load json config file in Cement python framework, you simply need to include the json extension, and then set the CementApp.Meta.config_handler to json:
from cement.core.foundation import CementApp

class MyApp(CementApp):
class Meta:
label = 'myapp'
extensions = ['json']
config_handler = 'json'
config_extension = '.json'

This will keep the default config_files list intact, but use .json instead of .conf for the files it looks for.

#python #cement #json #config