This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Written by Henry 'Pi' James and Loring Holden | |
# modified for multitracker display by John Hoffman | |
# see LICENSE.txt for license information | |
# dependency | |
# $ pip install bencode | |
from sys import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import goless | |
import time | |
import gevent | |
from gevent import monkey | |
monkey.patch_all() | |
def time_after(seconds): | |
c = goless.chan() | |
def _fn(): | |
gevent.sleep(seconds) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
# | |
import fnmatch | |
import os | |
import pathspec | |
import pyftpdlib | |
from pyftpdlib.filesystems import AbstractedFS | |
from pyftpdlib.authorizers import DummyAuthorizer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go run_percent.go -p $PID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# help tool of supervisorctl | |
# | |
# reference: http://supervisord.org/ | |
RUNUSER=hzsunshx | |
CONFDIR="/etc/supervisor/conf.d/" | |
CRED='\033[0;31m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Author: hzsunshx | |
# Created: 2015-06-01 15:56 | |
""" | |
find python lib path | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.hzsunshx.helloworld; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.support.test.InstrumentationRegistry; | |
import android.support.test.uiautomator.By; | |
import android.support.test.uiautomator.UiDevice; | |
import android.support.test.uiautomator.UiObject; | |
import android.support.test.uiautomator.UiObject2; | |
import android.support.test.uiautomator.Until; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
import "time" | |
var ss = []string{"foo", "bar"} | |
func main() { | |
for _, name := range ss { | |
go func(){ |
OlderNewer