Skip to content

Instantly share code, notes, and snippets.

@vmvz
vmvz / b365.css
Created March 3, 2020 04:28
b365.css
.bw-BetslipHeader {
background-color: transparent !important;
}
.test {font-size: 12px;height: 21px !important;line-height:21px !important; color:#ddd;}
.breaks {color:#ffdf1b;font-weight: bold;} .warn{color: crimson} .alert-success {
color: #155724;
background-color: #d4edda;
border-color: #c3e6cb;
}.alert-danger {
color: #721c24;
@vmvz
vmvz / install-lrzsz.sh
Created November 21, 2019 01:48 — forked from zthxxx/install-lrzsz.sh
install-lrzsz on macOS
#!/usr/bin/env zsh
brew install lrzsz
recv='/usr/local/bin/iterm2-recv-zmodem.sh'
send='/usr/local/bin/iterm2-send-zmodem.sh'
curl -sSL https://github.com/zzy0-0/iterm2-zmodem/raw/master/iterm2-recv-zmodem.sh -o "$recv"
curl -sSL https://github.com/zzy0-0/iterm2-zmodem/raw/master/iterm2-send-zmodem.sh -o "$send"
chmod +x "$recv" "$send"
@vmvz
vmvz / ssdb.zshrc.sh
Last active December 3, 2019 02:12
ssdb.zshrc
# \EOF: protect var
cat > ~/zsh/ssdb.sh <<\EOF
# SSDB
DBH=~/Dropbox/p/ssdb
alias db='cd $DBH'
alias dbsall='echo "killall -9 ssdbs";killall -9 ssdbs'
alias dbc='$DBH/tools/ssdb-cli -h 127.0.0.1 -p '
function dbr(){
if [ ! -n "$1" ] ;then
echo "please input Port"
@vmvz
vmvz / dns.overture.sh
Last active March 30, 2020 23:31
dns.overture install in macOS
echo "\ndns.overture install in macOS\n"
sudo cat > /Library/LaunchDaemons/dns.overture.plist <<END
<?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>dns.overture</string>
<key>ProgramArguments</key>
@vmvz
vmvz / frp systemd.md
Created September 3, 2018 04:48 — forked from ihipop/frp systemd.md
FRP systemd 启动脚本

/etc/systemd/system/frps.service

[Unit]
Description=FRP Server Daemon

[Service]
Type=simple
ExecStartPre=-/usr/sbin/setcap cap_net_bind_service=+ep /opt/bin/frps
ExecStart=/opt/bin/frps -c /opt/etc/frps.ini
Restart=always
@vmvz
vmvz / cmuhardcopy.py
Created June 2, 2018 17:09 — forked from edy555/cmuhardcopy.py
Script to transfer file of hardcopy from R&S CMU200 and format conversion. Requires python-ivi package and wmf2png optionally.
#!/usr/bin/env python
import ivi
import sys
import os
import os.path
from optparse import OptionParser
p = OptionParser()
p.add_option('-v', '--verbose', dest="verbose", action='store_true',
help="print verbose.")
p.add_option('-d', '--device', dest="device", metavar="DEV",
# -*- coding: utf-8 -*-
"""Example Google style docstrings.
This module demonstrates documentation as specified by the `Google Python
Style Guide`_. Docstrings may extend over multiple lines. Sections are created
with a section header and a colon followed by a block of indented text.
Example:
Examples can be given using either the ``Example`` or ``Examples``
sections. Sections support any reStructuredText formatting, including
@vmvz
vmvz / gist:5238cdff7094f1b485df9d8a56fd6967
Created January 10, 2018 02:44 — forked from lhwork/gist:3918279
python(PIL)图像处理(等比例压缩、裁剪压缩) 缩略(水印)图
#coding:utf-8
'''
python图片处理
@author:fc_lamp
@blog:http://fc-lamp.blog.163.com/
'''
import Image as image
#等比例压缩图片
def resizeImg(**args):
@vmvz
vmvz / unwxapkg.py
Created January 1, 2018 07:11 — forked from thedreamwork/unwxapkg.py
unpack wxapkg
#!/usr/bin/python
# usage python unwxapkg.py filename
import sys,os
import struct
class WxapkgFile:
nameLen = 0
name = ""
var CryptoJS = require('crypto-js')
var request = require('request-promise')
/*
* npm install crypto-js request-promise
* node wx_t1t_hack.js
*/
// export function testEncription(msg, fullKey) {
// var fullKey = fullKey.slice(0, 16)