wget 416 Requested Range Not Satisfiable

I tried to use wget -crmmirroring http://archive.cloudera.com, but 416 Requested Range Not Satisfiable is reported when files have been updated.

The -c uses a range header to perform a partially download especially for incomplete download tasks, but if I want to replace old files with new ones, this is a bad choice.

wget provides an -m/–mirror, as it’s said in the manual, is the shorthand for ‘-r -l inf -N’, which means wget -m/–mirror is enough for mirroring sites.

wget 416 Requested Range Not Satisfiable by @sskaje: https://sskaje.me/2013/11/wget-416-requested-range-not-satisfiable/

Google Font Api Proxy for WordPress

The https://fonts.googleapis.com/css used by WordPress’s theme is buggy for visitors in China. So I wrote a simple proxy.

Code as:

URI: https://sskaje.me/sskaje/googlefont.php

Here’s where the resource locates.

Change ‘fonts.googleapis.com/css‘ to ‘sskaje.me/sskaje/googlefont.php

Google Font Api Proxy for WordPress by @sskaje: https://sskaje.me/2013/11/google-font-api-proxy-for-wordpress/

Cloudera Archive Mirror Updated for CM5 & CDH5

Latest Updates @ https://sskaje.me/cloudera-mirror/

Cloudera just released it’s CDH 5 beta download here, this time their don’t use the beta.cloudera.com as non-release product’s repo.

URL: http://cloudera.rst.im/ RHEL/CentOS 6 Only.

You may download Cloudera Manager 4 installer from http://cloudera.rst.im/cm4/installer/latest/
And use http://cloudera.rst.im/cm4/redhat/6/x86_64/cm/4.7.2/ as your yum repo for CM 4.7.2.

Or Cloudera Manager 5 installer from http://cloudera.rst.im/cm5/installer/latest/,
And use http://cloudera.rst.im/cm4/redhat/6/x86_64/cm/5/ as your yum repo for CM 5.

Continue reading “Cloudera Archive Mirror Updated for CM5 & CDH5” »

Cloudera Archive Mirror Updated for CM5 & CDH5 by @sskaje: https://sskaje.me/2013/10/cloudera-archive-mirror-updated-for-cm5-cdh5/

nginx regex match server name and redirect

CNAME: sskaje.name => sskaje.me, *.sskaje.name => sskaje.name
HTTP redirect: http://xxx.sskaje.name/aaa/bbb => http://xxx.sskaje.me/aaa/bbb

nginx regex match server name and redirect by @sskaje: https://sskaje.me/2013/10/nginx-regex-match-server-name-and-redirect/

Create OS X Mavericks Bootable USB Drive from AppStore Release

1 Download Mavericks installer

Download from Mac App Store or anywhere.
The default folder name is ‘Install OS X Mavericks.app‘ not accessible directly from Mac Finder. There’s a DMG file locate at ‘Install OS X Mavericks.app/Contents/SharedSupport/InstallESD.dmg‘, this DMG contains all files we need.

2 Mount DMG directly from Terminal

Open Terminals,

The DMG will be mount at /Volumes/OS X Install ESD/

Continue reading “Create OS X Mavericks Bootable USB Drive from AppStore Release” »

Create OS X Mavericks Bootable USB Drive from AppStore Release by @sskaje: https://sskaje.me/2013/10/create-os-x-mavericks-bootable-usb-drive-from-appstore-release/