Skip to content

Instantly share code, notes, and snippets.

View bitdust's full-sized avatar
🎯
Focusing

bitdust bitdust

🎯
Focusing
View GitHub Profile
@bitdust
bitdust / dota_warkey
Created November 25, 2014 14:33
用于dota改键,尤其支持对卡尔的技能一键释放操作
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: A.N.Other <[email protected]>
;
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
@bitdust
bitdust / menu.lst
Created December 13, 2014 08:33
可引导iso文件(PE,liveCD)的grub目录文件
# This is a sample menu.lst file. You should make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install GRLDR boot strap code to MBR with the bootlace.com
# utility under DOS/Win9x or Linux.
#
# It must be UTF-8 encoding for multi-lingual support. Font lines can be
# appended to the file. The font lines should be in the unifont.hex format.
color blue/green yellow/red white/magenta white/magenta
timeout 30
@bitdust
bitdust / vimrc
Last active July 21, 2018 13:31
vimrc 从零开始
" 默认选项
set fileencodings=utf8,cp936,gb18030,big5
syntax enable
syntax on
set number " 显示行号
set nocompatible " 与vi不兼容
set showmatch " 匹配括号
" tab相关
#!/usr/bin/env python
#coding=utf-8
#
# Generate a list of dnsmasq rules with ipset for gfwlist
#
# Copyright (C) 2014 http://www.shuyz.com
# Ref https://code.google.com/p/autoproxy-gfwlist/wiki/Rules
# this file is copied from http://aenes.com/post/740.html
import urllib2
@bitdust
bitdust / main.c
Created May 25, 2015 16:54
关于线程的使用示例
/*
main.c
关于线程的使用示例
参考:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms684841.aspx
http://blog.csdn.net/morewindows/article/details/7421759
*/
@bitdust
bitdust / Makefile
Created September 9, 2015 12:32
Makefile for openwrt-njit8021xclient
#
# Copyright (C) 2006-2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=njit8021xclient
@bitdust
bitdust / tmux.conf
Last active October 16, 2015 13:09
# 替换tmux prefix键为 Ctrl+a
set -g prefix C-a
bind-key C-a send-prefix
unbind C-b
# zoom pane <-> window
#http://tmux.svn.sourceforge.net/viewvc/tmux/trunk/examples/tmux-zoom.sh
bind ^z run "tmux-zoom"
##
#copy-mode 将快捷键设置为vi 模式
MButton:: ;五狗齐飞
Send w
Send {LButton}
Send {tab}
Send w
Send {LButton}
Send {tab}
Send w
Send {LButton}
Send {tab}
@bitdust
bitdust / Makefile
Created August 28, 2016 15:53
8021xbridge core file.
#
# Copyright (C) 2006-2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=8021xbridge
// ==UserScript==
// @name Douban2Piratebay
// @namespace https://github.com/bitdust/Douban2Piratebay
// @version 0.8
// @description Add direct link to piratebay from douban movie page.
// @author bitdust
// @match https://movie.douban.com/subject/*
// @grant none
// @updateURL https://gist.github.com/bitdust/3b63ab636e5fd7be59d6a55ef9638351/raw/Douban2Piratebay.user.js
// @downloadURL https://gist.github.com/bitdust/3b63ab636e5fd7be59d6a55ef9638351/raw/Douban2Piratebay.user.js