Skip to content

Instantly share code, notes, and snippets.

#!/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.
#
@xcvista
xcvista / rtx-3060.log
Created March 13, 2022 00:04
hashcat reports
>hashcat.exe -b -d 1
hashcat (v6.2.5) starting in benchmark mode
Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.
* Device #1: WARNING! Kernel exec timeout is not disabled.
This may cause "CL_OUT_OF_RESOURCES" or related errors.
@xcvista
xcvista / emmc.diff
Last active November 13, 2018 16:12
U-Boot A64 eMMC bootlog
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 September 17, 2013 05:43
Partly deobfuscated Toledo Chess 1.
/**
@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>
/**************************************************************************\
| 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 December 15, 2015 16:38
Zoey 101 S02E01 中文听译字幕。
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
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
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")
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 02:32
A GPIO echo meter that sends echo time length over I2C
#include <Wire.h>
uint32_t ms;
int mode;
#define WIRE_ADDR 0x8
#define TRIGGER 38
#define ECHO 36