Skip to content

Instantly share code, notes, and snippets.

View stenote's full-sized avatar
🏄‍♂️
haha

stenote stenote

🏄‍♂️
haha
  • LinkDoc, Inc.
  • TianJin, China
View GitHub Profile
@stenote
stenote / pprint.py
Last active March 7, 2019 11:16
标准输出
def pprint(data):
import json
import sys
print(json.dumps(data, sort_keys=True, indent=4, ensure_ascii=False).encode('utf8'))
sys.exit()
// eslint-disable-next-line
const config = require('/etc/dove.json').providers.lmobile;
const request = require('request-promise');
const { parseString } = require('xml2js');
const { promisify } = require('util');
const parseXMLPromise = promisify(parseString);
// 发送数据
async function sender(data) {
## Configuration options with # in front are not active and they were
## valid at install time. Updating the package does not update this file
## automatically.
## Latest options listed at:
## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template
## Url on which GitLab will be reachable.
## For more details on configuring external_url see:
## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/configuration.md#configuring-the-external-url-for-gitlab