Skip to content

Instantly share code, notes, and snippets.

Avatar

Pang Hootrix

  • China
View GitHub Profile
@Hootrix
Hootrix / mianshi.php
Last active May 28, 2020
0528面试上机题 无限子菜单实现
View mianshi.php
<?php
/**
* Created by PhpStorm.
* User: yhtc
* Date: 2020/5/28
* Time: 9:45
*/
//phpinfo();
/**
* 面试上机题
@Hootrix
Hootrix / readme.md
Last active May 19, 2020
repair_zip.sh
View readme.md

usage

bash repair_zip.sh /root/3.zip
@Hootrix
Hootrix / wuyong.py
Created Apr 21, 2020
无用空间音频下载
View wuyong.py
"""
无用空间的音频下载
time:2020-04-22
Author:pang
"""
# http://www.timeless-world.org//audio-browse-22.html?s1=30
# http://www.timeless-world.org/svideo-browse-17.html?s1=30
import requests,re as regex
@Hootrix
Hootrix / wechat_group_member_list.js
Created Feb 14, 2020
获取微信群成员昵称列表
View wechat_group_member_list.js
// 方法:
// 登录微信网页:https://wx.qq.com/
// 打开指定组 -> 点击下拉箭头展示所有成员列表 -> 打开浏览器console控制台执行下面代码:
var list = []
$('.member.ng-scope').each(function(){
var title = $(this).attr('title');
title = title.replace(/<img.*?\/>/g,'').trim()
list.push(title)
});
View keybase.md

Keybase proof

I hereby claim:

  • I am hootrix on github.
  • I am oiz (https://keybase.io/oiz) on keybase.
  • I have a public key ASADDbfjcpaWqS399wTCLkSa1SS9kaFVM79x5SMv1_QPpwo

To claim this, I am signing this object:

@Hootrix
Hootrix / fast_read_the_file_in_the_zip.py
Last active Oct 14, 2019
快速读取zip压缩包内的文件 支持在线url以及本地path
View fast_read_the_file_in_the_zip.py
import requests,tempfile, zipfile,os
def read_file_for_zip(zip_url, callback=None):
"""
读取zip包内的文件
:param zip_url:zip路径/url
:param callback:读取操作的回调函数 若函数返回false 则不会读取下一个文件
:return:
"""
with tempfile.TemporaryFile('w+b') as tmpfile: # 生成临时文件
@Hootrix
Hootrix / tianfu.py
Last active Jan 7, 2020
天府市民云APP的消息RSS生成
View tianfu.py
import datetime
import time
import PyRSS2Gen
import requests, pytz
class NoOutput:
def __init__(self):
pass
def publish(self, handler):
@Hootrix
Hootrix / who_data.py
Last active Aug 17, 2019 — forked from HintikkaKimmo/who_data.py
handy way to read csv files with unknown csv dialect
View who_data.py
import csv
import pprint
# opens csv file and assingns it to an object
with open('data-text.csv') as csvfile:
# Use Sniffer to figure out csv dialect
dialect = csv.Sniffer().sniff(csvfile.read(1024))
csvfile.seek(0)
# pass the dialect to filereader to read the file
reader = csv.reader(csvfile, dialect)
@Hootrix
Hootrix / Xizi.php
Last active Aug 17, 2019
推送希子的最新微博到app通知
View Xizi.php
<?php
/**
* Created by PhpStorm.
* User: pang
* Date: 2019/3/22 0022
* Time: 1:11
*
* 使用Bark App的推送url操作
*
*
@Hootrix
Hootrix / mtr.css
Created Mar 21, 2019 — forked from ruanyf/mtr.css
mtr.css: Hong Kong MTR station colors http://metrocolor.live/index.html
View mtr.css
:root {
--heng-fa-chuen: #b51921;
--tai-koo: #b2103e;
--kowloon-bay: #c41832;
--tseung-kwan-o: #ef342a;
--wui-kai-sha: #a84d18;
--po-lam: #f68f26;
--sai-wan-ho: #faca07;
--disneyland-resort: #07594a;
--skek-kip-mei: #4ba946;