Skip to content

Instantly share code, notes, and snippets.

yang wzyuliyang

Block or report user

Report or block wzyuliyang

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wzyuliyang
wzyuliyang / git-export
Created Oct 28, 2016 — forked from kristofferh/git-export
"Export" a git repository to zip file
View git-export
git archive --format zip --output /full/path/to/zipfile.zip master
@wzyuliyang
wzyuliyang / ceph-upgrade-hammer-jewel.sh
Created Oct 11, 2016 — forked from wido/ceph-upgrade-hammer-jewel.sh
Ceph upgrade OSD from Hammer to Jewel
View ceph-upgrade-hammer-jewel.sh
#!/bin/bash
#
# Script for updating a running Ceph Hammer cluster to Jewel
#
# This has to be run on the OSD node(s) as root
#
# Written for and tested on CentOS 7
#
# Used to upgrade Ceph at ODC-Noord in the Netherlands
#
@toast38coza
toast38coza / github_repo.py
Created Feb 9, 2016
An Ansible module for managing github repos
View github_repo.py
#!/usr/bin/python
DOCUMENTATION = '''
---
module: github_repo
short_description: Manage your repos on Github
'''
EXAMPLES = '''
- name: Create a github Repo
@jason5ng32
jason5ng32 / surge.conf
Last active Nov 22, 2019
Surge Configs ( for 2.x )
View surge.conf
[General]
loglevel = notify
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
# dns-server = 119.29.29.29,223.5.5.5,114.114.115.115
# external-controller-access = PASSWORD@0.0.0.0:6155
# ipv6 = true
// REMEMBER TO CHANGE THE external-controller-access' PASSWORD
View app.rb
require 'sinatra'
get '/' do
"Hello world"
end
@bahayman
bahayman / gist:9369651
Created Mar 5, 2014
tcpdump http monitor
View gist:9369651
Use TCPDUMP to Monitor HTTP Traffic
1. To monitor HTTP traffic including request and response headers and message body:
tcpdump -A -s 0 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)'
2. To monitor HTTP traffic including request and response headers and message body from a particular source:
tcpdump -A -s 0 'src example.com and tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)'
3. To monitor HTTP traffic including request and response headers and message body from local host to local host:
View Git常用备忘.md

Git常用备忘.md

引自:http://blogread.cn/it/article/6282?f=sa

配置

git config --global user.name "robbin"  
git config --global user.email "fankai@gmail.com"
git config --global color.ui true
@happypeter
happypeter / get_linode_ready_for_rails.sh
Last active Aug 15, 2016
everything needed to install a rails project on linode ubuntu1204, happycasts as an example
View get_linode_ready_for_rails.sh
#################################
#
# 本清单基于 ubuntu 12.04,
#
# 只是一个清单,不是一个可以安全执行的脚本
#
#################################
# create a linode,login as root, and create a common user for all the tasks
ssh root@the_ip_of_this_linode
You can’t perform that action at this time.