访问WR703N在OpenWrt的[Wiki页][wr703n-openwrt],然后在Flashing一节中找到下载链接:[squashfs-factory.bin][flash.bin],下载后别忘了[比对md5][md5sum]。[1]
进入路由器管理界面,出厂配置为http://192.168.1.1
,用户名和密码均为admin
,然后进入固件更新,选择下载的文件,然后更新。
ROOT=/work/nginx | |
mkdir -p "$ROOT" | |
cd "$ROOT" | |
apt-get install -y libpcre3 libpcre3-dev | |
# download packages | |
wget http://nginx.org/download/nginx-1.10.1.tar.gz | |
tar zxf nginx-1.10.1.tar.gz |
#ifndef LIBEVENT_CONNECTIONH | |
#define LIBEVENT_CONNECTIONH | |
extern "C" { | |
#include <event2/event.h> | |
#include <event2/buffer.h> | |
#include <event2/bufferevent.h> | |
} | |
#include <string> |
// g++ UniversalTimer.o BinaryData.o FileDataPtr.o BtcUtils.o BlockObj.o BlockUtils.o libcryptopp.a -o bootstrap.out -Icryptopp -DUSE_CRYPTOPP -D__STDC_LIMIT_MACROS -lpthread bootstrap.cpp | |
#include "BlockUtils.h" | |
int main(void) | |
{ | |
string btcdir("/home/chris/.bitcoin"); | |
string bootstrap(btcdir + "/" + "bootstrap.dat"); | |
BlockDataManager_FileRefs::GetInstance().SelectNetwork("Main"); | |
BlockDataManager_FileRefs & bdm = BlockDataManager_FileRefs::GetInstance(); |
This document specifies proposed changes to the Bitcoin transaction validity rules in order to make malleability of transactions impossible (at least when the sender doesn't choose to avoid it).
As of february 2014, Bitcoin transactions are malleable in multiple ways. This means a (valid) transaction can be modified in-flight, without invalidating it, but without access to the relevant private keys.
This is a problem for multiple reasons:
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
# -*- Mode: Python -*- | |
# OpenSSL wrapper | |
# https://github.com/joric/brutus/blob/master/ecdsa_ssl.py | |
import ctypes | |
import ctypes.util | |
ssl = ctypes.cdll.LoadLibrary (ctypes.util.find_library ('ssl') or 'libeay32') |
#include <stdio.h>
#include <string.h>
#include <openssl/sha.h>
We recently rolled out two changes to the Bitcoin block acceptance rules (BIP16 and BIP30); this document records the lessons learned and makes recommendations for handling future blockchain rule changes.
Note: there are "soft" rule changes and "hard" rule changes. "Soft" changes tighten up the rules-- old software will accept all the blocks and transactions created by new software, but the opposite may not be true. "Soft" changes do not require the entire network of miners and merchants and users to upgrade or be left behind.
"Hard" changes modify the rules in a way that old, un-upgraded software consider illegal. At this point it is much, much more difficult (some might say impossible) to roll out "hard" changes, because they require every miner and merchant and user to upgrade.