相信很多人和我一样,拿到小米路由玩了几天,感觉官方的步伐不够快不够激进。既然如此,何不自己动手丰衣足食呢?
首先你得知道Linux的一些基本理论,比如什么是bash
啊,cd
、ls
这些命令怎么用等等。
其次你还得知道一些编程相关的东西,因为文章专注于Node.js的编译,所以Node.js和C++的一些基本知识是要有的。
<!DOCTYPE html> | |
<html prefix="og: http://ogp.me/ns#"> | |
<head> | |
<!-- content-type, which overrides http equivalent header. Because of charset, this meta should be set at first. --> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<!-- Overrides http equivalent header. This tells IE to use the most updated engine. --> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> | |
<!-- Tells crawlers how to crawl this page, and the role of this page. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta --> | |
<meta name="robots" content="index, follow"> |
<!DOCTYPE html> | |
<html lang="zh"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.target:lang(zh) { | |
color: green; | |
} |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#include <iostream> | |
#include <string> | |
#include <unordered_map> // need c++11 or c++0x | |
using namespace std; | |
unordered_map<string, bool> dict; | |
unordered_map<string, bool> memo; | |
inline bool is_in_dict_pri(const string& word) |
#include <QCoreApplication> | |
#include <QFile> | |
#include <QFileInfo> | |
#include <QTextStream> | |
#include <QStringList> | |
#include <QDebug> | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication a(argc, argv); |
QT += core gui concurrent | |
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets | |
TARGET = PainterTest | |
TEMPLATE = app | |
CONFIG += c++11 | |
SOURCES += main.cpp\ |
#!/bin/bash | |
# chkconfig: - 80 12 | |
# description: Controller for redis-server | |
# processname: redis | |
# useage: redis {start|stop|restart} | |
# notice, you need to edit these 4 variables bellow to suit your condition | |
BIN="/usr/local/redis/bin/redis-server" |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://fb.me/react-0.14.3.js"></script> | |
<script src="http://fb.me/react-dom-0.14.3.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.rating-table { | |
border: 0; |
yum install centos-release-SCL | |
yum install python27 python27-scldevel | |
# then add those line to your .bash_rc or .bash_profile | |
# note that space between dot and slash | |
# . /opt/rh/python27/enable | |
# Or if you want a better solution: http://developerblog.redhat.com/2014/03/19/permanently-enable-a-software-collection/ |