Skip to content

Instantly share code, notes, and snippets.

View Lupino's full-sized avatar
🌴
On vacation

Lupino Lupino

🌴
On vacation
View GitHub Profile
#/usr/bin/env bash
LIB_PATH=../lib
test -d $LIB_PATH || mkdir -p $LIB_PATH
copy() {
F=$1
LN=`readlink $F || echo ""`
types = """
Create For Json
GetList For Q
Get CID
Remove CID
RemoveList For
"""
types = [t for t in types.split('\n') if t]
{"sig":"b1b60feb878d7f04c783cc7053bd13d4490d9b28deb429d7e0f975b96f8b2a032267d26c498b192383bc6abbc4f2b71e620126cfa102467900cd02685116d5c21","msghash":"0206fb54e4fd0ceb279abf0d295caa98d69aad3d30c8362bf33667a066c43b95"}

memory_profiler is a python module for monitoring memory consumption of a process as well as line-by-line analysis of memory consumption for python programs.

Build image

docker build -t containerops/memory_profiler .

Test

BUILD IMAGE

docker build -t containerops/coala -f ./analysis/coala/Dockerfile ./analysis/coala
docker build -t containerops/flake8 -f ./analysis/flake8/Dockerfile ./analysis/flake8
docker build -t containerops/line_profiler -f ./analysis/line_profiler/Dockerfile ./analysis/line_profiler
docker build -t containerops/memory_profiler -f ./analysis/memory_profiler/Dockerfile ./analysis/memory_profiler
docker build -t containerops/pep8 -f ./analysis/pep8/Dockerfile ./analysis/pep8
docker build -t containerops/pycallgraph -f ./analysis/pycallgraph/Dockerfile ./analysis/pycallgraph
docker build -t containerops/pylama -f ./analysis/pylama/Dockerfile ./analysis/pylama
#!/usr/bin/env bash
docker run --rm -e CO_DATA='git-url=https://github.com/minhhh/regex.git entry-path=.' containerops/nose2
docker run --rm -e CO_DATA='git-url=https://github.com/minhhh/regex.git entry-path=. version=python' containerops/nose2
docker run --rm -e CO_DATA='git-url=https://github.com/nose-devs/nose.git entry-path=unit_tests' containerops/nose
docker run --rm -e CO_DATA='git-url=https://github.com/nose-devs/nose.git entry-path=unit_tests version=python' containerops/nose
docker run --rm -e CO_DATA='git-url=https://github.com/juanAFernandez/testing-with-python.git entry-file=examples/mamba_example.py' containerops/mamba
docker run --rm -e CO_DATA='git-url=https://github.com/juanAFernandez/testing-with-python.git entry-file=examples/mamba_example.py version=python' containerops/mamba
docker run --rm -e CO_DATA='git-url=https://github.com/minhhh/regex.git entry-path=.' containerops/pytest
docker run --rm -e CO_DATA='git-url=https://github.com/minhhh/regex.git entry-path=. version=python' containero
import requests
from time import time
import json
import random
host = 'http://192.168.56.101:8080'
default_account = {
'account_id': 'account',
'password': 'password',
'udid': 'udid',
'idfa': 'idfa',

Keybase proof

I hereby claim:

  • I am lupino on github.
  • I am lupino (https://keybase.io/lupino) on keybase.
  • I have a public key ASC_IKgMZSUaQlKTl391N_lCyAZl3EgMpsjQvEBWg-DhAAo

To claim this, I am signing this object:

@Lupino
Lupino / sure.py
Created October 24, 2014 02:05
页面中图片提取算法
from urllib.parse import urljoin, urlparse, parse_qs
import re
import os
from bs4 import BeautifulSoup
import hashlib
__all__ = ['SureImage']
def md5sum(parent):
@Lupino
Lupino / ss.coffee
Created August 8, 2014 14:34
shadowsocks-auth nodejs client
redis = require 'redis'
client = redis.createClient()
SS_PREFIX = 'ss:'
#
# user
# name: shadowsocks 的用户名
# password: shadowsocks 的密码
# method: shadowsocks 的加密方法