Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
On vacation

hello_world dengmin

🌴
On vacation
View GitHub Profile
@dengmin
dengmin / download_migu.py
Created Jan 7, 2020
下载咪咕音乐的脚本
View download_migu.py
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/'
View gitconfig
[user]
name = min.deng
email = min.deng@fraudmetrix.cn
[push]
default = current
[color]
diff = auto
status = auto
branch = auto
[core]
@dengmin
dengmin / model.py
Created Mar 20, 2014
创建时间和修改时间的默认值
View model.py
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 Feb 20, 2014
sublime 的配置
View settings
{
"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 Sep 13, 2013
sublime text 2.0.2 build 2221注册码
View sublime_liscense
----- 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 Apr 10, 2013
nginx srcipt
View nginx
#!/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