Skip to content

Instantly share code, notes, and snippets.

@tsl0922
tsl0922 / .tmux.conf
Last active April 27, 2026 17:51
vim style tmux config
# vim style tmux config
# use C-a, since it's on the home row and easier to hit than C-b
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
set -g base-index 1
# Easy config reload
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
@imzhi
imzhi / .vimrc
Last active August 18, 2016 08:09
.vimrc 加强配置
"""""""""""""""""""""""""""""""""
" Refer to https://github.com/amix/vimrc
"""""""""""""""""""""""""""""""""
let g:isWindows = has('win32') || has('win64')
let g:isGUI = has('gui_running')
set nocompatible " be iMproved
filetype off " required!
if g:isWindows
@tiye
tiye / copy.md
Created March 18, 2014 01:32
Github 上有趣的资料

和大家分享一下我整理的有趣的Github repository,项目地址在repo_starred

欢迎大家fork或者给我发issue

部分内容如下,不定期更新:

GitHub Starred Projects

##navigation

@clintongormley
clintongormley / load_test_data.sh
Last active November 28, 2025 02:45
Run these commands in your shell to setup the test data for Chapter 5
curl -XPUT 'http://localhost:9200/us/user/1?pretty=1' -d '
{
"email" : "[email protected]",
"name" : "John Smith",
"username" : "@john"
}
'
curl -XPUT 'http://localhost:9200/gb/user/2?pretty=1' -d '
{
@llbbl
llbbl / awesome-php.md
Last active April 1, 2026 23:12 — forked from ziadoz/awesome-php.md
Awesome PHP Libraries and Resources

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Categories

  • Composer
  • Composer Related
  • Frameworks
  • Micro Frameworks
@luxixing
luxixing / nginx-location
Created November 1, 2013 09:16
nginx location 匹配规则
1 普通匹配,遵循最长匹配规则,假设一个请求匹配到了两个普通规则,则选择匹配长度大的那个
例如:
location /{
[matches]
}
location /test{
[matches]
}
2 精确匹配
location = /{
@un33k
un33k / nginx.conf
Last active May 22, 2025 09:14
Enable Nginx to send Content-Dispositions on specific files
server {
listen *:80;
server_name www.example.com;
rewrite ^(.*) http://example.com $1 permanent;
}
server {
listen *:80;
server_name example.com;
@tilboerner
tilboerner / .gitconfig
Last active January 17, 2017 03:14
useful git aliases and config
[user]
name="NAME HERE"
email="E-MAIL HERE"
[alias]
co = checkout
dt = difftool
cm = commit
cma = "commit -a"
s = status
@19h
19h / reset.js
Created February 19, 2013 22:51
Node.js — Clear Terminal / Console. Reset to initial state.
console.reset = function () {
return process.stdout.write('\033c');
}