apt-get update
apt-get upgrade
apt-get install build-essential
| #!/bin/bash | |
| # https://github.com/scrapy/scrapy/issues/2115 | |
| sudo apt-get install python3 python-dev python3-dev \ | |
| build-essential libssl-dev libffi-dev \ | |
| libxml2-dev libxslt1-dev zlib1g-dev \ | |
| python-pip |
| .mar-left-5 { | |
| margin-left: 5px; | |
| } | |
| .mar-left-10 { | |
| margin-left: 10px; | |
| } | |
| .mar-left-15 { | |
| margin-left: 15px; |
| #sudo pip3 install mysqlclient fails with mysql_config not found | |
| sudo apt-get install libmysqlclient-dev | |
| #without pip3 it will not going to work for python3 | |
| sudo pip3 install mysqlclient | |
| # to run django migration | |
| python3 manage.py migrate |
| <?php | |
| require_once __DIR__.'/autoload.php.dist'; | |
| use Symfony\Component\ExpressionLanguage\ExpressionLanguage; | |
| use Symfony\Component\Routing\Matcher\UrlMatcher; | |
| use Symfony\Component\Routing\Matcher\RequestMatcherInterface; | |
| use Symfony\Component\Routing\RequestContext; | |
| use Symfony\Component\Routing\RouteCollection; | |
| use Symfony\Component\Routing\Route; |
| 1033edge.com | |
| 11mail.com | |
| 123.com | |
| 123box.net | |
| 123india.com | |
| 123mail.cl | |
| 123qwe.co.uk | |
| 126.com | |
| 150ml.com | |
| 15meg4free.com |
| var getYoutubeIdByUrl = function( url ){ | |
| var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/; | |
| var match = url.match(regExp); | |
| if(match&&match[7].length==11){ | |
| return match[7]; | |
| } | |
| return false; | |
| }; |
| #!/usr/bin/python | |
| # The urlparse module provides functions for breaking URLs down into their | |
| # component parts, as defined by the relevant RFCs. | |
| from urlparse import urlparse | |
| # PARSING | |
| parsed = urlparse('http://user:pass@NetLoc:80/path;parameters?query=argument#fragment') |
| <?php | |
| /* | |
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
| * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
| * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
| * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
| * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |