`
文章列表

linux 安装scrapy

由于scrapy对python3支持不是很好,所以使用python2.7 引用apt-get install python ls cd /tmp ls wget https://bootstrap.pypa.io/get-pip.py apt-get install wget wget https://bootstrap.pypa.io/get-pip.py python -v python get-pip.py pip install scrapy apt-get install gcc apt-get update apt-get upgrade apt-get install gcc ...
编译scrapy时出现如下错误: 引用/usr/bin/ld: cannot find -lz 错误原因是因为没有相应的lib 于是 引用apt-get install libz-dev 解决问题

[转]sysyemd

http://0pointer.de/blog/projects/why.html http://0pointer.de/blog/projects/systemd.html http://www.freedesktop.org/wiki/Software/systemd/
https://github.com/lfit/itpol/blob/master/linux-workstation-security.md https://news.ycombinator.com/item?id=10134009
based on our case, we need to handle two different url request:     example/0.5/xxx ==> 192.168.1.100:8080/xxx     example/0.7/xxx ==> 192.168.1.101:8080/xxx Here is the configuration: 引用 root@p1:/etc/nginx/conf.d# cat /etc/nginx/conf.d/default.conf ## Basic reverse proxy server ## ## Apache ( ...
引用 1. sed command sed '/^$/d' a.txt > output.txt 2. vim command :g/^$/d 3. cat command cat -s a.txt 4. vim command :%!cat -s

[转]w3m cheat sheet

http://wiki.titan2x.com/index.php?title=W3m_cheat_sheet
[url] http://ftp.gnu.org/old-gnu/Manuals/gdb/html_node/gdb_118.html[/url] [url] http://visualgdb.com/gdbreference/commands/set_solib-search-path [/url] 引用 root@jason:/opt/lxc/src/lxc# gdb ./lxc-attach GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. Li ...
#include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/wait.h> #include <stdlib.h> int main(int argc, char* argv[]){ int status; pid_t pid = fork(); if(-1 == pid){ perror("Fork Error"); }else if (0 == pid ){ strcpy(ar ...

qemu linux

引用1. create disk space qemu-img create -f qcow2 vdisk.img 10G 引用 2. install OS qemu-system-x86_64 -hda vdisk.img -cdrom CentOS-6.6-x86_64-minimal.iso  -boot d  -m 1024 引用 3. start OS qemu-system-x86_64 vdisk.img -m 2048

lxc-execute error

引用 lxc-execute -n vm1 -f vm1/lxc.conf -- /bin/bash lxc-execute: cgfs.c: cgroup_read_from_file: 2121 No such file or directory - failed to read /sys/fs/cgroup/lxc/cpuset.cpus lxc-execute: cgfs.c: lxc_cgroupfs_create: 964 Failed to initialize cpuset for '/lxc' in '/sys/fs/cgroup'. lxc-execute: cgfs.c: ...

[图] windows 10

网上下载的图片,忘了来源

linux gpu problem

When using GPU in Linxu by ssh to remote server(which supports GPU), I got an error like 引用 TclError: no display name and no $DISPLAY environment variable Solution: run ssh command as 引用 ssh -X username@server_ip Quited from "man ssh" 引用 -X      Enables X11 forwarding.  This can also be ...
引用 1. dex2jar file.apk 引用 2. wget https://github.com/java-decompiler/jd-gui/releases/download/v1.4.0/jd-gui-1.4.0.jar 引用 3. java -jar jd-gui-1.4.0.jar 引用 4. open the jar file decompile by dex2jar in jd-gui

rails spring command

    博客分类:
  • RoR
https://github.com/rails/spring Brief     Totally automatic; no need to explicitly start and stop the background process     Reloads your application code on each run     Restarts your application when configs / initializers / gem dependencies are changed 1. start spring 引用 bundle exec spring bin ...
Global site tag (gtag.js) - Google Analytics