Skip to content

Instantly share code, notes, and snippets.

View dplord's full-sized avatar

Deng Pan dplord

View GitHub Profile
//vim /etc/fstab
LABEL=dengpan_wd none ntfs rw,auto,nobrowse
//uuid冲突
VBoxManage internalcommands sethduuid win-xp_2015_12_07.vdi
#!/bin/sh
#开启压缩css js的,压缩当前页面的所有css js
#cp /tmp/yuicompressor-2.4.8.jar 到/tmp
#然后这个脚本在你需要压缩css js的目录执行即可
a="/home/dengpan/www"
for i in `find $a -name "*.css"`
do
echo $i
java -jar yuicompressor-2.4.8.jar --type css --charset utf-8 -v $i -o $i
#!/bin/bash
/home/dengpan/opt/nginx-1.9.9/sbin/nginx
/home/dengpan/github/hhvm/hhvm/hphp/hhvm/hhvm --mode daemon --user www --config /home/dengpan/myetc/hhvm/server.ini
# 列出磁盘
diskutil list
# umount挂载,这样可以把U盘分配给virtualbox
diskutil umountDisk /dev/disk2
卸载磁盘(弹出)
diskutil eject /dev/disk1s1
#关掉mac开机咚咚声音
永久关闭的话,输入以下命令即可: