Skip to content

Instantly share code, notes, and snippets.

View jzztf's full-sized avatar
🏠
Working from home

jzztf

🏠
Working from home
View GitHub Profile
@jzztf
jzztf / dotvimrc
Created April 6, 2019 06:08
dotvimrc of jzztf
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@jzztf
jzztf / configure_git_use_proxy.md
Last active April 5, 2019 12:38
config git use proxy

来自:http://www.afox.cc/archives/404

不同的协议他的代理配置各不相同。core.gitproxy 用于 git:// 协议,http.proxy 用于 http:// 协议。

Git常用的有两种协议

不同的协议他的代理配置各不相同。core.gitproxy 用于 git:// 协议,http.proxy 用于 http:// 协议。

常见的git clone 协议如下:
@jzztf
jzztf / xfce_change_DPI
Created April 4, 2019 13:54
xfce_change_DPI
sxettingeditor > xft > dpi > 116(default 96)
@jzztf
jzztf / linux_install.md
Created March 18, 2019 03:13
linux installs
  1. change the source of applications
vim /etc/apt/sources.list

# vim-replace
# :%s/archive\.ubuntu/mirrors\.aliyun/g
# :%s/security\.archive\.ubuntu/mirrors\.aliyun/g
@jzztf
jzztf / win10_LTCS.txt
Last active March 18, 2019 02:43
windows10 enteprise LTCS
https://www.landiannews.com/archives/51131.html
------
slmgr -ipk M7XTQ-FN8P6-TTKYV-9D4CC-J462D
slmgr -skms kms.03k.org
slmgr -ato
slmgr -dlv
-----
@jzztf
jzztf / install_emacs.md
Last active March 18, 2019 02:47
install emacs26.1 to ubuntu by make
sudo apt update && sudo apt upgrade -y
sudo apt install build-essential libncurses-dev
wget https://mirrors.tuna.tsinghua.edu.cn/gnu/emacs/emacs-26.1.tar.gz
cd emacs26.1
./configure --without-x --with-gnutls=no
make
sudo make install
@jzztf
jzztf / emacs_marco.md
Created January 24, 2019 06:11
emacs 录制宏

参考链接:https://blog.csdn.net/lvye1221/article/details/9236399

开始录制宏

可以按 "C-x (" 也可以按 "F3" 开始录制宏,接下来的操作就会被录制下来。例如:在录制之前,先将 emacs 切成两个窗口(C-x 2 或 C-x 3) 并将光标放置到正确位置,开始录制宏。

处理数据

这个过程就是为了得到一个可以循环操作的宏,可以包括查找、复制、删除等一切emacs中的正常操作。例如:从1个窗口中,拷贝需要的数据后,移动到另外一个窗口,粘贴数据,将光标移动到下一个位置,最后再将光标回到原来的窗口位置。

@jzztf
jzztf / problems_solved.org
Created January 1, 2019 09:31
probems and solved
@jzztf
jzztf / init.el
Created December 30, 2018 13:51
emacs
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(when (>= emacs-major-version 24)
(require 'package)
(package-initialize)
(setq package-archives '(("gnu" . "http://elpa.emacs-china.org/gnu/")
("melpa" . "http://elpa.emacs-china.org/melpa/"))))
@jzztf
jzztf / mapping_caps_ctrl.md
Last active April 4, 2019 13:30
win10 下修改注册表,映射caps_lock和ctrl健;linux编辑配置文件映射caps_lock和ctrl键
  1. win+r输入regidit打开注册表
  2. 文件菜单选择导出,对注册表进行备份
  3. 点击HKEY_LOCAL_MACHINE -> System -> CurrentControlSet -> Control -> KeyBoard Layout,一定是keyBoard Layout
  4. 右键新建 -> 二进制值,对新建文件重命名Scancode Map
  5. 右键scancode Map -> 修改,编辑弹出的对话框
  6. 输入以下内容(似乎不能复制,但是其自己会定位,两位数和四位数,自动跳转)
0000 00 00 00 00 00 00 00 00
0008 03 00 00 00 1D 00 3A 00
0010 3A 00 1D 00 00 00 00 00