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
[General] | |
loglevel = notify | |
wifi-assist = true | |
internet-test-url = http://connectivitycheck.platform.hicloud.com/generate_204 | |
proxy-test-url = http://latency-test.skk.moe/endpoint | |
proxy-test-udp = [email protected] | |
test-timeout = 2 | |
dns-server = 223.5.5.5, 119.29.29.29 | |
# encrypted-dns-server = https://223.5.5.5/ // 除非当地 ISP 有严重的 DNS 污染问题,否则没必要开启 DoH,传统 DNS 的性能最优,网络异常后恢复速度最快 |
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
yum install git kernel-devel ncurses-devel | |
yum groupinstall 'Development Tools' | |
rm -f /lib/modules/3.10.0-1127.18.2.el7.x86_64/build | |
ln -s /usr/src/kernels/3.10.0-1160.15.2.el7.x86_64/ /lib/modules/3.10.0-1127.18.2.el7.x86_64/build |
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
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
import requests | |
import base64 | |
import re | |
def base64decode(text): | |
i = len(text) % 4 | |
if i == 1: | |
text = text + '===' | |
elif i == 2: |
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
from PIL import Image | |
import numpy as np | |
# import matplotlib.pyplot as plt | |
img_array = np.array(Image.open('t3.png').convert('RGBA')) | |
w = img_array.shape[0] # 获取图片宽度 | |
h = img_array.shape[1] # 获取图片高度 | |
# 根据原图尺寸放大创建一个放大后的图片 |
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
//CHH Automload topic page | |
function test(){ | |
var i = 0; | |
(function(){ | |
if (i>=50){console.log(i);return;} | |
$("autopbn").click(); | |
console.log(i); | |
i++; | |
window.setTimeout(arguments.callee,2000); | |
})(); |
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
require 'net/http' | |
require "cairo" | |
def get_url time, x, y | |
str = "http://himawari8-dl.nict.go.jp/himawari8/img/D531106/20d/550/#{time}00_#{x}_#{y}.png" | |
end | |
def merge time | |
puts "Start image process" | |
w = 20 |
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 | |
# -*- coding: utf-8 -*- | |
# Author: p0we7 | |
# Email : [email protected] | |
def handle_import_error(): | |
print '\n' + "Import Error:" | |
print 'Please install the required 3rd-party modules ' + '\033[4;95m' + 'requests' + '\033[0m' + '\n' | |
import sys | |
sys.exit() |