Skip to content

Instantly share code, notes, and snippets.

View xfabs's full-sized avatar
🎯
Focusing

XFABS xfabs

🎯
Focusing
View GitHub Profile
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
@xfabs
xfabs / README.md
Created July 31, 2017 15:06 — forked from mariotaku/README.md
Followers Cleaner Script

Usage

  1. Execute pip3 install -r requirements.txt to install dependencies
  2. Execute followers_clear.py and follow instructions.

Notes

Consumer keys can be found here. Use these keys instead of applying yourself can get rid of rate limit.

@xfabs
xfabs / vimrc
Last active August 27, 2017 03:59
syntax on
set nu
set mouse=a
set ts=4
set fileencodings=ucs-bom,utf-8,utf-16,gbk,big5,gb18030,latin1
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'aa96f26c2b67226a324c27919f1eb05f21c248b987e6195cad9690d5c1ff713d53020a02ac8c217dbf90a7eacc9d141d') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer
@xfabs
xfabs / laravel-ubuntu.conf
Last active November 29, 2016 08:17
Nginx Conf
server {
listen 80;
server_name www.iplaysoft.cn;
location / {
return 301 http://iplaysoft.cn$request_uri;
}
}
server {
listen 80;
// 基于域名判断并屏蔽(REJECT)请求
DOMAIN,pingma.qq.com,REJECT
*
// 基于域名后缀判断屏蔽(REJECT)请求
DOMAIN-SUFFIX,flurry.com,REJECT
*
// 基于关键词后缀判断走代理(Proxy),强制不尊重系统代理的请求走
Packet-Tunnel-Provider DOMAIN-KEYWORD,google,Proxy,force-remote-dns
*
// 基于域名后缀判断请求走直连(DIRECT)
@xfabs
xfabs / 0_reuse_code.js
Created November 23, 2016 10:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@xfabs
xfabs / phpinfo.php
Last active November 23, 2016 10:05
phpinfo
<?php
echo phpinfo();
?>
@xfabs
xfabs / vm_check.sh
Last active November 23, 2016 10:06
vm_check
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
export PATH
yum install -y gcc gcc-c++ gdb
wget http://people.redhat.com/~rjones/virt-what/files/virt-what-1.12.tar.gz
tar zxvf virt-what-1.12.tar.gz
cd virt-what-1.12/
./configure
make && make install
virt-what