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 / 00-prompts-start.py
Last active May 20, 2018 14:16
ipython config
# coding: utf-8
#----------------------------------------------------
# .ipython/profile_default/startup/00-prompts-start.py
#----------------------------------------------------
# 参考: <https://ipython.readthedocs.io/en/stable/config/details.html#custom-prompts>
# 将此文件添加到".ipython/profile_default/startup/"即可
from IPython.terminal.prompts import Prompts, Token
@jzztf
jzztf / .vimrc
Created April 24, 2018 03:34
vim config
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
@jzztf
jzztf / mkdocs.yml
Created April 25, 2018 06:33
mkdocs 配置
site_name: python notes
site_url: www.xx.com
theme:
name: 'material'
font:
text: 'Ubuntu'
code: 'Ubuntu Mono'
palette:
primary: 'cyan'
accent: 'indigo'
@jzztf
jzztf / 诡异的bug.md
Last active May 8, 2018 03:11
诡异的bug

fcitx

lunbuntu-fcitx搜狗拼音输入法最近总崩溃,看着内存没使用多少,计算机就卡住了.怀着对搜狗的不信任,决定使用googlepinyin,还担心有遗漏,结果就是重装fcitx多次,出现各种warning,结果不知怎么重启后,设置inputmethod,就好了

  • 完全卸载fcitx

sudo apt-get remove fcitx*

  • 安装fcitx,使用了synaptic,因为其会自动标记所需包,同时勾选googlepinyin
  • 使用fcitx-diagnose能够检测哪里有问题,主要fcitx-remote没有启动,google不到答案
@jzztf
jzztf / scp_alias.md
Last active August 18, 2018 09:59
USE SCP WITH ALIAS

USE SCP WITH ALIAS

first step:

alias hostNameAlias='ssh hostName@xx.xx.xxx.xx'

second step:

@jzztf
jzztf / vim_vixen.md
Last active November 22, 2018 08:21
cheatsheet for vim vixen

vim vixen

cheatsheet for vim vixen

  • t - 调用consle,:tabopen
  • d - 关闭当前页面
  • u - 打开刚才关闭的页面
  • j - 向下滚动
  • k - 向上滚动
  • Ctrl+b - 向上一屏
@jzztf
jzztf / enlightenment.sh
Last active November 30, 2018 12:03
enlightenment
sudo pacman -S luajit libjpeg gstreamer freetype2 fontconfig fribidi libx11 xorg-server-devel libxrender giflib libtiff poppler libspectre libraw librsvg libpulse libxcursor libxcomposite libxinerama libxrandr libxss bullet gst-plugins-base-libs doxygen check
@jzztf
jzztf / virtualbox_manjaro.md
Last active December 3, 2018 05:27
manjaro in virtualbox cannot mount share files!

virtualbox probelms

problem_describtion:

after set shared file in virtualbox,cannot mount share files inmanjaro(archlinux)

mount vboxguest_additional_os
cd /run/media/manjaro/VBox_GA...
./autoreun.sh
sudo mount -t vboxsf shared_file ~/mount_point
@jzztf
jzztf / amazon_outline.md
Last active December 23, 2018 07:44
amazon install outline

install outline with amazon

打开https://www.cloudping.info/测速,看选哪个区建立实例

  1. 打开https://www.getoutline.org/安装“outlinemanger”,可以根据指示进行设置
  2. 设置完成,将生成码,复制到“outlinemanager”
  3. 创建新的key,复制下“ss//。。。”,复制到“outlineclient”进行上网