Skip to content

Instantly share code, notes, and snippets.

Max Chan xcvista

Block or report user

Report or block xcvista

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@xcvista
xcvista / emmc.diff
Last active Nov 13, 2018
U-Boot A64 eMMC bootlog
View emmc.diff
diff --git a/arch/arm/dts/sun50i-a64-orangepi-win.dts b/arch/arm/dts/sun50i-a64-orangepi-win.dts
index cf76c35..a02ecc0 100644
--- a/arch/arm/dts/sun50i-a64-orangepi-win.dts
+++ b/arch/arm/dts/sun50i-a64-orangepi-win.dts
@@ -79,6 +79,13 @@
status = "okay";
};
+&mmc2 {
+ pinctrl-names = "default";
@xcvista
xcvista / toledo-deobfuscated.c
Created Sep 17, 2013
Partly deobfuscated Toledo Chess 1.
View toledo-deobfuscated.c
/**
@file toledo-deobfuscated.c
@brief Toledo Chess 1, deobfuscated
@author Original: Óscar Toledo G. <biyubi@gmail.com>
@author Deobfuscation: Maxthon T. Chan <xcvista@me.com>
This is partly deobfuscated Toledo Chess, winning entry of 18th IOCCC.
*/
#include <setjmp.h>
View deobfuscate.sh
#!/bin/bash
#
# IOCCC entry deobfuscator
# Copyright (c) 2013 Maxthon Chan <xcvista@me.com>
#
# This tool tries to deobfuscate code of C programming language using tools from
# LLVM project, namely clang and clang-format.
#
View nanochess-defused.c
/**************************************************************************\
| Toledo Nanochess (c) Copyright 2009 Oscar Toledo G. All rights reserved |
| 1257 non-blank characters. Evolution from my winning IOCCC 2005 entry. |
| o Use D2D4 algebraic style for movements. biyubi@gmail.com Nov/20/2009 |
| o On promotion add a number for final piece (3=N, 4=B, 5=R, 6=Q) |
| o Press Enter alone for computer to play. |
| o Full legal chess moves. http://www.nanochess.org |
| o Remove these comments to get 1326 bytes source code (*NIX end-of-line) |
\**************************************************************************/
@xcvista
xcvista / zoey-101-s02e01.chs.srt
Last active Dec 15, 2015
Zoey 101 S02E01 中文听译字幕。
View zoey-101-s02e01.chs.srt
1
00:00:01,213 --> 00:00:02,213
* 准备好了没? *
2
00:00:02,918 --> 00:00:08,435
* 唔,你看见我站在屋檐下, *
3
00:00:08,514 --> 00:00:12,545
View zoey.101.s01.e01.eng.srt
1
00:00:01,852 --> 00:00:04,878
* Are you ready? Ooh. *
2
00:00:05,297 --> 00:00:08,245
* I know you see me standing here. *
3
00:00:09,639 --> 00:00:12,409
View gist:5215804
WebFusion Client Coupling Protocol 1.0
Modified from MessHall 1.1 protocol.
Part 1: Common format of the package
As described in C struct:
typedef struct __MHBinaryPackage
{
uint32_t magic; // = 0xEA5EEA5E ("Ease, ease")
View jtr-bench.txt
Benchmarking: Traditional DES [128/128 BS SSE2-16]... DONE
Many salts: 3335K c/s real, 3302K c/s virtual
Only one salt: 3251K c/s real, 3284K c/s virtual
Benchmarking: BSDI DES (x725) [128/128 BS SSE2-16]... DONE
Many salts: 111232 c/s real, 111232 c/s virtual
Only one salt: 109952 c/s real, 109952 c/s virtual
Benchmarking: FreeBSD MD5 [128/128 SSE2 intrinsics 20x]... DONE
Raw: 27460 c/s real, 27460 c/s virtual
@xcvista
xcvista / i2c_meter.ino
Created May 22, 2014
A GPIO echo meter that sends echo time length over I2C
View i2c_meter.ino
#include <Wire.h>
uint32_t ms;
int mode;
#define WIRE_ADDR 0x8
#define TRIGGER 38
#define ECHO 36
View LAM0111A
1
00:00:06,738 --> 00:00:10,775
好了 丽芙和玛蒂很快就要考完驾照回家了
Okay, Liv and Maddie will be back from their driving test any second.
2
00:00:10,777 --> 00:00:12,444
准备好庆祝仪式了么
Ready to celebrate?
You can’t perform that action at this time.