Skip to content

Instantly share code, notes, and snippets.

View zhiayang's full-sized avatar
🍣

yuki zhiayang

🍣
  • Singapore
View GitHub Profile
@zhiayang
zhiayang / qemu-patches.patch
Last active September 16, 2020 07:12
patch qemu to make my life better.
diff qemu1/ui/cocoa.m qemu2/ui/cocoa.m
--- qemu1/ui/cocoa.m
+++ qemu2/ui/cocoa.m
@@ -358,5 +358,5 @@ QemuCocoaView *cocoaView;
- (BOOL) screenContainsPoint:(NSPoint) p
{
- return (p.x > -1 && p.x < screen.width && p.y > -1 && p.y < screen.height);
+ return (p.x > -1 && p.x < (screen.width * cdx) && p.y > -1 && p.y < (screen.height * cdx));
}
@machinamentum
machinamentum / microsoft_craziness.h
Created May 19, 2019 05:51
Code for finding the path to Visual Studio by Jon Blow.
//
// Author: Jonathan Blow
// Version: 2
// Date: 7 May, 2019 (update to original version released on 31 August, 2018).
//
// This code is released under the MIT license, which you can find at
//
// https://opensource.org/licenses/MIT
//
//
@MightyPork
MightyPork / usb_hid_keys.h
Last active May 31, 2024 01:13
USB HID Keyboard scan codes
/**
* USB HID Keyboard scan codes as per USB spec 1.11
* plus some additional codes
*
* Created by MightyPork, 2016
* Public domain
*
* Adapted from:
* https://source.android.com/devices/input/keyboard-devices.html
*/
@CMCDragonkai
CMCDragonkai / notes.md
Last active March 4, 2024 16:12
3 Address Code to SSA to Assembly Explanation (by Jason Hiebel)

Notes

It should be noted that:

  1. Basic blocks in SSA can be identified at 3 points:
  • Start of the program
  • Labels
  • Branches
  1. Basic blocks are used in optimisation.
@vertexclique
vertexclique / cracking.md
Last active May 11, 2024 21:17
Cracking guide for Sublime Text 3 Build 3059 / 3065 ( Mac / Win x86_64 / Windows x86 / Linux x64 / Linux x86 )

MacOS

Build 3059

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: Sublime Text

Make it executable with: chmod u+x Sublime\ Text

@yamaya
yamaya / xcode-clang-vers
Last active May 20, 2024 16:55
Xcode clang version record
# Xcode 4.3.3
Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
# Xcode 4.3.2
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix