Skip to content

Instantly share code, notes, and snippets.

View mckelvin's full-sized avatar

GitHubLeakedPAN, GitHubLeakedMyautsai mckelvin

View GitHub Profile
  1. 月薪是否全部通过银行工资单发放?还是部分通过第三方转账、第三方积分、发票报销的方式发放?
  2. 一年发几薪?多余 12 个月的部分一年分几次发放(影响税)?如当年未工作满 12 个月多余部分是否按工作月数等比例发放?
  3. 试用期多久,试用期工资是否有打折?
  4. 如果有股权、期权的话离职时公司是否保证会回购?
  5. 五险一金是否全额缴纳?
  6. 是否有补充公积金、补充医疗保险?
  7. 一年除了固定的基本薪资外是否有年终奖,年终奖是否有范围?
  8. 一周工作几天?一天的工作时间是几点到几点,弹性工作时间的话大家一般的工作时间是几点到几点?
  9. 是否支持长期或短期的在家办公?
  10. 是否有工作设备补贴、餐补、停车费补贴、住房补贴?补贴是否有限制条件?(比如住处距离小于多少公里才给房补贴,凑发票才给补贴)
# BWG_VE_ID=<TODO>
# BWG_API_KEY=<TODO>
# */10 * * * * /usr/bin/python3 /usr/local/bin/bwg-migrate.py >> /var/log/bwg-migrate.log 2>&1
import os
import random
import logging
import requests
@mckelvin
mckelvin / chnroute_for_ipsec.py
Last active March 17, 2020 03:32
Split VPN traffic for IPSec using CHNROUTE 监听 syslog, 发现 IPSec VPN 连接建立或断开后基于CHNROUTE去修改路由表。
# coding: utf-8
#
# OS X 11 (macOS ) 之后不再支持 PPTP VPN. 但 Cisco IPSec VPN 不支持像 PPTP 的
# /etc/ppp/ip-up 和 /etc/ppp/ip-down 一样方便j的机制来更新 chnroute 路由表。
# 这个脚本尝试在 Cisco IPSec VPN 下自动处理 chnroute, 做的主要工作是监听 syslog,
# 发现 IPSec VPN 连接建立或断开后去修改路由表。
#
# NOTE: 使用前可能需要修改 CUSTOMED_ROUTE_DATA, 建议将其设为
# 排除VPN子网后的 rfc1918 定义的内网IP段
#
pushtag #coffee-2020
2020-01-01 * "预付未来1年的咖啡"
Assets:Saving:CN:CMB -12*4*30 CNY
Income:Wool:CoffeeShopX -200 CNY
Assets:PrePayments:CoffeeShopX
2020-01-01 # "每周一杯咖啡 [WEEKLY UNTIL 2020-12-01]"
Expenses:Food:Coffee 30 CNY
Assets:PrePayments:CoffeeShopX
poptag #coffee-2020
// ==UserScript==
// @name No fixed nav in xueqiu.com
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://xueqiu.com/*
// @grant GM_addStyle
// ==/UserScript==
@mckelvin
mckelvin / bs.py
Last active August 14, 2019 02:49
the RIGHT Binary Search
"""
binary search
"""
def binary_search(num_array, x):
l = 0
r = len(num_array)
while l < r:
mid = l + (r - l) / 2
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 2 column 1
---
# Python 简介
@su27 and @menghan
---

What is Python?

Python: 优雅而健壮的编程语言

  • 高级

  • 易学易读易维护

@mckelvin
mckelvin / Makefile
Created January 30, 2019 15:17
Generate self-signed certs for mitmproxy on macOS
# Generate self-signed certificates for mitmproxy:
# mitmproxy-ca.pem
# mitmproxy-ca-cert.pem
# mitmproxy-dhparam.pem
#
# Usage:
# Put this make file in ~/.mitmproxy/Makfile and run make
all: mitmproxy-dhparam.pem mitmproxy-ca.pem mitmproxy-ca-cert.pem
@mckelvin
mckelvin / Formula_valgrind.rb
Last active August 13, 2018 07:26
homebrew formula for valgrind on OSX 10.9 Mavericks
# brew edit valgrind
# paste me
# brew install valgrind
require 'formula'
class Valgrind < Formula
homepage 'http://www.valgrind.org/'
url 'http://valgrind.org/downloads/valgrind-3.9.0.tar.bz2'
sha1 '9415e28933de9d6687f993c4bb797e6bd49583f1'
depends_on 'automake'