Skip to content

Instantly share code, notes, and snippets.

View dengmin's full-sized avatar
🌴
On vacation

hello_world dengmin

🌴
On vacation
  • Baie Tech
  • HangZhou,China
View GitHub Profile
@dengmin
dengmin / download_migu.py
Created January 7, 2020 02:03
下载咪咕音乐的脚本
import requests
HEADERS = {
"Accept": '*/*',
"platform": 'iOS',
"ua": 'Ios_migu',
"msisdn": '13136170890',
"User-Agent": "MGMobileMusic/6.8.8 (iPhone;iOS 12.4.1; Scale/2.00)",
"Host": 'app.c.nf.migu.cn',
"referer": 'http://wwww.google.com/'
[user]
name = min.deng
email = [email protected]
[push]
default = current
[color]
diff = auto
status = auto
branch = auto
[core]
@dengmin
dengmin / model.py
Created March 20, 2014 13:14
创建时间和修改时间的默认值
created_on = db.Column(db.DateTime, default=db.func.now())
updated_on = db.Column(db.DateTime, default=db.func.now(), onupdate=db.func.now())
@dengmin
dengmin / settings
Created February 20, 2014 02:25
sublime 的配置
{
"auto_complete": true,
"caret_style": "solid",
"color_scheme": "Packages/Color Scheme - Default/Solarized (Light).tmTheme",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".*",
"*.pyc"
],
@dengmin
dengmin / sublime_liscense
Created September 13, 2013 06:49
sublime text 2.0.2 build 2221注册码
----- BEGIN LICENSE -----
Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
942194A6 02396E98 E62C9979 4BB979FE
91424C9D A45400BF F6747D88 2FB88078
90F5CC94 1CDC92DC 8457107A F151657B
1D22E383 A997F016 42397640 33F41CFC
E1D0AE85 A0BBD039 0E9C8D55 E1B89D5D
@dengmin
dengmin / nginx
Created April 10, 2013 09:18
nginx srcipt
#!/bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon