don't be smart
There are too many people in China who want to do great things, but too few who wish to do things perfectly.
Fifth chapter: Five cent Luck?
Bill Gates said: Life is not fair, it is customary to accept it
1, the life does have a lot of luck adults: The man, the outcome in the day: China's ancient instructions accounted for half
2. Opportunity often comes accidentally, but belongs to those who should not never give up
3, seize every chance of life
Chance is like a bird, if you do
Iptables inside only 80, 21 and other commonly used ports, which led to VSFTPD in the passive mode can not use the random port, which caused the client to connect FTP can not list the directory such a problem. The solution is simple, adding a range of random ports to vsftpd and then adding this port range to iptables.The following are specific practices:
1, modify the/etc/vsftpd/vsftpd.conf configuration file, add at the end of the file:
Copy Code code as follows:
pasv_max_port=6
1 Scope of variables Python is a static scope, meaning that in Python, the scope of a variable derives from its position in the code, and there may be different namespaces in different locations. Namespaces are the embodiment of variable scopes.2 LEGB meaning of the respective representatives 2.1 l-local namespace within the function. Scope: The current entire function body range. 2.2 e-enclosing Function locals The namespace of the outer nested function. Scope: Closure function. 2.3 G
1. Prototype rulesA. All reference types (arrays, objects, functions) have object attributes and are free to extend properties;var arr = [];ARR.A = 1;B. All reference types (arrays, objects, functions) have a _proto_ attribute (implicit prototype), and the property value is an ordinary object;C. All functions have a prototype (explicit prototype), and the attribute value is also a common object;D. All reference types (arrays, objects, functions) whose implicit prototypes point to explicit protot
#!/usr/bin/env python # encoding:utf-8 "" "@version: v1.0 @author: Cxa @file: flask02.py @time: 2018/04/13 14:55" "" "" " To add a variable part to the URL, you can mark these special fields as Flask Learning 2 Modifying a routing rule incoming parameter access URL
thought of going to use white (simple and pure), black (elegant), or use blue (more neutral).10. Development of fully functional user profilesThe user profile on dating sites is equivalent to a homepage on Facebook or other social media. It contains a lot of information about the user, such as name, date of birth, birthplace, as long as the favorite colors and movies. The resources of online dating must have a large number of characteristics that can bring people together, and whatever it takes
Getting new requirements today requires that the data in the Excel table be displayed on the page.
My personal analysis, first of all, to the Excel data stored in the database, and then the page display, I rookie level, has not done reading Excel data, studied a bit (mainly to see other people's data), write the implementation process, I would like to write a few about Excel, The first is the rule of Excel data import, and then there is the irregular
connection timeout
REJECT
The packet is discarded and a destinationunreachable ICMP packet is sent back to the sender, and the sending application terminates the connection action after receiving the error message packet.
Example 2: Do not allow the 222.24.21.195 host to perform name resolution through the native DNS service
Syntax: iptables-a input-p udp-s 222.24.21.195--dport 53-j
Syntax Explanation:
--dport53
Original
--dportdestination Port
corresponding fastcgi include fastcgi_params;
Fastcgi_param script_filename $document _ROOT$FSN; #PATH_INFO and path_translated can is omitted, but RFC 3875 specifies them for CGI fastcgi_param path_info $fastcgi _path_
Info
Fastcgi_param path_translated $document _ROOT$FSN;
# # Tweak fastcgi buffers, just in case.
Fastcgi_buffer_size 128k;
Fastcgi_buffers 256 4k;
Fastcgi_busy_buffers_size 256k;
Fastcgi_temp_file_write_size 256k;
}
}
Don't forget to restart Nginx when you are done wi
Description
Operating system: Windows Server R2
Web server: IIS 8.5
Web program: WordPress
Site Root: C:inetpubwwwroot
Website Domain name: www.111cn.net
To achieve the purpose:
Configure WordPress pseudo Static
Specific actions:
First, verify that IIS 8.5 is installed with IIS URL Rewrite
Open: Control Panel system and security management tools Internet Information Services (IIS) Manager
See URL rewrite to indicate that the is URL Rewrite has already been installed, otherwise insta
The first rule of being a top designer: restricting your fonts
One of the seven basic principles that make you a big design.
Good Design Master, or too much bragging, but according to the following seven basic principles at least you can become a skilled designer.This will be the shortest and most informative series of blog posts, and you'll know how to become a better designer after you see it.Keep in mind: These principles are not laws and can be
JavaScript will rule the world
In 1999, a normal person can use FrontPage to do a simple personal site (and then came out of the open source of discuz and blog), but for the simplicity of the html/css/javscript is evident. In 2010, you're looking for a mobile app developer, not to mention the experience, not 10,001 months of your uncertainty, this is the Android Java development and application of the current situation.
International giant Goo
_filename/index.php) {Rewrite (. *) $1/index.php;}if (!-f $request _filename) {Rewrite (. *)/index.php;}}
4, and finally press ESC to jump to the command mode, enter: Wq, save the file and Exit VI.
Save after modification ... After the save has not been effective, need SSH link to give
Service Nginx Reload
The order will not take effect.
Universal WordPress Pseudo-static configuration rules
Rewrite ^.*/files/(. *) $/wp-includes/ms-files.php?file=$1 last;
if (!-e $request _filename) {
Re
Recently read an article through Nagios to realize MD5 real-time monitoring iptables status, I would like to see if the shell can also do monitoring iptables rule changes, after the experiment, there is the following script.
System: CentOS 5.x
Script content:
Cat check_iptables.sh
Copy Code code as follows:
#!/bin/bash
if [!-F. Count];then
Iptables-l-n|md5sum|awk ' {print $} ' > ~/.count
Exit 1
Else
Iptables-l-n|md5
Transfer from http://www.pfeng.org/archives/840In Git, if you want to ignore a file and not commit the file to the repository, you can use the method that modifies the. gitignore file in the root directory (if none, you need to manually build the file yourself). Each row of this file holds a matching rule for example:
# This is a comment – will be ignored by Git
*.a # ignores all. A end-of-file
!lib.a # but LIB.A except
/todo # simply ig
pageRewriteengine Onrewritecond%{request_uri}!/upgrade.html$rewritecond%{remote_host}!^24\.121\.202\.30Rewriterule $ http://www.linuxidc.com/upgrade.html [r=302,l]4.3 Turn the old domain name to the new domain# REDIRECT from old domain to new domainrewriteengine onrewriterule ^ (. *) $http://www.yourdomain.com/$1[r=301,l]Iii. Common examplesRewriteengine onRewriterule index.html index.phpFor example: http://www.yzzmf.com/index.html-http://www.yzzmf.com/index.phpRewriterule ^test ([0-9]*). html$
Today, after reloading the system, I need to install the development tools, I use the development tools are visual Studio2008 and SQL Server2008r2, when the installation of the visual Studio2008 in the database when the problem occurs:Workaround:Install patches. Download installationhttp://www.microsoft.com/zh-CN/download/details.aspx?displaylang=enid=13276The rule "earlier versions of Microsoft Visual Studio 2008" failed. An earlier version of Micros
Where condition Interpretation: SELECT uid from T_user WHERE from_unixtime (day) >= ' 2017-02-15 ' will cause full table scan The correct notation is: SELECT uid from T_user WHERE day>= unix_timestamp (' 2017-02-15 00:00:00 ') (27) Non-negative queries, and a fuzzy query starting with% Interpretation: A) Negative query conditions: not,! =, b) The fuzzy query at the beginning of the% will result in a full table scan (28) prohibit large tables using a join query, prohibit large tables using su
/* . c) Src_obj = $ (SRC_FILES:.C=.O) Src_lib = xx.a Include $ (src_base)/makefile.rule Where Src_obj is given here and then used in Makefile.rule, the. o file here will be gen
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.