Key/Command | Description |
---|---|
Tab | Auto-complete files and folder names |
Ctrl + A | Go to the beginning of the line you are currently typing on |
Ctrl + E | Go to the end of the line you are currently typing on |
Ctrl + U | Clear the line before the cursor |
Ctrl + K | Clear the line after the cursor |
Ctrl + W | Delete the word before the cursor |
Ctrl + T | Swap the last two characters before the cursor |
/* https://userstyles.org/styles/133201/hacker-news-readable */ | |
/* reset */ | |
body, td, table, input, textarea, .pagetop, * | |
{ | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
font-weight: 400; | |
-webkit-font-smoothing: antialiased; | |
} |
# Colors ---------------------------------------------------------- | |
export TERM=xterm-color | |
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' | |
export CLICOLOR=1 | |
alias ls='ls -G' # OS-X SPECIFIC - the -G command in OS-X is for colors, in Linux it's no groups | |
#alias ls='ls --color=auto' # For linux, etc |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import re | |
import time | |
import json | |
import logging | |
import requests |
如何获得蓝标认证?
蓝标认证事实上基于 NIP-05 标准,您可以在任意自己掌控的位置内进行认证。
方法如下:
- 在网站中建立
.well-known/nostr.json
文件 - 在上述文件内填入
{"names":{"<username>":"<public_key>"}}
- 依次进入
Profile
->Edit
->NIP-05 VERIFICATION
键入username@domain
- 点击
Save
#!/usr/bin/env python3 | |
# Dependency: pip3 install twitter | |
import twitter | |
# Go to http://apps.twitter.com/, create an app, and fill in these values: | |
consumer_key = 'www' | |
consumer_secret = 'xxx' | |
access_token = 'yyy' | |
access_token_secret = 'zzz' |
sudo apt-get install -y vim
sudo apt-get install -y git
sudo apt-get install -y libtool
sudo apt-get install -y automake
https://github.com/libevent/libevent
git clone git@github.com:libevent/libevent.git
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Pre-loaded theme | |
ZSH_THEME="agnoster" | |
# (Will change per machine) | |
DEFAULT_USER="danmiller" | |
# Dots are pretty. |
curl -fsSL https://get.docker.com | bash | |
curl -L "https://github.com/docker/compose/releases/download/1.25.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
chmod a+x /usr/local/bin/docker-compose | |
# 创建个软链接,以后用 dc 命令来代替 docker-compose | |
rm -rf `which dc` # 若系统中存在 dc 则删除,这个 dc 就是个计算器,完全没有用 | |
ln -s /usr/local/bin/docker-compose /usr/bin/dc |
I've been wanting to do a serious project in Go. One thing holding me back has been a my working environment. As a huge PyCharm user, I was hoping the Go IDE plugin for IntelliJ IDEA would fit my needs. However, it never felt quite right. After a previous experiment a few years ago using Vim, I knew how powerful it could be if I put in the time to make it so. Luckily there are plugins for almost anything you need to do with Go or what you would expect form and IDE. While this is no where near comprehensive, it will get you writing code, building and testing with the power you would expect from Vim.
I'm assuming you're coming with a clean slate. For me this was OSX so I used MacVim. There is nothing in my config files that assumes this is the case.