Skip to content

Instantly share code, notes, and snippets.

jaseywang jaseywang

Block or report user

Report or block jaseywang

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
View gist:08c7d7d78ee97112162b1772b84d6eaa
资产优化,资源大量富裕,100+
MHA 上线/DB backup/数据迁移(MySQL/RDS),按业务拆分
CDN,调了一个月,没测试直接上线
MySQL 审计,没有测试直接上线/growingIO 规划混乱
webvirtmgt,测试环境上线,业务量太小,下线
办公网双线,动静态 BGP 切换,院方的一些问题
故障,明确是运维的故障已经全部优化修复
View gist:5939f34b269987a32cf97225be708902
Jun 20 22:53:09 jaseywang vps pptpd: ======= Backtrace: =========
Jun 20 22:53:09 jaseywang vps pptpd: /lib64/libc.so.6(__fortify_fail+0x37)[0x7fdba6416047]
Jun 20 22:53:09 jaseywang vps pptpd: /lib64/libc.so.6(+0x10d200)[0x7fdba6414200]
Jun 20 22:53:09 jaseywang vps pptpd: /lib64/libc.so.6(+0x10c709)[0x7fdba6413709]
Jun 20 22:53:09 jaseywang vps pptpd: /lib64/libc.so.6(_IO_default_xsputn+0xbc)[0x7fdba637f60c]
Jun 20 22:53:09 jaseywang vps pptpd: /lib64/libc.so.6(_IO_vfprintf+0xb0d)[0x7fdba634ec3d]
Jun 20 22:53:09 jaseywang vps pptpd: /lib64/libc.so.6(__vsprintf_chk+0x88)[0x7fdba6413798]
Jun 20 22:53:09 jaseywang vps pptpd: /lib64/libc.so.6(__sprintf_chk+0x7d)[0x7fdba64136ed]
Jun 20 22:53:09 jaseywang vps pptpd: /usr/lib/../lib64/pppd/2.4.5/radius.so(rc_mksid+0x43)[0x7fdba4272763]
Jun 20 22:53:09 jaseywang vps pptpd: /usr/lib/../lib64/pppd/2.4.5/radius.so(+0x48f0)[0x7fdba426d8f0]
View samba.ldif
# AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify.
# CRC32 e457e536
dn: cn={5}samba
objectClass: olcSchemaConfig
cn: {5}samba
olcAttributeTypes: {0}( 1.3.6.1.4.1.7165.2.1.24 NAME 'sambaLMPassword' DESC
'LanManager Password' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.1
15.121.1.26{32} SINGLE-VALUE )
olcAttributeTypes: {1}( 1.3.6.1.4.1.7165.2.1.25 NAME 'sambaNTPassword' DESC
'MD4 hash of the unicode password' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6
@jaseywang
jaseywang / cisco.schema
Created Feb 3, 2017
default cisco ldap schema
View cisco.schema
attributetype ( 1.3.6.1.4.1.9.500.1.1
NAME 'CiscoBanner'
DESC 'Banner Name for VPN users'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
ORDERING caseIgnoreOrderingMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.9.500.1.2
@jaseywang
jaseywang / cn={4}cisco.ldif
Last active Apr 22, 2019
extended cisco ldap schema
View cn={4}cisco.ldif
# AUTO-GENERATED FILE - DO NOT EDIT !! Use ldapmodify.
# CRC32 bc108cba
dn: cn={4}cisco
objectClass: olcSchemaConfig
cn: {4}cisco
olcAttributeTypes: {0}( 1.3.6.1.4.1.9.500.1.1 NAME 'CiscoBanner' DESC 'Banne
rName for VPN users' EQUALITY caseIgnoreMatch ORDERING caseIgnoreOrderingMa
tch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1
28} SINGLE-VALUE )
olcAttributeTypes: {1}( 1.3.6.1.4.1.9.500.1.2 NAME 'CiscoACLin' DESC 'ACL in
View 8.2.3. HTTP log format
8.2.3. HTTP log format
----------------------
The HTTP format is the most complete and the best suited for HTTP proxies. It
is enabled by when "option httplog" is specified in the frontend. It provides
the same level of information as the TCP format with additional features which
are specific to the HTTP protocol. Just like the TCP format, the log is usually
emitted at the end of the session, unless "option logasap" is specified, which
generally only makes sense for download sites. A session which matches the
"monitor" rules will never logged. It is also possible not to log sessions for
View read dylospm2.5, pm10 data
import serial
import time
import sys
port = serial.Serial("/dev/ttyUSB0", 9600)
while True:
with open("data.txt", "a") as f:
data = time.ctime() + "," + port.readline()
print data
@jaseywang
jaseywang / buf mode
Created Mar 2, 2015
different streams test, works on 3.5.0-generic, 4.6.3 gcc
View buf mode
#include "apue.h"
#include <stdio.h>
#include <stdlib.h>
void pr_stdio(const char *name, FILE *fp);
int main(void){
FILE *fp;
char c;
@jaseywang
jaseywang / strace -t ping baidu.com(options timeout:1)
Created Oct 28, 2014
strace -t ping baidu.com(options timeout:1)
View strace -t ping baidu.com(options timeout:1)
$ strace -t ping baidu.com
21:25:06 execve("/bin/ping", ["ping", "baidu.com"], [/* 29 vars */]) = 0
21:25:06 brk(0) = 0x7fb70fcc2000
21:25:06 fcntl(0, F_GETFD) = 0
21:25:06 fcntl(1, F_GETFD) = 0
21:25:06 fcntl(2, F_GETFD) = 0
21:25:06 access("/etc/suid-debug", F_OK) = -1 ENOENT (No such file or directory)
21:25:06 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb70f5ec000
21:25:06 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
21:25:06 open("/etc/ld.so.cache", O_RDONLY) = 3
@jaseywang
jaseywang / strace -t getent hosts baidu.com
Created Oct 28, 2014
strace -t getent hosts baidu.com(default setting)
View strace -t getent hosts baidu.com
$ strace -t getent hosts baidu.com
21:13:09 execve("/usr/bin/getent", ["getent", "hosts", "baidu.com"], [/* 29 vars */]) = 0
21:13:09 brk(0) = 0x1168000
21:13:09 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f779687f000
21:13:09 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
21:13:09 open("/etc/ld.so.cache", O_RDONLY) = 3
21:13:09 fstat(3, {st_mode=S_IFREG|0644, st_size=68446, ...}) = 0
21:13:09 mmap(NULL, 68446, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f779686e000
21:13:09 close(3) = 0
21:13:09 open("/lib64/libc.so.6", O_RDONLY) = 3
You can’t perform that action at this time.