This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// French mac layout | |
MODIFIERKEY_ALT_SHIFT = 0x06 | |
KEY_NON_US_100 = 100 | |
// 32 | |
ASCII_20 = KEY_SPACE | |
// 33 ! | |
ASCII_21 = KEY_8 | |
// 34 " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"__comment": "All numbers here are in hex format and 0x is ignored.", | |
"__comment": " ", | |
"__comment": "This list is in ascending order of 3rd byte (HID Usage ID).", | |
"__comment": " See section 10 Keyboard/Keypad Page (0x07)", | |
"__comment": " of document USB HID Usage Tables Version 1.12.", | |
"__comment": " ", | |
"__comment": "Definition of these 3 bytes can be found", | |
"__comment": " in section B.1 Protocol 1 (Keyboard)", | |
"__comment": " of document Device Class Definition for HID Version 1.11", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.truncated { | |
text-overflow: ellipsis; | |
overflow: hidden; | |
} | |
.uppercase { | |
text-transform: uppercase; | |
} | |
.table-layout-fixed { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
func disable_gdb() { | |
let PT_DENY_ATTACH: CInt = 31 | |
let handle = dlopen("/usr/lib/libc.dylib", RTLD_NOW) | |
let sym = dlsym(handle, "ptrace") | |
typealias PtraceAlias = @convention(c) (CInt, pid_t, CInt, CInt) -> CInt | |
let ptrace = unsafeBitCast(sym, to: PtraceAlias.self) | |
_ = ptrace(PT_DENY_ATTACH, 0, 0, 0) | |
dlclose(handle) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (C) 2016 Apple Inc. All Rights Reserved. | |
See LICENSE.txt for this sample’s licensing information | |
Abstract: | |
`DirectoryMonitor` is used to monitor the contents of the provided directory by using a GCD dispatch source. | |
*/ | |
import Foundation |