访问WR703N在OpenWrt的[Wiki页][wr703n-openwrt],然后在Flashing一节中找到下载链接:[squashfs-factory.bin][flash.bin],下载后别忘了[比对md5][md5sum]。[1]
进入路由器管理界面,出厂配置为http://192.168.1.1
,用户名和密码均为admin
,然后进入固件更新,选择下载的文件,然后更新。
#!/bin/bash | |
# Dirty script to build Unity under ArchLinux | |
# Thanks for PKGBUILDs, chenxiaolong! | |
# Valdos Sine <fat0troll at riseup dot net> 2012 | |
echo "Run it in directory which will be build root ;)" | |
echo "Make sure you're have sudo without password or you will stuck in every package installation" | |
echo "GO!" | |
# Checking main repo... |
# /etc/nginx/sites-available/blog.shellexy.info | |
server { | |
resolver 8.8.8.8; | |
listen 80; | |
server_name blog.shellexy.info; | |
#access_log off; | |
access_log /var/log/nginx/blog.shellexy.info.access.log; | |
location / { | |
#避免远方启用压缩导致无法替换纯文本 | |
proxy_set_header Accept-Encoding ""; |
var user = { | |
validateCredentials: function (username, password) { | |
return ( | |
(!(username += '') || username === '') ? { error: "No Username Given.", field: 'name' } | |
: (!(username += '') || password === '') ? { error: "No Password Given.", field: 'pass' } | |
: (username.length < 3) ? { error: "Username is less than 3 Characters.", field: 'name' } | |
: (password.length < 4) ? { error: "Password is less than 4 Characters.", field: 'pass' } | |
: (!/^([a-z0-9_-]+)$/i.test(username)) ? { error: "Username contains invalid characters.", field: 'name' } | |
: false | |
); |
import requests | |
from requests.auth import OAuth1 | |
url = u'https://api.twitter.com/1/account/settings.json' | |
client_key = u'...' | |
client_secret = u'...' | |
resource_owner_key = u'...' | |
resource_owner_secret = u'...' |
#! /usr/bin/env bash | |
# Author: Damien Cassou | |
# | |
# This is the script I use to build Emacs packages for Ubuntu. These | |
# packages are uploaded to | |
# https://launchpad.net/~cassou/+archive/emacs/. Each package is | |
# either build from a Debian package or from | |
# http://emacs.naquadah.org/. |
# | |
# .zshenv | |
# .zshenv is the 1st file zsh reads; it's read for every shell, even if | |
# started with -f (setopt NO_RCS) | |
# .zprofile | |
# read after zshenv, if the shell is a login shell | |
# .zshrc | |
# read after zprofile, if the shell is an interactive shell | |
# .zlogin | |
# read after zshrc, if the shell is a login shell |
if (typeof (AC) === "undefined") { | |
AC = {} | |
} | |
AC.ImageReplacer = Class.create({ | |
_defaultOptions: { | |
listenToSwapView: true, | |
filenameRegex: /(.*)(\.[a-z]{3}($|#.*|\?.*))/i, | |
filenameInsert: "_☃x", | |
ignoreCheck: /(^http:\/\/movies\.apple\.com\/|\/105\/|\/global\/elements\/quicktime\/|_(([2-9]|[1-9][0-9]+)x|nohires)(\.[a-z]{3})($|#.*|\?.*))/i, | |
attribute: "data-hires", |
# -*- coding: utf-8 -*- | |
##################################################### | |
## Cloud CLI is a basic Dropbox client that lets you: | |
## upload, download, move and list files. | |
## | |
## Requirements: cmd2, Dropbox Python SDK | |
###################################################### | |