Skip to content

Instantly share code, notes, and snippets.

View zhiayang's full-sized avatar
🍣

yuki zhiayang

🍣
  • Singapore
View GitHub Profile
@yamaya
yamaya / xcode-clang-vers
Last active November 10, 2024 04:44
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
@vertexclique
vertexclique / cracking.md
Last active September 18, 2024 11:54
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

@CMCDragonkai
CMCDragonkai / notes.md
Last active June 23, 2024 22:03
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.
@MightyPork
MightyPork / usb_hid_keys.h
Last active November 12, 2024 03:32
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
*/
@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
//
//
@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));
}