Explore Public Snippets
Found 1,216 snippets matching: cdn
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.3/css/bootstrap.min.css" integrity="sha384-MIwDKRSSImVFAZCVLtU0LMDdON6KVCrZHyVQQj6e8wIEJkW4tvwqXrbMIya1vriY" crossorigin="anonymous"> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.3/js/bootstrap.min.js" integrity="sha384-ux8v3A6CPtOTqOzMKiuo3d/DomGaaClxFYdCu2HPMBEkf6x2xiDyJ7gkXU0MWwaD" crossorigin="anonymous"></script>
<script type="text/javascript" src="//lib.sinaapp.com/js/jquery/1.5.2/jquery.min.js"></script> <script type="text/javascript"> window.jQuery || document.write('<script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")">\x3C/script>')</script>
// Enter here the a<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
public by azazqadir 677 0 5 1
CDN integration in Yii2 App
// ... 'components' => [ // ... 'cdn' => [ 'class' => '\yii2cdn\Cdn', 'baseUrl' => defined ('YII2CDN_OFFLINE') ? 'http://localhost/yii2/cdn' : '//71265-358070-raikfcquaxqncofqfm.stackpathdns.com/cdn', 'basePath' => dirname(__DIR__, 2) . '/cdn', 'components' => [ 'font-awesome' => [ 'css' => [ [ // local version 'font-awesome.min.css', // cdn version '@cdn' => '//71265-358070-raikfcquaxqncofqfm.stackpathdns.com/cdn/font-awesome/css/font-awesome.min.css', ] ] ] ], ], // ... ], // ...
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min. js"></script> <script>window.jQuery || document.write('<script src="js/lib/ jquery.js"><\/script>') </script>
public by TheMetaphysicalCrook 2425 1 5 0
.dotfiles
From <https://github.com/kevinelliott/.dotfiles>: Skip to content [ ](https://github.com/) [Sign up](/join) [Sign in](/login?return_to=%2Fkevinelliott%2F.dotfiles) This repository * [Explore](/explore) * [Features](/features) * [Enterprise](https://enterprise.github.com/) * [Pricing](/pricing) * [ Watch ](/login?return_to=%2Fkevinelliott%2F.dotfiles) [ 2 ](/kevinelliott/.dotfiles/watchers) * [ Star ](/login?return_to=%2Fkevinelliott%2F.dotfiles) [ 13 ](/kevinelliott/.dotfiles/stargazers) * [ Fork ](/login?return_to=%2Fkevinelliott%2F.dotfiles) [ 8 ](/kevinelliott/.dotfiles/network) # [kevinelliott](/kevinelliott)/**[.dotfiles](/kevinelliott/.dotfiles)**  * [ Code  ](/kevinelliott/.dotfiles) * [ Issues  ](/kevinelliott/.dotfiles/issues) * [ Pull requests  ](/kevinelliott/.dotfiles/pulls) * [ Pulse  ](/kevinelliott/.dotfiles/pulse) * [ Graphs  ](/kevinelliott/.dotfiles/graphs) ### HTTPS clone URL ### Subversion checkout URL You can clone with HTTPS or Subversion. [ ](https://help.github.com/articles/which-remote-url-should-i-use) [ Download ZIP ](/kevinelliott/.dotfiles/archive/master.zip) My Unix-like dot files for my shells * [ 52 commits ](/kevinelliott/.dotfiles/commits/master) * [ 1 branch ](/kevinelliott/.dotfiles/branches) * [ 0 releases ](/kevinelliott/.dotfiles/releases) * [ Fetching contributors ](/kevinelliott/.dotfiles/graphs/contributors) 1. [ Shell 100.0% ](/kevinelliott/.dotfiles/search?l=bash) Shell [ ](/kevinelliott/.dotfiles/find/master) [ ](/kevinelliott/.dotfiles/compare) _Branch:_ master Switch branches/tags * Branches * Tags [ master ](/kevinelliott/.dotfiles/tree/master) Nothing to show Nothing to show [.dotfiles](/kevinelliott/.dotfiles)/ Latest commit [ 1691986 ](/kevinelliott/.dotfiles/commit/1691986eb0b25e58f304952b52686fcfb518f710) May 20, 2015  [kevinelliott](/kevinelliott) [Stuff and things.](/kevinelliott/.dotfiles/commit/1691986eb0b25e58f304952b52686fcfb518f710) [Permalink](/kevinelliott/.dotfiles/tree/1691986eb0b25e58f304952b52686fcfb518f710) Failed to load latest commit information.  [bin](/kevinelliott/.dotfiles/tree/master/bin) [Modify which service runs for redis.](/kevinelliott/.dotfiles/commit/7b21aaa3deedb103c4f84e8e0e830e79bac9ce9d) Nov 20, 2013  [etc](/kevinelliott/.dotfiles/tree/master/etc) [Move to more modern bundle no-document, as well as some other little …](/kevinelliott/.dotfiles/commit/27a1845bc0182c46bfcb6776a033f6c3d68f1994) Dec 18, 2014  [.gitmodules](/kevinelliott/.dotfiles/blob/master/.gitmodules) [added seinfeld for showing my last public github commit](/kevinelliott/.dotfiles/commit/f19f7005936211299ac7d5086e2bb2037dc61cfb) Nov 17, 2011  [README.md](/kevinelliott/.dotfiles/blob/master/README.md) [updated readme](/kevinelliott/.dotfiles/commit/fe075f11280d33a9fb599bba34e6b86fd517aa79) Nov 17, 2011  [aliases.sh](/kevinelliott/.dotfiles/blob/master/aliases.sh) [Stuff and things.](/kevinelliott/.dotfiles/commit/1691986eb0b25e58f304952b52686fcfb518f710) May 20, 2015  [autojump.sh](/kevinelliott/.dotfiles/blob/master/autojump.sh) [Added autojump.](/kevinelliott/.dotfiles/commit/098717c8994bdb22b6fa03fbbfab8fc384565117) Jan 24, 2013  [base.sh](/kevinelliott/.dotfiles/blob/master/base.sh) [Stuff and things.](/kevinelliott/.dotfiles/commit/1691986eb0b25e58f304952b52686fcfb518f710) May 20, 2015  [bash_colors.sh](/kevinelliott/.dotfiles/blob/master/bash_colors.sh) [* Add node.js environment configuration](/kevinelliott/.dotfiles/commit/f366a165834ed0362ee9de57dda82d5ccf699c78) Jul 13, 2012  [bash_completion.sh](/kevinelliott/.dotfiles/blob/master/bash_completion.sh) [Add support for git 2.1.x's bash completion and prompt support.](/kevinelliott/.dotfiles/commit/9589d4f36e6c8fb44e3089a2ff23baa8c975bc22) Oct 20, 2014  [bash_path.sh](/kevinelliott/.dotfiles/blob/master/bash_path.sh) [Added /usr/local/sbin to the PATH for Homebrew.](/kevinelliott/.dotfiles/commit/0295513d7ff8f375094aea225f4bc35dcf4549c4) Aug 8, 2012  [bash_prompt.sh](/kevinelliott/.dotfiles/blob/master/bash_prompt.sh) [Work to move to chruby instead of rvm. Unfortunately chruby auto chan…](/kevinelliott/.dotfiles/commit/d01505606cdc97c9f540cbf10aeff6f6584dc3db) Jul 21, 2013  [control.sh](/kevinelliott/.dotfiles/blob/master/control.sh) [Add control script and initialization in order to be able to start/st…](/kevinelliott/.dotfiles/commit/06453d3247d85dd97b50a39dcfa8501a16b6b985) Jul 18, 2012  [docker.sh](/kevinelliott/.dotfiles/blob/master/docker.sh) [Add docker script.](/kevinelliott/.dotfiles/commit/48464bbc395a298ec9bce647f0e39a43a92d46a3) Jul 30, 2014  [editor.sh](/kevinelliott/.dotfiles/blob/master/editor.sh) [Add control script and initialization in order to be able to start/st…](/kevinelliott/.dotfiles/commit/06453d3247d85dd97b50a39dcfa8501a16b6b985) Jul 18, 2012  [git.sh](/kevinelliott/.dotfiles/blob/master/git.sh) [Work to move to chruby instead of rvm. Unfortunately chruby auto chan…](/kevinelliott/.dotfiles/commit/d01505606cdc97c9f540cbf10aeff6f6584dc3db) Jul 22, 2013  [go.sh](/kevinelliott/.dotfiles/blob/master/go.sh) [Stuff and things.](/kevinelliott/.dotfiles/commit/1691986eb0b25e58f304952b52686fcfb518f710) May 20, 2015  [heroku.sh](/kevinelliott/.dotfiles/blob/master/heroku.sh) [* Add node.js environment configuration](/kevinelliott/.dotfiles/commit/f366a165834ed0362ee9de57dda82d5ccf699c78) Jul 13, 2012  [install.sh](/kevinelliott/.dotfiles/blob/master/install.sh) [Add .gemrc file.](/kevinelliott/.dotfiles/commit/e72b9dbc4063516c08a7b4b542c53fac53da3481) Oct 28, 2014  [node.sh](/kevinelliott/.dotfiles/blob/master/node.sh) [* Add node.js environment configuration](/kevinelliott/.dotfiles/commit/f366a165834ed0362ee9de57dda82d5ccf699c78) Jul 13, 2012  [rails.sh](/kevinelliott/.dotfiles/blob/master/rails.sh) [Stuff and things.](/kevinelliott/.dotfiles/commit/1691986eb0b25e58f304952b52686fcfb518f710) May 20, 2015  [ruby.sh](/kevinelliott/.dotfiles/blob/master/ruby.sh) [Comment out unnecessary RVM ruby version override. This now occurs pr…](/kevinelliott/.dotfiles/commit/6034c28f6c04d12129187c4e008af2c792cfd6cc) Oct 28, 2014  [xquartz.sh](/kevinelliott/.dotfiles/blob/master/xquartz.sh) [I guess output is not really necessary here](/kevinelliott/.dotfiles/commit/cfecaff9f0a4af157e29712923ebd788768b7fdb) Jul 14, 2012 ### README.md # .dotfiles Dotfiles for your unix-like system. I've created this little repository to setup my OSX development machine. You're free to clone this for your own use, or pull out items. Definitely fork this and make your own repository, and submit pull requests if you've made something cleaner or more useful. I love seeing what other people do to optimize their shells, and I'm constantly looking for general productivity improvements. # Install To install, you will be cloning this repository into ~/.dotfiles. cd ~ git clone git@github.com:kevinelliott/.dotfiles.git Then you will activate the .dotfiles by including the following line to ~/.bash_profile source ~/.dotfiles/base.sh # Credits Thanks to @drnic for his own .dotfiles repository for inspiration and the idea for how to set this up. Look at his repositories if you'd like to see some other examples for how to do this. # Copyright Copyright © 2011 Kevin Elliott Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * [Status](https://status.github.com/) * [API](https://developer.github.com) * [Training](https://training.github.com) * [Shop](https://shop.github.com) * [Blog](https://github.com/blog) * [About](https://github.com/about) * [Pricing](https://github.com/pricing) [ ](https://github.com) * (C) 2015 GitHub, Inc. * [Terms](https://github.com/site/terms) * [Privacy](https://github.com/site/privacy) * [Security](https://github.com/security) * [Contact](https://github.com/contact) * [Help](https://help.github.com) Something went wrong with that request. Please try again. You signed in with another tab or window. [Reload]() to refresh your session. You signed out in another tab or window. [Reload]() to refresh your session.
external by pekeq 145925 2 4 0
Azure CDNのエンドポイントにIPv6でアクセスできない場合がある件
# Azure CDNのエンドポイントにIPv6でアクセスできない場合がある件 ## 症状まとめ * Azure CDNのエンドポイントにIPv6でアクセスすると、レスポンスが返ってこない場合がある * どのIPv6アドレスからもNGというわけではなく、OKなところとNGなところがある * ping6は通るのでネットワーク的な到達性はある * HTTP GETした場合、接続まではできて、リクエスト送信しても反応がない * 個別のAzure CDN契約がアクセスできないというわけではなさそうで、Azure CDNを利用しているtenki.jpや、Office Onlineのファイルも取れない ## twitter上の声 ### 接続できない * https://twitter.com/naomi_mcrn/status/481025015123423234 * https://twitter.com/naomi_mcrn/status/481911290042929152 ### 接続できた * https://twitter.com/n_soda/status/481406847413276673 * https://twitter.com/donz80/status/481408448194564096 * https://twitter.com/kongou_ae/status/481416918130114560 * https://twitter.com/muranet/status/481427600246460417 ## ping/traceroute ### 対象URL * http://az630987.vo.msecnd.net/test.html * ソースURL http://ipv6testuseast.blob.core.windows.net/test.html ### さくらインターネット石狩データセンター * 2401:2500:102:1202:133:242:138:180 ``` $ wget -d http://az630987.vo.msecnd.net/test.html DEBUG output created by Wget 1.13.4 on linux-gnu. URI encoding = `UTF-8' --2014-06-27 12:23:27-- http://az630987.vo.msecnd.net/test.html Resolving az630987.vo.msecnd.net (az630987.vo.msecnd.net)... 2606:2800:10c:249:f81:1c8d:1178:1364, 192.229.145.200 Caching az630987.vo.msecnd.net => 2606:2800:10c:249:f81:1c8d:1178:1364 192.229.145.200 Connecting to az630987.vo.msecnd.net (az630987.vo.msecnd.net)|2606:2800:10c:249:f81:1c8d:1178:1364|:80... connected. Created socket 3. Releasing 0x0000000000750490 (new refcount 1). ---request begin--- GET /test.html HTTP/1.1 User-Agent: Wget/1.13.4 (linux-gnu) Accept: */* Host: az630987.vo.msecnd.net Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... Read error (Connection timed out) in headers. Closed fd 3 Retrying. --2014-06-27 12:41:37-- (try: 2) http://az630987.vo.msecnd.net/test.html Found az630987.vo.msecnd.net in host_name_addresses_map (0x22fa490) Connecting to az630987.vo.msecnd.net (az630987.vo.msecnd.net)|2606:2800:10c:249:f81:1c8d:1178:1364|:80... connected. Created socket 3. Releasing 0x00000000022fa490 (new refcount 1). ---request begin--- GET /test.html HTTP/1.1 User-Agent: Wget/1.13.4 (linux-gnu) Accept: */* Host: az630987.vo.msecnd.net Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... ``` ``` $ ping6 -c 5 az630987.vo.msecnd.net PING az630987.vo.msecnd.net(2606:2800:10c:249:f81:1c8d:1178:1364) 56 data bytes 64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=1 ttl=55 time=29.4 ms 64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=2 ttl=55 time=27.2 ms 64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=3 ttl=55 time=29.3 ms 64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=4 ttl=55 time=27.8 ms 64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=5 ttl=55 time=27.2 ms --- az630987.vo.msecnd.net ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 10152ms rtt min/avg/max/mdev = 27.297/28.250/29.481/0.990 ms ``` ``` $ traceroute6 az630987.vo.msecnd.net traceroute to cs1.wpc.v0cdn.net (2606:2800:10c:249:f81:1c8d:1178:1364) from 2401 :2500:102:1202:133:242:138:180, 30 hops max, 24 byte packets 1 2401:2500:102:1202::1 (2401:2500:102:1202::1) 0.584 ms 0.323 ms 0.249 ms 2 iskrt101b-rt109e.bb.sakura.ad.jp (2001:e47:c000:17::1) 6.565 ms 0.345 ms 0.315 ms 3 iskrt1s-rt101b-1.bb.sakura.ad.jp (2001:e47:c000:3::1) 0.41 ms 0.588 ms 0.438 ms 4 iskrt2-rt1s.bb.sakura.ad.jp (2001:e47:c000:15::1) 0.454 ms 0.615 ms 0.4 ms 5 tkwrt3-krt2.bb.sakura.ad.jp (2001:e47:0:b::1) 19.612 ms 19.609 ms 19.543 ms 6 2001:218:2000:5000::209 (2001:218:2000:5000::209) 19.775 ms 19.674 ms 19.704 ms 7 ae-6.a20.osakjp01.jp.ra.gin.ntt.net (2001:218:2000:2000::92) 24.03 ms 26.775 ms 24.622 ms 8 ae-10.r22.osakjp02.jp.bb.gin.ntt.net (2001:218:0:6000::e9) 27.069 ms 27.091 ms 27.221 ms 9 xe-1-1-11.r22.osakjp02.jp.ce.gin.ntt.net (2001:218:3000:5000::5a) 27.128 ms 27.209 ms 27.148 ms 10 * * * 11 * * * 11 * * * 12 * * * 13 * * * 14 * * * 15 * * * ``` ### qit * 240b:10:2a60:600:a9fb:2955:66b5:6a90 * フレッツ光ネクストマンションタイプIPoE ``` $ wget -d http://az630987.vo.msecnd.net/test.html DEBUG output created by Wget 1.13.4 on linux-gnu. URI encoding = `UTF-8' --2014-06-27 12:24:24-- http://az630987.vo.msecnd.net/test.html Resolving az630987.vo.msecnd.net (az630987.vo.msecnd.net)... 2606:2800:10c:249:f81:1c8d:1178:1364, 192.229.145.200 Caching az630987.vo.msecnd.net => 2606:2800:10c:249:f81:1c8d:1178:1364 192.229.145.200 Connecting to az630987.vo.msecnd.net (az630987.vo.msecnd.net)|2606:2800:10c:249:f81:1c8d:1178:1364|:80... connected. Created socket 3. Releasing 0x0000000000cdf3c0 (new refcount 1). ---request begin--- GET /test.html HTTP/1.1 User-Agent: Wget/1.13.4 (linux-gnu) Accept: */* Host: az630987.vo.msecnd.net Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... ---response begin--- HTTP/1.1 200 OK Accept-Ranges: bytes Content-MD5: pJvOLYcCCVRG61kFkqLipw== Content-Type: text/html Date: Fri, 27 Jun 2014 03:24:25 GMT Etag: 0x8D15E36B7524794 Last-Modified: Wed, 25 Jun 2014 02:45:53 GMT Server: ECAcc (nrt/1A87) X-Cache: HIT x-ms-blob-type: BlockBlob x-ms-lease-status: unlocked x-ms-request-id: 48c4fe0b-f1b9-4a4a-aab3-c11bd2fb157d x-ms-version: 2009-09-19 Content-Length: 38 ---response end--- 200 OK Registered socket 3 for persistent reuse. Length: 38 [text/html] Saving to: `test.html' 100%[======================================>] 38 --.-K/s in 0s 2014-06-27 12:24:25 (2.29 MB/s) - `test.html' saved [38/38] ``` ``` $ ping6 -c 5 az630987.vo.msecnd.net PING az630987.vo.msecnd.net(2606:2800:10c:249:f81:1c8d:1178:1364) 56 data bytes 64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=1 ttl=56 time=2.22 ms 64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=2 ttl=56 time=2.69 ms 64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=3 ttl=56 time=2.52 ms 64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=4 ttl=56 time=2.49 ms 64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=5 ttl=56 time=2.37 ms --- az630987.vo.msecnd.net ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4006ms rtt min/avg/max/mdev = 2.226/2.461/2.690/0.158 ms ``` ``` $ traceroute6 az630987.vo.msecnd.net traceroute to cs1.wpc.v0cdn.net (2606:2800:10c:249:f81:1c8d:1178:1364) from 240b:10:2a60:600:a9fb:2955:66b5:6a90, 30 hops max, 24 byte packets 1 240b:10:2a60:600::fffe (240b:10:2a60:600::fffe) 1.292 ms 1.467 ms 1.837 ms 2 * * * 3 * * * 4 2404:9200:225:1::1 (2404:9200:225:1::1) 2.274 ms 2.352 ms 2.344 ms 5 6otejbb205.int-gw.kddi.ne.jp (2001:268:fb02:13e::1) 2.391 ms 10.282 ms 2.536 ms 6 6ix-ote206.int-gw.kddi.ne.jp (2001:268:fb02:9c::2) 2.281 ms 2.428 ms 2.303 ms 7 2001:de8:8::1:26:1 (2001:de8:8::1:26:1) 2.541 ms 2.526 ms 2.698 ms 8 2001:cb0:102:1:15::2 (2001:cb0:102:1:15::2) 2.578 ms 3.272 ms 2.263 ms 9 2001:cb0:105:1:13::2 (2001:cb0:105:1:13::2) 2.77 ms 2.817 ms 3.029 ms 10 2001:cb0:105:2:12::2 (2001:cb0:105:2:12::2) 2.776 ms 2.778 ms 2.859 ms 11 2606:2800:10c:249:f81:1c8d:1178:1364 (2606:2800:10c:249:f81:1c8d:1178:1364) 3.038 ms 2.804 ms 2.835 ms ``` ## CocoHa VPS ``` # wget -d http://az630987.vo.msecnd.net/test.html DEBUG output created by Wget 1.12 on linux-gnu. --2014-06-27 13:11:32-- http://az630987.vo.msecnd.net/test.html Resolving az630987.vo.msecnd.net... 2606:2800:10c:249:f81:1c8d:1178:1364, 192.229.145.200 Caching az630987.vo.msecnd.net => 2606:2800:10c:249:f81:1c8d:1178:1364 192.229.145.200 Connecting to az630987.vo.msecnd.net|2606:2800:10c:249:f81:1c8d:1178:1364|:80... connected. Created socket 3. Releasing 0x00000000020ef730 (new refcount 1). ---request begin--- GET /test.html HTTP/1.0 User-Agent: Wget/1.12 (linux-gnu) Accept: */* Host: az630987.vo.msecnd.net Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... ---response begin--- HTTP/1.0 200 OK Accept-Ranges: bytes Content-MD5: pJvOLYcCCVRG61kFkqLipw== Content-Type: text/html Date: Fri, 27 Jun 2014 04:11:32 GMT Etag: 0x8D15E36B7524794 Last-Modified: Wed, 25 Jun 2014 02:45:53 GMT Server: ECAcc (nrt/1A87) X-Cache: HIT x-ms-blob-type: BlockBlob x-ms-lease-status: unlocked x-ms-request-id: 48c4fe0b-f1b9-4a4a-aab3-c11bd2fb157d x-ms-version: 2009-09-19 Content-Length: 38 Connection: keep-alive ---response end--- 200 OK Registered socket 3 for persistent reuse. Length: 38 [text/html] Saving to: “test.html” 100%[======================================>] 38 --.-K/s in 0s 2014-06-27 13:11:32 (6.65 MB/s) - “test.html” saved [38/38] ``` ``` # ping6 -c 5 az630987.vo.msecnd.net PING az630987.vo.msecnd.net(2606:2800:10c:249:f81:1c8d:1178:1364) 56 data bytes 64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=1 ttl=51 time=77.6 ms 64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=2 ttl=51 time=77.4 ms 64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=3 ttl=51 time=77.5 ms 64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=4 ttl=51 time=77.4 ms 64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=5 ttl=51 time=77.4 ms --- az630987.vo.msecnd.net ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4084ms rtt min/avg/max/mdev = 77.441/77.522/77.685/0.316 ms ``` ``` # traceroute6 az630987.vo.msecnd.net traceroute to az630987.vo.msecnd.net (2606:2800:10c:249:f81:1c8d:1178:1364), 30 hops max, 80 byte packets 1 2400:8500:1301:813::1 (2400:8500:1301:813::1) 1.437 ms 1.267 ms 1.220 ms 2 2400:8500:1300:1007::1 (2400:8500:1300:1007::1) 1.638 ms 1.691 ms 1.546 ms 3 2400:8500:1300:1016::1 (2400:8500:1300:1016::1) 1.122 ms 1.165 ms 1.209 ms 4 2400:8500:1300:1018::1 (2400:8500:1300:1018::1) 2.264 ms 2.113 ms 1.726 ms 5 2400:8500:1000:1002::1 (2400:8500:1000:1002::1) 1.026 ms 1.025 ms 1.033 ms 6 2001:218:2000:5000::205 (2001:218:2000:5000::205) 2.053 ms 1.841 ms 1.813 ms 7 ae-12.r24.tokyjp05.jp.bb.gin.ntt.net (2001:218:0:2000::1f9) 1.474 ms ae-13.r25.tokyjp05.jp.bb.gin.ntt.net (2001:218:0:2000::1fd) 1.468 ms 1.446 ms 8 ae-2.r00.tokyjp03.jp.bb.gin.ntt.net (2001:218:0:2000::21a) 3.081 ms 2.727 ms 2.716 ms 9 xe-0-1-0-19.r00.tokyjp03.jp.ce.gin.ntt.net (2001:218:2000:5000::7a) 77.709 ms 2001:218:2000:5000::332 (2001:218:2000:5000::332) 79.728 ms xe-0-1-0-18.r00.tokyjp03.jp.ce.gin.ntt.net (2001:218:2000:5000::76) 79.036 ms 10 2606:2800:10c:249:f81:1c8d:1178:1364 (2606:2800:10c:249:f81:1c8d:1178:1364) 77.726 ms 77.743 ms 77.710 ms ``` ``` # tracepath6 az630987.vo.msecnd.net 1?: [LOCALHOST] pmtu 1500 1: 2400:8500:1301:813::1 0.866ms 1: 2400:8500:1301:813::1 0.596ms 2: 2400:8500:1300:1007::1 1.231ms 3: 2400:8500:1300:1016::1 1.097ms 4: 2400:8500:1300:1018::1 1.745ms 5: 2400:8500:1000:1002::1 1.109ms 6: 2001:218:2000:5000::205 1.923ms 7: ae-12.r24.tokyjp05.jp.bb.gin.ntt.net 1.474ms 8: ae-3.r00.tokyjp03.jp.bb.gin.ntt.net 2.622ms asymm 10 9: 2001:218:2000:5000::336 79.026ms asymm 13 10: no reply 11: no reply 12: no reply 13: no reply 14: no reply 15: no reply ```
external by nfreear 163 0 2 0
CDN_JS: use Javascripts via CDN in WordPress. Example: define( 'CDN_JS', '//cdn.net/path/to/a.js //path/to/b.js' );
<?php namespace Nick_Freear\WordPress; /* Plugin Name: CDN_JS Plugin URI: https://github.com/IET-OU/oer-evidence-hub-org Description: Quickly use Javascripts via CDN. Example: define( 'CDN_JS', '//cdn.net/path/to/a.js //path/to/b.js' ) [LACE]+ Author: Nick Freear [@IET-OU] Author URI: https://github.com/nfreear Version: 0.1 */ /** * @copyright 2015 Nick Freear. * @license MIT * @link http://www.jsdelivr.com/#!anchorjs */ class CDN_JS_Plugin { public function __construct() { // Hook into the 'init' action add_action( 'wp_enqueue_scripts', array( &$this, 'enqueue_scripts' )); add_action( 'wp_footer', array( &$this, 'wp_footer' ), 99 ); } public function enqueue_scripts() { if (!defined( 'CDN_JS' )) return; $scripts = explode( ' ', CDN_JS ); foreach ($scripts as $idx => $js) { wp_enqueue_script( 'cdn-js-'. $idx, $js, null, null, $in_footer = true ); } } public function wp_footer() { if (!defined( 'CDN_JS_INLINE' )) return; ?> <script id="cdn-js-inline"> <?php echo CDN_JS_INLINE ?> </script> <?php } } $wp_cdn_js_plugin = new CDN_JS_Plugin();
external by muresan 186 1 2 0
Pull CDN using NGINX. domain.tld.cdn.example.com/uri will be fetched from domain.tld/uri and stored in /cdn/domain.tld/uri
server { listen 80; server_name *.cdn.example.com; set $origin_host 'nothing'; if ( $host ~* ([^.]+\.[^.]+)\.cdn\.example\.com$ ) { set $origin_host $1; } access_log /var/log/nginx/cdn.example.com.access.log main; location / { root /backup/cdn/$origin_host; error_page 404 = @fetch; } location @fetch { internal; proxy_pass http://$origin_host; proxy_store on; proxy_store_access user:rw group:rw all:r; proxy_temp_path /cdn/temp; root /cdn/$origin_host; } }
external by irae 217 0 3 0
require('react') and Browsefiry versus CDN React sizes
# you might need to: # npm install -g browserify # npm install envify uglifyify react@0.14.7 react-dom@0.14.7 REACT=$(curl -L --silent https://fb.me/react-0.14.7.min.js) REACTDOM=$(curl -L --silent https://fb.me/react-dom-0.14.7.min.js) echo "React from CDN not gziped" echo "$REACT $REACTDOM" | wc -c echo "React from CDN gzip" echo "$REACT $REACTDOM" | gzip -c | wc -c REACTBUILD=$(NODE_ENV=production browserify -g envify -g uglifyify -r react -r react-dom) echo "React manual build not gziped" echo "$REACTBUILD" | wc -c echo "React manual build gzip" echo "$REACTBUILD" | gzip -c | wc -c # Results as of March 9th 2016 # React from CDN not gziped # 136289 # React from CDN gzip # 39881 # React manual build not gziped # 213464 # React manual build gzip # 48278