Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
namespace zh_clean_csharp
{
class Program
{
static void Main(string[] args)
# -*- coding:utf-8 -*-
import os
import sys
import atexit
import signal
import codecs
def daemonize(pidfile, stdin='/dev/null',
stdout='/dev/null',
@Junzki
Junzki / dingtalk_watermark_free.js
Last active May 27, 2017 07:34
DingTalk Watermark-FREE
// ==UserScript==
// @name DingTalk Watermark-FREE
// @namespace http://tampermonkey.net/
// @version 0.1
// @description DingTalk Watermark-FREE
// @author Andrew Junzki
// @match https://im.dingtalk.com/*
// @grant none
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am junzki on github.
  • I am junzki (https://keybase.io/junzki) on keybase.
  • I have a public key ASCJ7olr1EAy2-yt0Kgw3UXxOnZT2iMH3gvrx-XURppAgQo

To claim this, I am signing this object:

设置独立的生产环境

1. 原理

Django 在加载 settings 的时候会根据环境变量选择不同的 settings

参考 manage.py +6os.environ.setdefault 设置了一个名为 DJANGO_SETTINGS_MODULE、值为目标 settings 的环境变量。

在生产环境中,uWSGI 会根据指定的 WSGI Module 加载程序。Djangowsgi.py

@Junzki
Junzki / reset.css
Created March 22, 2021 05:17 — forked from DavidWells/reset.css
CSS reset. Follow me on the twitters for more tips: https://twitter.com/davidwells
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
# -*- coding:utf-8 -*-
"""
BSD 3-Clause License
Copyright (c) 2021, Andrew Junzki
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
# -*- coding:utf-8 -*-
"""
BSD 3-Clause License
Copyright (c) 2021, Andrew Junzki
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,