Note: This post is a summary of information paraphrased from an excellent blog post by Christian Sepulveda.
Create the app and download the necessary dependencies.
| 相同的colorschema,vim和gvim的颜色差距还是很大的,因为gvim使用X的颜色,而vim只能使用终端提供的颜色,所以造成了二者的显示差异。 | |
| xterm开启256色 | |
| 现在的终端模拟器早就支持256色了,不过默认可能还是8色的。 | |
| 开启xterm终端,查看xterm终端支持的颜色 | |
| 命令: | |
| $ tput colors | |
| 8 |
| #!/bin/bash | |
| sudo apt-get install clang libicu-dev libcurl4-openssl-dev lldb git wget unzip -y | |
| wget https://swift.org/builds/swift-4.1-release/ubuntu1604/swift-4.1-RELEASE/swift-4.1-RELEASE-ubuntu16.04.tar.gz | |
| tar zxf swift-4.1*.tar.gz && rm -rf swift-4.1*.tar.gz | |
| sudo mv swift-4.1* /swift-4.1 | |
| echo "export PATH=/swift-4.1/usr/bin:\"\${PATH}\"" >> ~/.bashrc | |
| source ~/.bashrc |
Create the app and download the necessary dependencies.
| # GenServer callbacks and return values | |
| ## init(args) | |
| {:ok, state} | |
| {:ok, state, timeout} | |
| :ignore | |
| {:stop, reason} | |
| ## handle_call(msg, {from, ref}, state) |
新款的树莓派3B功能之丰富,性能之强悍,让我垂涎。考虑到家里的网件 WNDR3700v2 也服役四年有余了。还是败了一个树莓派3B回来打造成新的路由。
WARNING 本文所有指令均仅供参考,切勿无脑复制粘贴!
〇 安装系统
| defmodule DeeplyNested do | |
| def get_nat_ip(input) do | |
| steps = [first_map_with_key("accessConfigs"), | |
| first_map_with_key("natIP") | |
| ] | |
| get_in(input, steps) | |
| end | |
| defp first_map_with_key(key) do |
| (setq url-gateway-method 'socks) | |
| (setq socks-server '("Default server" "127.0.0.1" 1080 5)) |