如何冥想?2500年的智慧

转自 https://zhuanlan.zhihu.com/p/19699820

在2014年的2月12日至2月22日,我去到了一个完全与世隔绝的山沟沟的一间小破院里苦修。期间,我被强制彻底脱离手机、电脑、信号、网络和现代社会,连续十天每天打坐冥想10个小时。在这十天里,我和十个大男人一起每天早上4点起身,过午不食,且连续十天禁止言语、手势、眼神上的任何交流。在这个物质和社交的荒岛上,唯一能做的,就是打坐、打坐、打坐。因为折磨,以前只接受过一些短期冥想训练的我,多次有过连夜翻墙逃出去的念头,但最终这十天彻底改变了我以往对“冥想”的理解。

第三天,我感知到了鼻尖上非常细微的脉搏跳动;第六天,我突然开始能享受所有从小厌恶的食物(生姜、香菜、胡萝卜);第九天,我有了茅塞顿开的理解:与我曾经理解的相反,冥想并不是为了追求过程中和过程后心境舒适的感受。而在出关重新接触世俗中的第十一天,我发现这个构建于实际体验之上的理解,从最根本的层面提高了人在世俗中处理事情的能力,这也包括困扰我多年的与母亲的日常关系、以及改变情绪失衡的能力。

这篇文章,是讲述这十天里发生的安静的故事。

无根树

(一)

无根树,花正幽,贪恋荣华谁肯休。
浮生事,苦海舟,荡去漂来不自由。
无边无岸难泊系,常在鱼龙险处游。
肯回首,是岸头,莫待风波坏了舟。

Rust parser combinator - nom

This is the manual of nom from docs.rs.

1 nom, eating data byte by byte

nom is a parser combinator library with a focus on safe parsing, streaming patterns, and as much as possible zero copy.

Example

extern crate nom;

use nom::{
  IResult,
  bytes::complete::{tag, take_while_m_n},
  combinator::map_res,
  sequence::tuple
};

#[derive(Debug,PartialEq)]
pub struct Color {
  pub red:     u8,
  pub green:   u8,
  pub blue:    u8,
}

fn from_hex(input: &str) -> Result<u8, std::num::ParseIntError> {
  u8::from_str_radix(input, 16)
}

fn is_hex_digit(c: char) -> bool {
  c.is_digit(16)
}

fn hex_primary(input: &str) -> IResult<&str, u8> {
  map_res(
    take_while_m_n(2, 2, is_hex_digit),
    from_hex
  )(input)
}

fn hex_color(input: &str) -> IResult<&str, Color> {
  let (input, _) = tag("#")(input)?;
  let (input, (red, green, blue)) = tuple((hex_primary, hex_primary, hex_primary))(input)?;

  Ok((input, Color { red, green, blue }))
}

fn main() {
  assert_eq!(hex_color("#2F14DF"), Ok(("", Color {
    red: 47,
    green: 20,
    blue: 223,
  })));
}

Proxy Tips

1 git

github的repo拖不下来可以参考:

[http]
  proxy = "socks5://127.0.0.1:1091"
  sslVerify = false
  postBuffer = 524288000
  lowSpeedLimit = 0
  lowSpeedTime = 999999
  
[https]
  proxy = "socks5://127.0.0.1:1091"
  sslVerify = false
  postBuffer = 524288000
  lowSpeedLimit = 0
  lowSpeedTime = 999999

[core]
  symlinks = true
  gitProxy = 'socks5://127.0.0.1:1091'

修改到~/.gitconfig文件中作为全局配置。