Skip to content

Instantly share code, notes, and snippets.

View simonmysun's full-sized avatar

孙茂胤 (Sun, Maoyin) simonmysun

View GitHub Profile
@simonmysun
simonmysun / fancyindex_footer.html
Last active September 6, 2023 13:15
customized nginx fancyindex template, adding breadcrumb and Chinese translation. 自定义 nginx fancyindex 目录索引模板,添加面包屑导航和中文支持。
@simonmysun
simonmysun / writeup_unlock_train_data.md
Last active September 12, 2022 05:00
Writeup for UNLOCK TRAIN DATA in Hacky Holidays 2022

Writeup for UNLOCK TRAIN DATA in Hacky Holidays 2022

Gathering information

What we have here is a travelportal.apk file, so the first thing coming into my mind is to decompile it. Basically, .apk extension is for Android package and the file is in a zip archive format. Extracting it we can see the classes?.dex which is the compiled byte code and also the other non-executable resources.

Here I feed the package directly to jadx to unpack the resources and decompile the byte code to Java source code.

jadx travelportal.apk
#!/usr/bin/env node
const http = require('http');
const https = require('https');
let lastTimestamp = undefined;
let newTimestamp = undefined;
let diffTimestamp = undefined;
const hrtlog = (msg) => {
@simonmysun
simonmysun / vs .achievement.md
Last active June 7, 2019 15:28
Visual Studio 成就系统大全,从今天起,做一个快乐的程序员,面朝成就,春暖花开!

Visual Studio 成就系统大全,从今天起,做一个快乐的程序员,面朝成就,春暖花开!

来源: 付鹏的日志

想当年WOW推出成就系统的时候,我就很不争气的沉迷了,收集了无数的宠物啊,下了无数的本啊,都是TMD痛苦回忆啊!后来WLK的时候AFK了,还挺怀念自己的5000+的成就点数的,没想到,现在微软效仿WOW,在自己的编程软件visual studio中加入了成就系统,供程序员们互相炫耀用。这必然会掀起程序员的编程上瘾的毛病,过几年也许程序员就成了精神病,需要电击了!

在这里添加上这个成就系统插件的地址:http://channel9.msdn.com/achievements/visualstudio 再附张图: 下附VS

所有成就列表:(该成就列表不全,我申请完成就系统就给了个成就,这里就没有……)彩色字体表示笔者已完成的成就,大家共勉,貌似有些成就已经不再存在于列表之中了。

@simonmysun
simonmysun / html2canvas-full.js
Last active September 19, 2017 09:49
render hidden / invisible area with html2canvas
var toImg = function toImg(targetNode) {
var tmpNode = function recreateNode(node) {
switch (node.nodeType) {
case 1:
{
var result = document.createElement(node.nodeName);
var style = getComputedStyle(node);
for (var i = style.length - 1; i >= 0; i -= 1) {
result.style[style[i]] = style[style[i]];
}

收集自网络

TOC

反侵略战争的失败及其原因:(1840-1919)进行反侵略战争

  • 原因
    1. 社会制度的腐败
    2. 经济技术的落后
  • 教训
  1. 师夷长技以制夷的主张和早期的维新思想
d(Θ••Θ)b这是最好的
ʅ( Θ••Θ)ʃ你又不高兴
提高自己的ฅ Θ••Θ ฅ姿势水平
无可奉告θ︵θ
(๑ΘдΘ๑)人生的经验
还是要按照XX法,按照XX法,Θ••Θ ฅ去产生
(๑ΘㅂΘ๑)知道不知道呀?
(Θ••Θ)X naive
弄个大(っ ΘД Θ;)っ新闻,说现在已经钦(っ ΘД Θ;)っ定喽,先把Θ••Θ☜我,批判一番。ΘдΘ=☞你们呀,θ︵θ naive!
@simonmysun
simonmysun / STZhongSong.ttf
Last active July 14, 2016 02:52
My CV source code
This file has been truncated, but you can view the full file.
@simonmysun
simonmysun / addBlank.js
Created July 7, 2015 07:21
Add space between Chinese charactors and numbers and letters
// Usage:
// `node /path/to/addBlank.js /path/to/inputfilename`
// `node /path/to/addBlank.js /path/to/inputfilename > /path/to/outputfilename`
//
// Forked from https://addons.mozilla.org/EN-us/firefox/addon/中文格式/
var fs = require("fs");
var text = fs.readFileSync(process.argv[2],"utf-8");
var newText = ""
var lastType = 0;
@simonmysun
simonmysun / Install.sh
Last active August 29, 2015 14:20
My install script for debian
#!/bin/bash
set -eu
trap 'roll_back' INT TERM
alias apt-get='apt-get -y'
rand=$RANDOM;
mkdir tmp_install_$rand;
cd tmp_install_$rand;