Skip to content

Instantly share code, notes, and snippets.

View mckelvin's full-sized avatar

GitHubLeakedPAN, GitHubLeakedMyautsai mckelvin

View GitHub Profile
@mckelvin
mckelvin / remove_jietumacapp.sh
Last active October 25, 2022 03:11 — forked from ITJesse/remove_jietumacapp
删除 QQ for Mac 的流氓截图
#!/bin/sh
chmod 0000 "/Applications/QQ.app/Contents/Library/LoginItems/QQ jietu plugin.app/Contents/MacOS/QQ jietu plugin"
# coding: utf-8
import md5
from Crypto import Random
from Crypto.Cipher import AES
import base64
BLOCK_SIZE = 16
  1. 月薪是否全部通过银行工资单发放?还是部分通过第三方转账、第三方积分、发票报销的方式发放?
  2. 一年发几薪?多余 12 个月的部分一年分几次发放(影响税)?如当年未工作满 12 个月多余部分是否按工作月数等比例发放?
  3. 试用期多久,试用期工资是否有打折?
  4. 如果有股权、期权的话离职时公司是否保证会回购?
  5. 五险一金是否全额缴纳?
  6. 是否有补充公积金、补充医疗保险?
  7. 一年除了固定的基本薪资外是否有年终奖,年终奖是否有范围?
  8. 一周工作几天?一天的工作时间是几点到几点,弹性工作时间的话大家一般的工作时间是几点到几点?
  9. 是否支持长期或短期的在家办公?
  10. 是否有工作设备补贴、餐补、停车费补贴、住房补贴?补贴是否有限制条件?(比如住处距离小于多少公里才给房补贴,凑发票才给补贴)
# coding: utf-8
# 从中国期货市场监控中心爬取数据,并计算净值
# 使用 tesserocr 解析验证码
import os
import json
import time
import datetime
import logging
import cStringIO as StringIO
# 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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mckelvin
mckelvin / local.time-sync.plist
Created May 16, 2017 02:29
/Library/LaunchDaemons/local.time-sync.plist (Cron for syncing time every 1200 seconds on macOS)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.time-sync</string>
<key>ProgramArguments</key>
<array>
<string>ntpdate</string>
#!/bin/bash
# credits: https://github.com/kubernetes/kubernetes/issues/13585#issuecomment-215615891
if [ $# -eq 0 ]; then
echo "Usage: dshell <container>"
exit 1
fi
COLUMNS=`tput cols`
LINES=`tput lines`
TERM=xterm
docker exec -i -t -e COLUMNS=$COLUMNS -e LINES=$LINES -e TERM=$TERM $@ bash
#!/bin/sh
# Convert timestamp in first column to localtime and open in tabview
if [ $# = 0 ]; then
echo "Usage: $0 some.csv"
exit 1
fi
perl -pe 'use POSIX qw(strftime); s/^(\d+)/strftime "%F %H:%M:%S", localtime($1)/e' $1 | tabview -
#!/usr/bin/env python
"""
Usage:
Shut down your registry service to avoid race conditions and possible data loss
and then run the command with an image repo like this:
delete_docker_registry_image.py --image awesomeimage --dry-run
"""
import argparse
import json