Skip to content

Instantly share code, notes, and snippets.

View Ivlyth's full-sized avatar
🎯
Focusing

Ivlyth Ivlyth

🎯
Focusing
View GitHub Profile
@Ivlyth
Ivlyth / autopac.sh
Created November 12, 2015 14:59 — forked from lwr/autopac.sh
使用 https://github.com/clowwindy/gfwlist2pac 生成自定义 PAC 的辅助脚本
#!/bin/bash
GFWLIST=https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt
PROXY=127.0.0.1:7070
cd `dirname "${BASH_SOURCE[0]}"`
echo "Downloading gfwlist from $GFWLIST"
curl "$GFWLIST" --socks5-hostname "$PROXY" > /tmp/gfwlist.txt
/usr/local/bin/gfwlist2pac \
--input /tmp/gfwlist.txt \
@Ivlyth
Ivlyth / redisclient.py
Created September 22, 2015 03:53
redis subpub client
#!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
Author : myth
Date : 15-9-22
Email : belongmyth at 163.com
'''
import redis
import time
@Ivlyth
Ivlyth / module_watcher.py
Last active September 11, 2015 05:39 — forked from eberle1080/module_watcher.py
Automatically reload python module / package on file change
#!/usr/bin/env python
# Author: Chris Eberle <[email protected]>
# Watch for any changes in a module or package, and reload it automatically
import pyinotify
import imp
import os
class ModuleWatcher(pyinotify.ProcessEvent):
"""
@Ivlyth
Ivlyth / README.md
Last active December 13, 2017 03:46
curl 命令记录

该gist主要用来记录curl相关的一些有用命令

@Ivlyth
Ivlyth / README.md
Last active August 27, 2015 02:42
为 vsftpd 配置 SFTP
@Ivlyth
Ivlyth / README.md
Last active August 29, 2015 14:27
学习 rabbitmq

安装( Ubuntu 14.04 )

Add the following line to your /etc/apt/sources.list:
> deb http://www.rabbitmq.com/debian/ stable main
> wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
> sudo apt-key add rabbitmq-signing-key-public.asc
> sudo apt-get update
> sudo apt-get install rabbitmq-server
@Ivlyth
Ivlyth / README.md
Created August 13, 2015 12:19
using python logging module and redis pub/sub pattern to save API logs from tornado server
<?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ -->
<!-- Active URL: http://ondras.zarovi.cz/sql/demo/ -->
<sql>
<datatypes db="mysql">
<group label="Numeric" color="rgb(238,238,170)">
<type label="Integer" length="0" sql="INTEGER" quote=""/>
<type label="TINYINT" length="0" sql="TINYINT" quote=""/>
<type label="SMALLINT" length="0" sql="SMALLINT" quote=""/>