Skip to content

Instantly share code, notes, and snippets.

🤓
+1s

PAN, Myautsai mckelvin

🤓
+1s
Block or report user

Report or block mckelvin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View MACD explained in math.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mckelvin
mckelvin / Makefile
Created Jan 30, 2019
Generate self-signed certs for mitmproxy on macOS
View Makefile
# 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 / flushdns
Last active Dec 20, 2018 — forked from thewellington/flushdns
Flush DNS in OS X / macOS
View flushdns
#!/bin/bash
#
# flushdns
# This script will flush your DNS cache on Mac OS X 10.4 - 10.13.
# The method for doing this chages it seems in every version of OS X,
# and I can never remember the correct command, so I wrote this script
# and gave it a name I could remeber.
#
# v.2016-02-01 by bill@wellingtonnet.net
View pm250_air352_collector.py
"""
352 Air PM2.5 采集仪指标采集
"""
import time
import struct
import socket
UDP_IP = "0.0.0.0"
UDP_PORT = 11530
@mckelvin
mckelvin / remove_jietumacapp.sh
Last active Jan 9, 2018 — forked from ITJesse/remove_jietumacapp
删除 QQ for Mac 的流氓截图
View remove_jietumacapp.sh
#!/bin/sh
chmod 0000 "/Applications/QQ.app/Contents/Library/LoginItems/QQ jietu plugin.app/Contents/MacOS/QQ jietu plugin"
View encrypt_decrypt_demo.py
# coding: utf-8
import md5
from Crypto import Random
from Crypto.Cipher import AES
import base64
BLOCK_SIZE = 16
View Job-Offer-Checklist.md
  1. 月薪是否全部通过银行工资单发放?还是部分通过第三方转账、第三方积分、发票报销的方式发放?
  2. 一年发几薪?多余 12 个月的部分一年分几次发放(影响税)?如当年未工作满 12 个月多余部分是否按工作月数等比例发放?
  3. 试用期多久,试用期工资是否有打折?
  4. 如果有股权、期权的话离职时公司是否保证会回购?
  5. 五险一金是否全额缴纳?
  6. 是否有补充公积金、补充医疗保险?
  7. 一年除了固定的基本薪资外是否有年终奖,年终奖是否有范围?
  8. 一周工作几天?一天的工作时间是几点到几点,弹性工作时间的话大家一般的工作时间是几点到几点?
  9. 是否支持长期或短期的在家办公?
  10. 是否有工作设备补贴、餐补、停车费补贴、住房补贴?补贴是否有限制条件?(比如住处距离小于多少公里才给房补贴,凑发票才给补贴)
View cfmmc_crawler.py
# coding: utf-8
# 从中国期货市场监控中心爬取数据,并计算净值
# 使用 tesserocr 解析验证码
import os
import json
import time
import datetime
import logging
import cStringIO as StringIO
View update_ddns_on_dnspod.py
# coding: utf-8
# Install deps first:
# pip install requests
# Usage:
# To setup some-sub-domain.yourdomain.com:
# $ DNSPOD_TOKEN_ID=*** DNSPOD_TOKEN=*** python update_ddns_on_dnspod.py --domain yourdomain.com --sub-domain some-sub-domain
import os
import sys
import json
View jedi-hang-pyflame-flamegraph.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.