fool2fish's

挨踢民工日志

我们都爱女程序员

转载请注明出处

我们都爱女程序员-挨踢民工日志

分类: 挨踢民工日志 | 5条评论 »

晋升成功

转载请注明出处

晋升成功-挨踢民工日志

分类: 挨踢民工日志 | 1条评论 »

晋升失败

挨踢民工日志-fool2fish

转载请注明出处

所有内容均为歪歪,绝非事实,如有雷同,纯属巧合

嗯,近期准备好好黑一黑 HR 这个高尚的职业

分类: 挨踢民工日志 | 发表评论 »

将 git 仓库的子文件夹转换成独立仓库

1. 现有仓库:

arepo/
    subdir/
    files.txt

2. 希望将 subdir 转换成独立仓库,命令行进入 arepo 上级目录,运行:

git clone --no-hardlinks arepo brepo
cd brepo
git filter-branch --subdirectory-filter subdir

3. 在 github 上新建仓库 brepo,接着运行:

git remote add brepoalias brepo-github-url
git push brepoalias master

分类: 大前端 | 1条评论 »

apache 配置虚拟目录和虚拟主机

环境:mac os x

启动apache: sudo apachectl start

一、配置虚拟目录

以 http://localhost/handyjs 来访问 /Users/Projects/handyjs 目录

  1. 运行:sudo nano /etc/apache2/httpd.conf
  2. 找到: <IfModule alias_module>
    在该标签内添加: Alias /handyjs /Users/fool2fish/projects/handyjs
  3. 找到:
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Allow from all
    </Directory>
    在其后添加:
    <Directory “/Users/fool2fish/Projects/handyjs”>
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
  4. 保存文件后重启apache: sudo apachectl restart

二、配置虚拟主机

以 http://handyjs.com 来访问 /Users/Projects/handyjs 目录

参考:http://dancewithnet.com/2010/05/09/run-apache-php-mysql-in-mac-os-x/ 的 “设置虚拟主机”

分类: 大前端 | 1条评论 »

控制面板



注册 找回密码

最新评论