Skip to content

Instantly share code, notes, and snippets.

@582033
582033 / go
Last active July 14, 2023 03:00
计算
package main
import "fmt"
func main() {
time1 := 1626205761000 // 毫秒时间1
time2 := 1626205771000 // 毫秒时间2
interval := (time2 - time1 + 999) / 1000 // 计算时间间隔,不足秒的当做秒
fmt.Println(interval) // 输出时间间隔
@582033
582033 / bing.txt
Last active March 21, 2023 05:33
Clash规则-Bing
payload:
- '*.edgeservices.*'
- '*.msn.*'
- '*.msftstatic.*'
- '*.bing.*'
- '*.bingapis.*'
- '*.office.*'
- '*.edge.*'
- '*.scorecardresearch.*'
- '*.microsoftonline.*'
payload:
- '+.funkey-project.com'
- '+.openai.com'
payload:
- '+.roboofood.com'
- '+.hi-walle.com'
- '+.j1.com'
- '+.yjiang.cn'
@582033
582033 / 12351.sh
Last active July 2, 2021 00:51
12351工会福利抢购
#!/usr/bin/env bash
#用户session
JSESSIONID="0003it-tqm1tI0yBdJiT4cnedEh:-HLGBUP:XXXXXXXX"
#活动id
service_id="32142"
#token
token="3BF2A6E0EA39BE2FC66A3C3A82XXXXXXX"
#收货人地址
receive_id="1234567"
@582033
582033 / 迅雷精简
Created August 1, 2018 23:25
xunlei.sh
#!/usr/bin/env bash
chmod a-x /Applications/Thunder.app/Contents/PlugIns/advertising.xlplugin
chmod a-x /Applications/Thunder.app/Contents/Bundles/XLPlayer.app
chmod a-x /Applications/Thunder.app/Contents/PlugIns/bbassistant.xlplugin
chmod a-x /Applications/Thunder.app/Contents/PlugIns/browserhelper.xlplugin
chmod a-x /Applications/Thunder.app/Contents/PlugIns/featuredpage.xlplugin
chmod a-x /Applications/Thunder.app/Contents/PlugIns/myvip.xlplugin
chmod a-x /Applications/Thunder.app/Contents/PlugIns/playgame.xlplugin
chmod a-x /Applications/Thunder.app/Contents/PlugIns/subtitle.xlplugin
{
"apps": [
{
"name": "xiaoying - 1st_fetch",
"script": "/opt/php7/bin/php",
"args" : "1st_fetch.php",
"cwd" : "/export/home/xtv/apps/xbb/download_xiaoying/app/",
"restart_delay" : 1000,
"exec_mode" : "fork",
"instances" : 1,
<?php
require_once __DIR__ . '/vendor/autoload.php';
//namespace libs;
use Monolog\Logger;
use Monolog\Handler\RedisHandler;
use Monolog\Formatter\LogstashFormatter;
use Predis\Client;
class log {
@582033
582033 / ofo.php
Last active May 25, 2018 14:54
ofo订单
<?php
class ofo {
public function __construct($carno, $coord_url, $token){
list($this->lat, $this->lng) = $this->get_coord($coord_url);
$this->carno = $carno;
$this->token = $token;
}
//把高德url转换为坐标
@582033
582033 / monitor.py
Created December 6, 2016 02:34
京东商品到货监控
import json, re, sys, os
from selenium import webdriver
class Sign:
def __init__(self, cid):
self.cid = cid
self.check()
#@site : sign_dict key
#@info : sign_dict value
def check(self):