Skip to content

Instantly share code, notes, and snippets.

AppleIntelInfo.kext v2.9 Copyright © 2012-2017 Pike R. Alpha. All rights reserved.
Settings:
------------------------------------------
logMSRs..................................: 1
logIGPU..................................: 0
logCStates...............................: 1
logIPGStyle..............................: 1
InitialTSC...............................: 0x16a3fb110da4 (777 MHz)
MWAIT C-States...........................: 135456
@max6cn
max6cn / 64.gua
Created October 5, 2019 00:22
64 Gua
䷁ ䷖ ䷇ ䷓ ䷏ ䷢ ䷬ ䷋ 坤 剝 比 觀 豫 晉 萃 否
䷎ ䷳ ䷦ ䷴ ䷽ ䷷ ䷞ ䷠ 謙 艮 蹇 漸 小過 旅 咸 遯
䷆ ䷃ ䷜ ䷺ ䷧ ䷿ ䷮ ䷅ 師 蒙 坎 渙 解 未濟 困 訟
䷭ ䷑ ䷯ ䷸ ䷟ ䷱ ䷛ ䷫ 升 蠱 井 巽 恆 鼎 大過 姤
䷗ ䷚ ䷂ ䷩ ䷲ ䷔ ䷐ ䷘ 復 頤 屯 益 震 噬嗑 隨 无妄
䷣ ䷕ ䷾ ䷤ ䷶ ䷝ ䷰ ䷌ 明夷 賁 既濟 家人 豐 離 革 同人
䷒ ䷨ ䷻ ䷼ ䷵ ䷥ ䷹ ䷉ 臨 損 節 中孚 歸妹 睽 兌 履
䷊ ䷙ ䷄ ䷈ ䷡ ䷍ ䷪ ䷀ 泰 大畜 需 小畜 大壯 大有 夬 乾
@max6cn
max6cn / context.rs
Last active August 7, 2019 17:57
Q Framework
pub struct Context<'a , T = i32>{
simulator: *mut Simulator,
servers : *mut Server,
generator: *mut Generator,
events: *mut EventQueue,
queue: *mut Queue,
_marker: PhantomData<&'a T>,
}
impl <'a, T> Context<'a, T>{
pub fn get_simulator(&self) -> &'a mut Simulator {
@max6cn
max6cn / trait_obj.rs
Created August 1, 2019 09:39
Simple demo show how to use trait object for dynamic dispatch
#![allow(dead_code)]
trait Bar {
fn bar(&self) -> i32;
}
struct Foo{
i:i32
}
impl Bar for Foo {
fn bar(&self) -> i32{
@max6cn
max6cn / read_tuple.rs
Created July 26, 2019 00:15
Reading tuple from a line
// Reading tuple from a line
// Example : read_tuple( "1 ab 3"
// ,(i32, String, i32))
// Expected : (1, "ab", 3)
macro_rules! read_tuple {
(
$input:ident, ($($t:ty),*)
) => {
{
let mut ws = $input.trim().split(" ");
@max6cn
max6cn / feeds.json
Created July 31, 2018 22:52
Event Feeds
[{"nid":"178025","title":"No Limits Theater: Timeless Journey","body":"In this original No Limits production, we invite the audience to join us on an exploration through American history as deaf children visit momentous occasions in our nation's past! These children learn that even great people of the past, Ben Franklin, Louis and Clark, and Albert Einstein to name a few, started out just like them: a person with a curious mind and an appetite for adventure. By declaring our dreams, having courage, speaking the truth, and finding humor in life we can create our own journey and become a part of history.","start_date":"2018-08-04 15:00:00","end_date":"2018-08-04 15:00:00","featured_event":0,"featured_event_image":"","featured_teaser":"","path":"http:\/\/www.unlv.edu\/event\/no-limits-theater-timeless-journey","building_link":"http:\/\/www.unlv.edu\/maps\/hfa","building_name":"Alta Ham Fine Arts","event_location":"Black Box Theatre","event_cost":"Order Your Tickets\r\n\r\n\r\n\tAt the UNLV Performing Arts Center

test

@max6cn
max6cn / a
Created November 14, 2017 21:30
placehold
a
@max6cn
max6cn / INSTALL.MD
Last active November 3, 2017 00:49
Fabric8 Installation

Pre-requisites

Verify nip.io DNS service works

$ host 192.168.99.100.nip.io
192.168.99.100.nip.io has address 192.168.99.100

If ip not resolved, then use google DNS IP.

@max6cn
max6cn / cloudSettings
Last active May 8, 2017 18:36
Visual Studio Code Sync Settings Gist
{"lastUpload":"2017-05-08T18:36:15.660Z","extensionVersion":"v2.7.0"}