Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benohara committed Jul 30, 2012
1 parent 63787ef commit ce1f3e2
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 2 deletions.
38 changes: 38 additions & 0 deletions curl/curlrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# dotphiles : https://github.com/dotphiles/dotphiles
#
# Setup curl
#
# Authors:
# Ben O'Hara <[email protected]>
#

user-agent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"
referer = ";auto"

# read .netrc for user name and password OR URL
netrc-optional

# pick the most secure methods of authentication that the server accepts
# anyauth

# !!! remote-time dosn't work with ftp upload from stdin !!! : use -R switch for downloading
#remote-time
remote-name-all
create-dirs

# Don't show/download error document - only error code
fail

#verbose
#silent
#show-error

# FTP setup
ftp-create-dirs
ftp-ssl
ftp-pasv
ftp-method = nocwd

#proxy = xxx.xxx.xxx.xxx:80

6 changes: 4 additions & 2 deletions dotsyncrc
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ dotsyncrc
#zsh/zprofile
#zsh/zshenv
#zsh/zshrc
#taskwarrior/task
#taskwarrior/taskrc
#task/task
#task/taskrc
#curl/curlrc
#wget/wgetrc
[endfiles]

# Hosts to sync
Expand Down
48 changes: 48 additions & 0 deletions wget/wgetrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#
# dotphiles : https://github.com/dotphiles/dotphiles
#
# Setup wget
#
# Authors:
# Ben O'Hara <[email protected]>
#

# Use the server-provided last modification date, if available
timestamping = on

# Do not go up in the directory structure when downloading recursively
no_parent = on

# Wait 60 seconds before timing out. This applies to all timeouts: DNS, connect and read. (The default read timeout is 15 minutes!)
timeout = 60

# Retry a few times when a download fails, but don’t overdo it. (The default is 20!)
tries = 3

# Retry even when the connection was refused
retry_connrefused = on

# Use the last component of a redirection URL for the local file name
trust_server_names = on

# Follow FTP links from HTML documents by default
follow_ftp = on

# Add a `.html` extension to `text/html` or `application/xhtml+xml` files that lack one, or a `.css` extension to `text/css` files that lack one
adjust_extension = on

# Use UTF-8 as the default system encoding
# Disabled as it makes `wget` builds that don’t support this feature unusable.
# Does anyone know how to conditionally configure a wget setting?
# http://unix.stackexchange.com/q/34730/6040
#local_encoding = UTF-8

# Ignore `robots.txt` and `<meta name=robots content=nofollow>`
robots = off

# Print the HTTP and FTP server responses
server_response = on

# Disguise as IE 9 on Windows 7
user_agent = Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)

0 comments on commit ce1f3e2

Please sign in to comment.