Skip to content

Instantly share code, notes, and snippets.

View workze's full-sized avatar
🎯
Focusing

Wangguize workze

🎯
Focusing
View GitHub Profile
@workze
workze / linux-tree.sh
Last active April 17, 2020 03:25
linux tree
tree -ACd # 只展示目录
tree -L 2 # 2层目录
-a 显示所有文件和目录。
-A 使用ASNI绘图字符显示树状图而非以ASCII字符组合。
-C 在文件和目录清单加上色彩,便于区分各种类型。
-d 显示目录名称而非内容。
@workze
workze / python-flask-swagger.yaml
Created April 16, 2020 11:06
python flask swagger
# swagger-ui-py
swagger: "2.0"
info:
description: "PyRunner分析引擎"
version: "2.0.0"
title: "PyRunner"
basePath: "/"
tags:
@workze
workze / python-flask.py
Created April 16, 2020 11:02
python flask
# -*- coding: utf-8 -*-
import multiprocessing
from flask import *
from Common import RunnerException, ExceptionCode, get_app_logger
from pyrunner import ProcessTaskRunner, ThreadTaskRunner, TaskRunner
import Info
import os
import uuid
import waitress
import threading
@workze
workze / chrome-plugin.fav
Created April 15, 2020 11:32
chrome plugin
adblock plus
astar vpn
angury --angular开发
todoist
clean crxMouse gestures
css peeer
dualsub youtube双语字幕
droplr 屏幕录屏
EditThisCookie
FeHelper 前端助手
@workze
workze / ubuntu-apt-get-dpkg.sh
Last active April 8, 2020 06:55
ubuntu apt apt-get dpkg
apt-cache search # ------(package 搜索包)
apt-cache show #------(package 获取包的相关信息,如说明、大小、版本等)
sudo apt-get install # ------(package 安装包)
sudo apt-get install # -----(package - - reinstall 重新安装包)
sudo apt-get -f install # -----(强制安装?#"-f = --fix-missing"当是修复安装吧...)
sudo apt-get remove #-----(package 删除包)
sudo apt-get remove - - purge # ------(package 删除包,包括删除配置文件等)
sudo apt-get autoremove --purge # ----(package 删除包及其依赖的软件包+配置文件等(只对6.10有效,强烈推荐))
sudo apt-get update #------更新源
sudo apt-get upgrade #------更新已安装的包
@workze
workze / python-websocket-server.py
Created April 8, 2020 04:27
python websocket server ws
# -*- coding: utf-8 -*-
from websocket_server import WebsocketServer
import logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s %(levelname)s %(message)s')
log = logging.getLogger('main')
@workze
workze / yolo-detection.txt
Created March 26, 2020 06:44
yolo detection
xxx
@workze
workze / java-exception-util.java
Last active March 21, 2020 09:06
java exception util
import org.apache.commons.lang.exception.ExceptionUtils;
public class ExceptionUtil {
private static final String SPLIT = ", ";
public static String displayException(Throwable e) {
StringBuilder stringBuilder = new StringBuilder();
if(ExceptionUtils.getRootCause(e) != null) {
@workze
workze / jenkins-pipeline.groovy
Created March 21, 2020 08:53
jenkins pipeline ci
pipeline {
agent { label 'xxx' }
options { timestamps() }
environment {
KW_PROJECT_NAME = 'xxx'
}
stages {
stage('Checkout') {
steps {
@workze
workze / linux-alias.sh
Created March 21, 2020 08:33
linux alias
# /etc/profile.d/alias.sh
alias vialias='vi /etc/profile.d/alias.sh'
alias galias='gedit /etc/profile.d/alias.sh'
alias .alias='. /etc/profile.d/alias.sh'
# PS1='[\u@\h \W]\$'