[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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# \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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding:utf-8 | |
''' | |
python图片处理 | |
@author:fc_lamp | |
@blog:http://fc-lamp.blog.163.com/ | |
''' | |
import Image as image | |
#等比例压缩图片 | |
def resizeImg(**args): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# usage python unwxapkg.py filename | |
import sys,os | |
import struct | |
class WxapkgFile: | |
nameLen = 0 | |
name = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |