1
2016-05-06 01:11
204 查看
scp -r root@114.215.93.125:/home/blog/snippets/serializers.py /Users/Fiz/Documents
scp -r root@114.215.93.125:/var/www/html/wordpress /Users/Fiz/Documents
{"id":2,"title":"222","code":"222","linenos":true,"language":"python","style":"friendly"}
curl -X POST -H "Content-Type: application/json" -d '[
{
"name": "Manager",
"description": "someone who manages"
}
]'
http -a POST http://127.0.0.1:8000/snippets/ code="print 789"
{
"id": 5,
"owner": "tom",
"title": "foo",
"code": "print 789",
"linenos": false,
"language": "python",
"style": "friendly"
}
scp -r /Users/Fiz/Documents/blog/snippets/urls.py root@114.215.93.125:/home/blog/snippets/
/etc/init.d/apache2 restart
http --form POST http://www.fizlbq.cn/demo/snippets/ code="print 123"
{
"title": "这是一次侧是的的",
"description": "this is a deo",
"link": null,
"updated": null
}
scp -r root@114.215.93.125:/var/www/html/wordpress /Users/Fiz/Documents
{"id":2,"title":"222","code":"222","linenos":true,"language":"python","style":"friendly"}
curl -X POST -H "Content-Type: application/json" -d '[
{
"name": "Manager",
"description": "someone who manages"
}
]'
http -a POST http://127.0.0.1:8000/snippets/ code="print 789"
{
"id": 5,
"owner": "tom",
"title": "foo",
"code": "print 789",
"linenos": false,
"language": "python",
"style": "friendly"
}
scp -r /Users/Fiz/Documents/blog/snippets/urls.py root@114.215.93.125:/home/blog/snippets/
/etc/init.d/apache2 restart
http --form POST http://www.fizlbq.cn/demo/snippets/ code="print 123"
{
"title": "这是一次侧是的的",
"description": "this is a deo",
"link": null,
"updated": null
}
相关文章推荐
- 深入理解数据结构之链表
- 自定义注解和注解的相关使用
- 【Redis】四 数据类型 String
- C++ 第一次课堂作业
- C++ 第一次课堂作业
- html css js 一些记录.
- c++之左值
- FragmentTabhost关于v4兼容包在18+报bug No tab content FrameLayout found for id xxx
- Google Chrome浏览器不能以根用户身份运行解决
- Java基础
- java设计模式(十)--facade模式
- cocos2d-x案例开发大全 新版本开发
- JSP无法显示上传图片可能原因:图片中包含中文
- Unity Shaders and Effects Cookbook (6-1) 使用 alpha 参数的 半透明着色器
- leetcode_c++:Median_of _two_sorted_arrays(004)
- pthread统计文本次数
- 如何保护数字证书和私钥
- ViewPager+Fragment实现仿微信首页
- Java常用类库
- kafka+zookeeper环境配置(Mac 或者 linux环境)