Skip to content

Instantly share code, notes, and snippets.

View yuangezhizao's full-sized avatar
🤔
Vegetable - Verified by GitHub

远哥制造 yuangezhizao

🤔
Vegetable - Verified by GitHub
View GitHub Profile
@idiotWu
idiotWu / unlock.js
Last active November 19, 2017 11:53
Unlock netease music
const http = require('http');
const net = require('net');
const url = require('url');
const IP = '211.161.244.70';
const hosts = {
'p[1-4].music.126.net': 'cloudedge.chinanetcenter.com',
'm10.music.126.net': 'ws.acgvideo.com',
};
@lll9p
lll9p / wechatjump.py
Created December 29, 2017 17:21
微信跳一跳
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import math
import os
import subprocess
import time
import matplotlib.animation as animation
import matplotlib.pyplot as plt
import numpy as np
import skimage
@Sg4Dylan
Sg4Dylan / getLiveComment.py
Last active February 14, 2018 05:04
简单的Bilibili直播弹幕抓取实现
#!/usr/bin/env python
import socket
import binascii
import threading
import time
import json
reconnect_flag = 0
@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转换为坐标
@baymaxium
baymaxium / content.md
Created October 18, 2017 09:00
京东商城ContainerLB实践

原文:Docker

随着京东业务的高速增长,作为应用入口的负载均衡,大流量大并发带来的挑战越来越严峻。本文主要介绍了京东商城设计和实践的一套高可靠,高性能的负载均衡器,我们命名为ContainerLB。是一个使用intel DPDK报文转发库,实现运行在通用X86服务器上自研的分布式负载均衡服务。配合网络路由器的多重等价路由协议(OSPF)或者边际网关协议(BGP),组成承担京东数据中心核心四层负载均衡的集群。最大限度的发挥普通X86服务器硬件资源的性能,实现一套适合于京东商城业务的低成本,分布式,高性能,可扩展的智能负载均衡系统。

介绍

京东商城目前是国内最大的电商企业。京东的机房内部的流量爆炸式快速的增长。早在2016年初京东商城已经将所有的业务系统全部迁移到容器平台JDOS,线上20万+容器实例承载着数千个业务应用。大流量的负载均衡的分配显得至关重要,也是京东商城新一代软件定义数据中心的关键基础服务设施之一。

@mashirozx
mashirozx / json-api-crawler.py
Last active June 12, 2019 05:46
JSON API Crawler in Python
import requests
import pypyodbc
import json
import time
import random
import os
##############
# Parameters #
url = "https://example.com"
@magic-akari
magic-akari / ConvertToHEIC.js
Last active September 12, 2019 13:21 — forked from sinoru/ConvertToHEIC.swift
ConvertToHEIC
#!/usr/bin/env osascript -l JavaScript
ObjC.import("Foundation");
ObjC.import("ImageIO");
ObjC.import("AVFoundation");
const quality = 0.8;
function run(input) {
for (const file of input) {
@sunny00123
sunny00123 / liverecord.groovy
Last active October 29, 2019 16:07
recording of bilibili live streams
#!/usr/bin/env groovy
import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit
def OPTIONS = [
UID : 276904, // B站UID
ROOMID : 131985, // 直播间的房间编号,不是地址编号
OUTPUTDIR : "/home/live", // 录制文件输出目录,/D:\ffmpeg\bin/
FFMPEG : "/usr/bin/ffmpeg", // ffmpeg可执行程序位置,/D:\ffmpeg\bin\ffmpeg.exe/
CHECK_INTERVAL: 60, // 直播检测线程的间隔,单位:秒
@hex-ci
hex-ci / index.html
Last active January 9, 2020 01:18
基于 itchat 的微信机器人例子,支持浏览器登录机器人,支持机器人进程管理,支持热重启
<!DOCTYPE html>
<!-- 请把这个文件放到 templates 目录下 -->
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>Wechat</title>
</head>
<body>
{% if alive %}
@the1812
the1812 / unlock-edge-language.md
Last active February 23, 2020 09:31
更改 Edge (Chromium) 的显示语言

更新: Edge 已经可以直接更改显示语言了

测试于 77.0.186.0 版, 未来版本可能有变化

在语言设置里添加想要的语言, 然后随便点一个语言的菜单.

context-menu

Ctrl+Shift+IF12打开开发者工具, 粘贴以下的代码, 按回车执行.