~
is local, ~/htdocs
mounted by vboxsf, /var/htdocs
mounted by nfs.
root@Ubuntu:~# time dd bs=8k count=300000 if=test of=/dev/zero 300000+0 records in 300000+0 records out 2457600000 bytes (2.5 GB) copied, 3.9852 s, 617 MB/s real 0m3.990s
<?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>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>com.chinadns.startup</string> | |
<key>ProgramArguments</key> | |
<array> |
#!/bin/sh | |
curl -sSL --anyauth --user username:password -H "Referer: http://192.168.0.2/userRpm/SysRebootRpm.htm" -H "User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36" "http://192.168.0.2/userRpm/SysRebootRpm.htm?Reboot=Reboot" |
<?php | |
class Paginator | |
{ | |
public $current; | |
public $total_pages; | |
public $next; | |
public $before; | |
public $items; | |
public $query = []; |
FROM boot2docker/boot2docker:latest | |
MAINTAINER Tuzki Zhang <rabbitzhang52@gmail.com> | |
RUN rm $ROOTFS/etc/rc.d/automount-shares && \ | |
sed -i "s/\/etc\/rc.d\/automount-shares//g" $ROOTFS/opt/bootscript.sh && \ | |
echo "#!/bin/sh\n\ | |
/usr/local/etc/init.d/nfs-client start" >> $ROOTFS/opt/bootscript.sh | |
RUN mkdir $ROOTFS/Users && \ | |
echo "10.0.2.2:/Users /Users nfs defaults 0 0" >> $ROOTFS/etc/fstab |
package main | |
import ( | |
"database/sql" | |
"flag" | |
"fmt" | |
_ "github.com/go-sql-driver/mysql" | |
"github.com/go-yaml/yaml" | |
"image" | |
_ "image/gif" |
<?php | |
/** | |
* An helper file for Laravel 4, to provide autocomplete information to your IDE | |
* Generated for Laravel 4.2.8 on 2014-08-26. | |
* | |
* @author Barry vd. Heuvel <barryvdh@gmail.com> | |
* @see https://github.com/barryvdh/laravel-ide-helper | |
*/ | |
namespace { |
#!/bin/bash | |
# install depends | |
apt-get update && apt-get install -y aria2 libxml2 libxml2-dev libssl-dev pkg-config curl libcurl4-nss-dev enchant libenchant-dev libjpeg8 libjpeg8-dev libpng12-0 libpng12-dev libvpx1 libvpx-dev libfreetype6 libfreetype6-dev libt1-5 libt1-dev libgmp10 libgmp-dev libicu-dev mcrypt libmcrypt4 libmcrypt-dev libpspell-dev libedit2 libedit-dev libsnmp-dev libxslt1.1 libxslt1-dev autoconf make g++ python-software-properties git redis-server | |
# download php & install | |
aria2c http://jp1.php.net/distributions/php-5.5.13.tar.gz | |
aria2c http://jaist.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.2.2/phpMyAdmin-4.2.2-all-languages.tar.gz | |
tar -xf phpMyAdmin-4.2.2-all-languages.tar.gz | |
mkdir /var/htdocs | |
mv phpMyAdmin-4.2.2-all-languages /var/htdocs/pma |