Skip to content

Instantly share code, notes, and snippets.

Last login: Wed Dec 18 12:10:55 on ttys006
mzyy94:~ mzyy94$ cd /Volumes/RamDisk/
mzyy94:RamDisk mzyy94$ gcc -g bus_error.c
mzyy94:RamDisk mzyy94$ lldb -- a.out
Current executable set to 'a.out' (x86_64).
(lldb) settings set target.run-args 0
(lldb) run
Process 67334 launched: '/Volumes/RamDisk/a.out' (x86_64)
Process 67334 stopped
* thread #1: tid = 0x50c5f, 0x0000000100000f43 a.out`main(argc=2, argv=0x00007fff5fbff838) + 115 at bus_error.c:9, queue = 'com.apple.main-thread, stop reason = EXC_BAD_ACCESS (code=2, address=0x100005000)
(lldb) settings set target.run-args 2
(lldb) run
There is a running process, kill it and restart?: [Y/n]
Process 44396 launched: '/Volumes/RamDisk/a.out' (x86_64)
Process 44396 stopped
* thread #1: tid = 0x65861, 0x0000000100000f66 a.out`main(argc=2, argv=0x00007fff5fbff838) + 150 at bus_error.c:15, queue = 'com.apple.main-thread, stop reason = EXC_BAD_ACCESS (code=1, address=0x7fff5fc87000)
frame #0: 0x0000000100000f66 a.out`main(argc=2, argv=0x00007fff5fbff838) + 150 at bus_error.c:15
12 s[i] = '\0';
13 break;
14 case '2':
.section __TEXT,__text,regular,pure_instructions
.globl _main
.align 4, 0x90
_main: ## @main
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp2:
.cfi_def_cfa_offset 16
Ltmp3:
@mzyy94
mzyy94 / iscsitarget_install.log
Last active January 2, 2016 16:19
open-iscsiとiscsitargetのinstallログ
~:$ ssh -l root localhost -p 2223
The authenticity of host '[localhost]:2223 ([127.0.0.1]:2223)' can't be established.
RSA key fingerprint is 5e:80:92:fa:82:60:05:09:89:c1:39:6b:72:30:d5:03.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[localhost]:2223' (RSA) to the list of known hosts.
root@localhost's password:
Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
00 FF FF FF FF FF FF 00 2D 54 FD 5A 01 01 01 01
FF 19 01 04 B5 3C 22 78 8F 30 35 A7 55 4E A3 26
0F 50 54 21 08 00 71 40 81 80 81 C0 A9 C0 D1 C0
01 01 01 01 01 01 50 D0 00 A0 F0 70 3E 80 08 90
65 0C 58 54 21 00 00 1A 28 68 00 A0 F0 70 3E 80
08 90 65 0C 58 54 21 00 00 1A 00 00 00 FD 00 28
3D 87 87 38 01 0A 20 20 20 20 20 20 00 00 00 FC
00 4B 4A 54 34 4B 32 4B 36 30 44 50 0A 20 01 27

Keybase proof

I hereby claim:

  • I am mzyy94 on github.
  • I am mzyy94 (https://keybase.io/mzyy94) on keybase.
  • I have a public key whose fingerprint is 2B90 A757 CB66 C276 C20F 7037 9144 6DC9 42D4 B009

To claim this, I am signing this object:

@mzyy94
mzyy94 / SobaCha-TV-AndroidManifest.xml.diff
Created July 6, 2015 14:50
SobaCha for Android TV metadata difference
2c2,4
< <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="net.wakamesoba98.sobacha" platformBuildVersionCode="20" platformBuildVersionName="4.4W.2-1537038">
---
> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="net.wakamesoba98.sobacha" platformBuildVersionCode="21" platformBuildVersionName="4.4W.2-1537038">
> <uses-feature android:name="android.software.leanback" android:required="false" />
> <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
7c9
< <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:name="net.wakamesoba98.sobacha.core.SobaChaApplication" android:theme="@style/Theme.HoloLight">
---
> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:banner="@drawable/banner" android:label="@string/app_name" android:name="net.wakamesoba98.sobacha.core.SobaChaApplication" android:theme="@style/Theme.HoloL
@mzyy94
mzyy94 / init.lua
Last active July 3, 2017 22:32
.hammerspoon
local RShift = 0x3c
local RAlt = 0x3d
local RCtrl = 0x3e
local pending
local modKeyRemap = {}
----------
local function pressFn(mods, key)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mzyy94
mzyy94 / ambxlight.c
Last active November 12, 2017 12:40
Ruby C extension impl 4 ambxlight
#include <stdio.h>
#include <ruby.h>
#include <libambxlight/libambxlight.h>
VALUE cAmbxlight;
VALUE device_count;
VALUE wAmbxlight_change_color_rgb(VALUE self, VALUE red, VALUE green, VALUE blue)
{