See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
#!/bin/sh | |
# 下载nvd的数据源备份 | |
data_source="https://nvd.nist.gov/feeds/json/cve/1.1/" | |
download_dir="/data/SFTP/data/SDA/release/NVD/" | |
# file_name="nvdcve-1.1-{}.json.gz" |
from functools import wraps | |
from flask import ( | |
Flask, | |
json, | |
redirect, | |
render_template_string, | |
request, | |
session, | |
url_for, |
import os | |
from tqdm import tqdm | |
import azure.cognitiveservices.speech as speechsdk | |
key = "写你自己的key" | |
region = "eastasia" | |
endpoint = "https://eastasia.api.cognitive.microsoft.com/sts/v1.0/issuetoken" | |
# Read user input | |
filename = input("Please enter the name of the text file to convert: ") |
#!/bin/bash | |
log_file=/var/log/curl_error.log | |
max_age=86400 # one day in seconds | |
max_loop=1000 # maximum number of loops to execute | |
loop_count=0 # current number of loops executed | |
if [ ! -f "$log_file" ]; then | |
touch "$log_file" | |
fi |
Organization name: [email protected] | |
Serial Key: eNrzzU/OLi0odswsqslJTa3IzHJIz03MzNFLzs+tMTQyNrcwsTQyAIEa5xpDAIFxDy8k |
# config file | |
# vim ~/.config/fish/config.fish | |
# reload the config | |
# source ~/.config/fish/config.fish | |
# set the workspace path | |
set -x GOPATH /users/my-username/go | |
# add the go bin path to be able to execute our programs |
from threading import Thread | |
ThreadStop = Thread._Thread__stop | |
class TimeoutException(Exception): | |
pass | |
def timelimited(timeout): |
def walk_up(bottom): | |
"""mimic os.walk, but walk 'up' instead of down the directory tree. | |
From: https://gist.github.com/zdavkeos/1098474 | |
""" | |
bottom = os.path.realpath(bottom) | |
# get files in current dir | |
try: | |
names = os.listdir(bottom) |
# | |
# rules.before | |
# | |
# Rules that should be run before the ufw command line added rules. Custom | |
# rules should be added to one of these chains: | |
# ufw-before-input | |
# ufw-before-output | |
# ufw-before-forward | |
# |