Justin4U

Justin4U

Tech, Life, Think

  • Home
  • Archives

运维规范文档

登录 使用ec2-user用户登录服务器,登录验证方式为 ssh key。管理员通过在/home/ec2-user/.ssh下的authorized_keys文件中添加运维人员自己生成的公钥内容(每个公钥占据单独一行,以ssh-rsa开头,个人的公司邮箱结尾,以便区分) 1ssh

2015-12-13

Git Usage

Install git. Global Config 123git config --global user.name "Your Real Name"git config --global user.email [email protected] config --glo

2015-12-06

Setup Git Server

Create git user 12345$ sudo adduser git$ su git$ cd$ mkdir .ssh && chmod 700 .ssh$ touch .ssh/authorized_keys && chmod 600 .

2015-12-02

Set PHP $_SERVER variables

Apache 1SetEnv APP_ENV production Nginx php-fpm 123...env[APP_ENV] = production... php-cgi 12345location / { ... fastcgi_param AP

2015-10-06

Exercies of Book: Eloquent JavaScript

Chapter 1 loop branch loop in loop Chapter 3 Math.min Even or Odd Chars counter Chapter 4 Range function Array reverse

2015-06-30

忘记VPS的SSH端口怎么办

问题 VPS用的 Digital Ocean (DO),已禁用远程SSH的密码登录。一直用的是Private Key来登录。 由于之前有对sshd_config做修改,把SSH的端口改成了非默认的22,但一直没有重启过sshd服务,所以相安无事。 今天心血来潮,把VPS的操作系统

2015-06-17

jQuery的拖拽插件实现尝试

最近在尝试写一个 jQuery 的拖拽插件(效果表现为交换,而不是插入),记录一下其中的心得: 当鼠标滑动到可以拖动的元素上时,可以通过加上CSS样式outline:1px solid blue(IE8及以上支持)来高亮,这样与加 border 相比较不会改变原有布局,减少侵入

2015-06-02

Swap Mac keyboard DELETE key with Back-Slash to conform to HHKB

Question How to swap Mac keyboard's DELETE key with back-slash key, so that we can get a compatible way both on HHKB and Mac's internal keyb

2014-12-14

Roll content without affect parents

在一个容器内滚动内容而不影响其父结点 (需要jQuery和mousewheel插件http://brandon.aaron.sh) 123456<div id="outer-container" class="container"> <div id="inne

2014-12-14

USB to Ethernet Adapter on Mac

问题 公司的网络环境实在糟糕,无线WIFI老是出问题,时不时的掉线,让人没法正常工作。 想用有线网络才发现,因为用的Mac Book Air,本子上没有以太网插口,于是上网买了个USB转以太网的转换接口,结果连上网线后在网络设置中死活找不着网卡。 解决 插上转换头、连接网线后,

2014-12-11
« Prev12345Next »

分类

  • 日志1

标签

  • AWS1
  • AngularJS1
  • Apache1
  • CDN1
  • CSV1
  • Digital Ocean1
  • Eloquent JavaScript1
  • Excel1
  • FPM1
  • HHKB1
  • Linux1
  • Mac OS1
  • MySQL2
  • Nginx6
  • OS X1
  • Openresty1
  • Others1
  • PHP5
  • Python1
  • SSH Port1
RSS 订阅

Powered by hexo and Theme by Pacman © 2018 Justin Wu