Skip to content

Instantly share code, notes, and snippets.

View wowlusitong's full-sized avatar
🏠
Working remotely

卢思侗 wowlusitong

🏠
Working remotely
  • Harbin, China
View GitHub Profile
panic(cpu 1 caller 0xffffff800f7efa76): Kernel trap at 0xffffff800f7866e6, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0xffffff93c23dd100, CR3: 0x0000000a5168104f, CR4: 0x00000000003626e0
RAX: 0xffffff93a63dd090, RBX: 0x0000000000386000, RCX: 0x0000000fe0000387, RDX: 0x000000000700001c
RSP: 0xffffffa0db9e3720, RBP: 0xffffffa0db9e3860, RSI: 0x00000000ffffff90, RDI: 0x00000000ffffffbf
R8: 0xffffff86e78816a0, R9: 0x0000fe0000387000, R10: 0x0000000000000300, R11: 0xffffff93a63dd000
R12: 0xffffff804b89fa00, R13: 0xffffff804b89f9c8, R14: 0xffffff804b8d0a38, R15: 0xffffff86e7881698
RFL: 0x0000000000010202, RIP: 0xffffff800f7866e6, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0xffffff93c23dd100, Error code: 0x0000000000000000, Fault CPU: 0x1, PL: 0, VF: 1
Backtrace (CPU 1), Frame : Return Address
@wowlusitong
wowlusitong / index.html
Created February 23, 2020 13:38 — forked from minikomi/index.html
Japan geojson - albers
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="http://d3js.org/d3.v2.min.js?2.10.0"></script>
<script>
var width = 960,
height = 700;
var svg = d3.select("body").append("svg")
function qSort(compare) {
var swap = (p1, p2) => {
var tmp = this[p1];
this[p1] = this[p2];
this[p2] = tmp;
}
var sortRange = (start, end) => {
var midValue = this[start];
var p1 = start, p2 = end - 1;
while(p1 < p2) {
@wowlusitong
wowlusitong / Dockerfile
Created March 17, 2018 04:25 — forked from linw1995/Dockerfile
Google Chrome Headless Docker
FROM google/debian:jessie
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -qqy \
&& apt-get -qqy install \
gnupg wget ca-certificates apt-transport-https \
ttf-wqy-zenhei \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*

Keybase proof

I hereby claim:

  • I am wowlusitong on github.
  • I am wowlusitong (https://keybase.io/wowlusitong) on keybase.
  • I have a public key whose fingerprint is 5673 6BF7 BD83 0707 7370 1D52 4AEB A6DE DB1A A1DA

To claim this, I am signing this object:

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)
@wowlusitong
wowlusitong / unwxapkg.py
Created January 1, 2018 02:07 — 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 = ""
@wowlusitong
wowlusitong / Enhance.js
Created August 10, 2017 10:34 — forked from sebmarkbage/Enhance.js
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
@wowlusitong
wowlusitong / sass-map-collect-function.scss
Created July 26, 2017 08:32
Sass function to merge multiple maps - map-collect
//Map Collect function
// Since the builtin map-merge function in Sass only take 2 arguments, it can only merge 2 maps at a time.
// The map-collect function below allows you to combine multiple maps together in a cleaner way.
@function map-collect($maps...) {
$collection: ();
@each $map in $maps {
$collection: map-merge($collection, $map);
}