Skip to content

Instantly share code, notes, and snippets.

View axhello's full-sized avatar
🎮
Busy

axhello axhello

🎮
Busy
  • GienTech
  • Shenzhen, China
  • 13:20 (UTC +08:00)
View GitHub Profile
@axhello
axhello / .vimrc
Created August 3, 2019 12:55
my vim profile
set mouse-=a
set pastetoggle=<F9>
syntax on
set backspace=2
set autoindent
@axhello
axhello / .zshrc
Last active May 14, 2019 05:17
my .zshrc file
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/root/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@axhello
axhello / zsh-install.sh
Last active December 9, 2019 07:27
zsh安装
#!/bin/bash
# usage:
# curl -fsSL https://gist.githubusercontent.com/axhello/4a1f977cadddde41e6341f060ecf1e08/raw/ -o zsh.sh && sudo bash zsh.sh
install_zsh(){
echo "[!] ENTER exit manually!"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
}
install_zsh_plugins(){
sudo apt-get update
sudo apt-get install bcmwl-kernel-source
sudo modprobe wl
Opensuse:
Add repo:
zypper ar -f -n packman http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_42.2/ packman
@axhello
axhello / Configuration Backup
Last active February 12, 2018 14:09
update by Atom
### Atom Configuration Backup
@axhello
axhello / Document.md
Last active February 18, 2016 04:08
Sublime Text 3 插件整理文档

Package Control

通过快捷键ctrl+``,或者菜单View` > `Show Console` 打开控制台;

import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

Github: https://github.com/wbond/package_control