This regex splits an http or https url into its parts.
^(?:(?:(?:(http[s]?):\/\/)(?:([a-zA-Z0-9]+)?\.)?([^:\/\s\?]+\.+[^:\/\s\?]+))?(?:((?:\/[^\/\s]+)*\/)?(?:([\w\-\.]+[^#?\s]+))?)?(#[^#?\s]+)?(?:\?+([^\.\s$]+)?)?)$
- Whole match
| Завершение процесса в точное время Windows XP/Vista/7: | |
| at 11:00 Taskkill /f /IM winamp.exe /T | |
| Завершение процесса в точное время Windows 8/8.1/10: | |
| schtasks /create /tn termination /tr "taskkill /f /t /im winamp.exe" /sc once /st 11:00 | |
| Выключить комп через час: | |
| shutdown.exe -s -t 3600 | |
| Перезагрузить комп сейчас же: |
| // ==UserScript== | |
| // @name Disable Page Visibility API | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Disables JS events on whole page focus/unfocus. Usefull to prevent ads stop when switching to another tab. | |
| // @author Louis Chanouha | |
| // @match *://*/* | |
| // @grant none | |
| // ==/UserScript== |
| @ECHO OFF | |
| cd /nginx | |
| taskkill /f /IM nginx.exe | |
| start nginx | |
| EXIT |
| from sqlalchemy import Column, Integer, String, ForeignKey, create_engine | |
| from sqlalchemy.ext.declarative import declarative_base | |
| from sqlalchemy.orm import relationship, backref, sessionmaker, joinedload | |
| # For this example we will use an in-memory sqlite DB. | |
| # Let's also configure it to echo everything it does to the screen. | |
| engine = create_engine('sqlite:///:memory:', echo=True) | |
| # The base class which our objects will be defined on. | |
| Base = declarative_base() |
adapted from the article "Crawling anonymously with Tor in Python" by S. Acharya, Nov 2, 2013.
The most common use-case is to be able to hide one's identity using TOR or being able to change identities programmatically, for example when you are crawling a website like Google and you don’t want to be rate-limited or blocked via IP address.
Install Tor.