Skip to content

Instantly share code, notes, and snippets.

View qunwang6's full-sized avatar
🏠
Working from home

qunwang6

🏠
Working from home
View GitHub Profile
@qunwang6
qunwang6 / index.html
Created October 17, 2018 09:59
XxZMOw
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, user-scalabel=no">
<meta name="viewport" content="width=320, user-scalable=no" />
<style>
body{
background: #1f2631;
}
@qunwang6
qunwang6 / Matrix.lua
Created April 7, 2018 10:10 — forked from Rami-Sabbagh/Matrix.lua
Raspberry Pi Lua GPIO LED Matrix
--LED Matrix RAMI
local json = dofile("/home/pi/Desktop/Matrix/json.lua")
local socket = require("socket")
local periphery = require('periphery')
local GPIO = periphery.GPIO
print("Using GPIO:",GPIO.version)
from __future__ import print_function
import sys, cb, time, console
console.set_color(0, 0, 1)
print("""
_____ _ _____ _
| |___ _| |___| __ | |_ _ ___
| --| . | . | -_| __ -| | | | -_|
|_____|___|___|___|_____|_|___|___|
#!/usr/bin/env python2
# lrdcq
# usage python2 unwxapkg.py filename
import sys, os
import struct
class WxapkgFile(object):
nameLen = 0
@qunwang6
qunwang6 / unwxapkg.py
Created January 1, 2018 13:46 — forked from thedreamwork/unwxapkg.py
unpack wxapkg
#!/usr/bin/python
# usage python unwxapkg.py filename
import sys,os
import struct
class WxapkgFile:
nameLen = 0
name = ""
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)
import requests
import clipboard
import console
'''
Get Raw Text From URL
A wrench script to copy the text of a url to the clipboard.
I did this so I can get the text of a gist quickly.
To use, when you are viewing the gist in a web browser, click the
raw button on the page.
@qunwang6
qunwang6 / httpserver_qr.py
Created December 7, 2017 09:10 — forked from sydney0zq/httpserver_qr.py
simplehttpserver_with_qr_terminal
#!/usr/bin/env python3
import os
import html
import urllib
import sys
import http
import cgi
import socket
import socketserver
@qunwang6
qunwang6 / dns2https.php
Created October 11, 2016 08:54 — forked from diyism/dns2https.php
dns2https.php
<?php
/*
tcp dns client for google dns over https (https://dns.google.com)
ubuntu上使用:
在/etc/rc.local里加/usr/bin/php /home/<your_name>/dns2https.php
执行:
sysv-rc-conf unbound off
sysv-rc-conf dnscrypt-proxy off
@qunwang6
qunwang6 / pan.baidu.com.py
Created September 10, 2016 05:11 — forked from PeterDing/pan.baidu.com.py
百度云、百度网盘,递归下载自己的文件或分享的文件 -- keywords: pan.baidu.com, login, recursively, download -- # 移到仓库 https://github.com/PeterDing/iScript
#!/usr/bin/env python2
# vim: set fileencoding=utf8
import os
import sys
import requests
import urllib
import json
import re
import time