This file contains 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
''' | |
This programm gets url list from text file and request the pages, finds favicons and save them into current directory | |
''' | |
import urllib | |
from urllib.request import urlopen | |
from urllib.request import urlretrieve | |
from bs4 import BeautifulSoup | |
'''had to add this windows specific block to handle this bug in urllib2: | |
http://bugs.python.org/issue11220 |
This file contains 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
// Next formula makes 12 copies in C for each row in A in a determined order | |
=ИНДЕКС(A:A;ОКРВВЕРХ(ЧСТРОК(C$1:C1)/12;1)) |
This file contains 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
-- export to csv | |
Copy (Select * From tablename) To 'C:\\dev\01.csv' With CSV; | |
-- import from csv | |
COPY tablename FROM 'C:\data\01.csv' DELIMITER ',' CSV HEADER; | |
-- Create a Range From 1 to 10 | |
SELECT * FROM GENERATE_SERIES(1, 10) |
This file contains 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
Find: ref=\"tns:(.*)\" | |
Replace: name=\"\1\" type=\"tns:\1\" |
This file contains 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
# Turn off global property | |
git config http.sslVerify false | |
# Turn off ssl check for current operation | |
git -c http.sslVerify=false clone https://domain.com/path/to/git |
This file contains 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
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.4 -Dpackaging=jar -Dfile=ojdbc6.jar -DgeneratePom=true |
This file contains 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
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java7-installer | |
# If you have multiple java installed on your system, you can select with : sudo update-alternatives --config java |
This file contains 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
/** | |
* Fixture for test. | |
*/ | |
private static final class Fixture { | |
@Mock | |
CustomManager customManager; | |
@Mock | |
CustomRepository repository; |
This file contains 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
# Force all new branches to automatically use rebase | |
git config --global branch.autosetuprebase always | |
# This will tell git to always pull with rebase. | |
git config --global --bool pull.rebase true | |
# After these two commands ~/.gitconfig will look like this: | |
[branch] | |
autosetuprebase = always | |
[pull] |
This file contains 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"?> | |
<deployment name="defaultClientConfig" xmlns="http://xml.apache.org/axis/wsdd/" | |
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> | |
<handler name="log" type="java:org.apache.axis.handlers.LogHandler" > | |
<parameter name="LogHandler.fileName" value="axis1.log"/> | |
</handler> | |
<globalConfiguration> | |
<requestFlow> |
OlderNewer