This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyvirtualdisplay import Display | |
from selenium import webdriver | |
display = Display(visible=0, size=(800, 600)) | |
display.start() | |
browser = webdriver.Chrome() | |
browser.get('http://www.google.com') | |
print browser.title | |
browser.quit() | |
display.stop() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<SOAP-ENV:Envelope | |
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | |
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" | |
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" | |
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" | |
xmlns:xsd="http://www.w3.org/1999/XMLSchema" | |
> | |
<SOAP-ENV:Body> | |
<GetFullAssetList SOAP-ENC:root="1"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><GetFullAssetListResponse | |
xmlns="/MSAssetControl"><GetFullAssetListResult><FullMSAsset><Asset><id>20121125_1300</id><uploadDate>11/25/2012 | |
14:42</uploadDate><mediaFileUrl>http://77.246.47.132/MediaSphere/mediaFiles/20121125_1300.mp4</mediaFileUrl><description>1300GMT</description><canDelete>true</canDelete><thumbImgUrl>http://77.246.47.132/MediaSphere/mediaFiles/thumbs/20121125_1300.jpg</thumbImgUrl><startTime>11/25/2012 | |
14:42</startTime><endTime>11/25/2012 | |
14:42</endTime><viewedCount>0</viewedCount><RecordingDevice>1300GMT</RecordingDevice><partition | |
/><mediaRTSPUrl /><mediaHLSUrl /></Asset><AssetText0><root><segment | |
start="0.000" end="11.580">[إعلان]</segment><segment | |
start="11.580" end="18.700">[موسيقى]</segment><segment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><GetFullAssetListResponse xmlns="/MSAssetControl"><GetFullAssetListResult><FullMSAsset><Asset><id>20121125_1300</id><uploadDate>11/25/2012 14:42</uploadDate><mediaFileUrl>http://77.246.47.132/MediaSphere/mediaFiles/20121125_1300.mp4</mediaFileUrl><description>1300GMT</description><canDelete>true</canDelete><thumbImgUrl>http://77.246.47.132/MediaSphere/mediaFiles/thumbs/20121125_1300.jpg</thumbImgUrl><startTime>11/25/2012 14:42</startTime><endTime>11/25/2012 14:42</endTime><viewedCount>0</viewedCount><RecordingDevice>1300GMT</RecordingDevice><partition /><mediaRTSPUrl /><mediaHLSUrl /></Asset><AssetText0><root><segment start="0.000" end="11.580">[إعلان]</segment><segment start="11.580" end="18.700">[موسيقى]</segment><segment start="18.700" end="25 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<SOAP-ENV:Envelope | |
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | |
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" | |
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" | |
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" | |
xmlns:xsd="http://www.w3.org/1999/XMLSchema" | |
> | |
<SOAP-ENV:Body> | |
<GetFullAssetList SOAP-ENC:root="1"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
django | |
django-celery | |
django-redis | |
django-redis-cache | |
django-redis-sessions | |
mysql-python | |
fabric | |
pil | |
scrapy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ftplib import FTP | |
import ftplib | |
output = 'temp' | |
def download(block): | |
open(output,'w').write(block) | |
print ".", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drush php-eval 'node_access_rebuild();' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dispatch_queue_t queue = dispatch_queue_create("yourname", NULL); | |
// execute a task on that queue asynchronously | |
dispatch_async(queue, ^{ | |
//Code to execute here | |
dispatch_async(dispatch_get_main_queue(), ^{ | |
// Callback on the main thread when code above is done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>redis-server</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/opt/local/bin/redis-server</string> | |
</array> |