=== install pptpd ===
$ yum install -y ppp libpcap
$ wget "https://lnmpp.googlecode.com/files/pptpd-1.3.4-2.el6.x86_64.rpm"
$ rpm -ivh ptpd-1.3.4-2.el6.x86_64.rpm
=== vim /etc/sysctl.conf ===
net.ipv4.ip_forward = 1
#check for root user TODO: replace this with a call to "id" | |
if [ `whoami` != "root" ] ; then | |
echo "You must run this script as root. Sorry!" | |
exit 1 | |
fi |
#! /bin/bash | |
# test | |
echo -e "\033[31m[FAIL]\033[0m hello world" | |
# \033[0m 关闭所有属性 | |
# \033[1m 设置高亮度 | |
# \033[4m 下划线 | |
# \033[5m 闪烁 | |
# \033[7m 反显 |
{ | |
// Columns in which to display vertical rulers | |
//列显示垂直标尺,在中括号里填入数字,宽度按字符计算 | |
"rulers": [80], | |
// Set to true to insert spaces when tab is pressed | |
// 设为true时,缩进和遇到Tab键时使用空格替代 | |
"translate_tabs_to_spaces": true, | |
// The number of spaces a tab is considered equal to |
=== install pptpd ===
$ yum install -y ppp libpcap
$ wget "https://lnmpp.googlecode.com/files/pptpd-1.3.4-2.el6.x86_64.rpm"
$ rpm -ivh ptpd-1.3.4-2.el6.x86_64.rpm
=== vim /etc/sysctl.conf ===
net.ipv4.ip_forward = 1
vocaro's answer is absolutely correct; you can always use the CPU compute device on Snow Leopard and Lion, even if your particular graphics chip doesn't support OpenCL.
The following program will show you the OpenCL-capable devices on a given Macintosh:
// clang -framework OpenCL dumpcl.c -o dumpcl && ./dumpcl
#include <stdio.h>
#include <stdlib.h>
#include <OpenCL/opencl.h>
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
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: