Skip to content

Instantly share code, notes, and snippets.

@yerstd
yerstd / init.el
Created July 23, 2021 11:22 — forked from TheBB/init.el
(defun dotspacemacs/layers ()
(setq-default
dotspacemacs-configuration-layer-path '("~/.spacemacs.d/")
dotspacemacs-delete-orphan-packages t
dotspacemacs-distribution 'spacemacs
dotspacemacs-configuration-layers
`((auto-completion
:variables
@yerstd
yerstd / # neovim - 2020-10-13_15-20-42.txt
Created October 13, 2020 07:21
neovim on macOS 10.15.7 - Homebrew build logs
Homebrew build logs for neovim on macOS 10.15.7
Build date: 2020-10-13 15:20:42
@yerstd
yerstd / listen1_aha_playlist.md
Created June 1, 2020 02:11
updated by Listen1(http://listen1.github.io/listen1/) at 6/1/2020, 10:11:36 AM

本歌单由Listen1创建, 歌曲数:111,歌单数:2,点击查看更多

@yerstd
yerstd / docker-compose.yml
Created May 7, 2020 17:06
nsqio docker-compose configuration
version: '3.3'
services:
nsqlookupd:
image: nsqio/nsq
networks:
nonet:
command: /nsqlookupd --verbose
ports:
- "4160:4160"
- "4161:4161"
@yerstd
yerstd / README.txt
Created March 23, 2020 12:54 — forked from ncw/README.txt
Client side certificates with go
This demonstrates how to make client side certificates with go
First generate the certificates with
./makecert.sh [email protected]
Run the server in one terminal
go run server.go
http://benmezger.me/post/109706270421/git-ignore-file-lines
Git: ignore file lines
I’ve always asked myself, if git can ignore files (using .gitignore), can it also ignore file lines? Well, not by default, but you can hack it.
It might sound stupid, but say you are working with a bunch of guys on a project, where somewhere in an important file you have something like this;
...
def connect_db():
@yerstd
yerstd / gox.sh
Last active March 16, 2019 03:12
#!/usr/bin/env bash
xpath=$GOPATH/src/golang.org/x;
cd $xpath;
mkdir -p $xpath;
ls;
for name in "glog" "image" "perf" "snappy" "term" "sync" "winstrap" "cwg" "leveldb" "text" "net" "build" "protobuf" "dep" "sys" "crypto" "gddo" "tools" "scratch" "proposal" "mock" "oauth2" "freetype" "debug" "mobile" "gofrontend" "lint" "appengine" "geo" "review" "arch" "vgo" "exp" "time"
do
" Dark powered mode of SpaceVim, generated by SpaceVim automatically.
let mapleader="\<Space>"
let g:spacevim_enable_debug = 1
let g:spacevim_realtime_leader_guide = 1
call SpaceVim#layers#load('incsearch')
call SpaceVim#layers#load('lang#c')
call SpaceVim#layers#load('lang#elixir')
call SpaceVim#layers#load('lang#go')
call SpaceVim#layers#load('lang#haskell')
call SpaceVim#layers#load('lang#java')
搜狗双拼口诀
搜狗双拼的规则
双拼是用定义好的单字母代替较长的多字母韵母或声母来进行输入的一种方式。
例如:如果 T=t, M=ian,键入两个字母 “TM” 就会输入拼音 “tian” 。
使用双拼可以减少 击键次数,但是需要记忆字母对应的键位,但是熟练之后效率会有一定提高。
如果 使用双拼,要在设置属性窗口把双拼选上即可。
对于单韵母字,需要在前面输入字母 O+韵母。例如:输入 OA → A ,输入 OO → O , 输入 OE → E 。
而在自然码双拼方案中,和自然码输入法的双拼方式一致,对于单韵 母字,需要输入双韵母,例如:输入 AA → A ,输入 OO → O ,输入 EE → E 。
#!/bin/bash
logfile=big-log.txt
keyStr=""
valStr=""
awk -F{ '{print $2}' $logfile | awk -F, '{
for (i=1;i<=5;i++){
print $i;
}