This file contains hidden or 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
#include <dlfcn.h> | |
//#include <mach-o/dyld.h> | |
//#include <mach-o/getsect.h> | |
//#include <mach-o/ldsyms.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/clonefile.h> | |
#include <sys/errno.h> | |
#include <sys/syslimits.h> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CFBundleExecutable</key> | |
<string>Automator Application Stub</string> | |
<key>CFBundleIconFile</key> | |
<string>ApplicationStub</string> | |
<key>LSUIElement</key> | |
<true/> |
This file contains hidden or 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
#include <errno.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
enum qtn_flags { | |
QTN_FLAG_DOWNLOAD = 0x0001, | |
}; | |
typedef struct _qtn_proc *qtn_proc_t; |
This file contains hidden or 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
package main | |
// #cgo LDFLAGS: -framework Carbon | |
// #include <Carbon/Carbon.h> | |
import "C" | |
import ( | |
"fmt" | |
"unsafe" | |
) |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ManifestServer.Beta</key> | |
<string>https://officecdnmac.microsoft.com/pr/4B2D7701-0A4F-49C8-B4CB-0C2D4043F51F/MacAutoupdate/</string> | |
<key>ManifestServer.Current</key> | |
<string>https://officecdnmac.microsoft.com/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/</string> | |
<key>ManifestServer.CurrentThrottle</key> | |
<string>https://officecdnmac.microsoft.com/pr/A1E15C18-4D18-40B0-8577-616A9470BB10/MacAutoUpdate/</string> |
This file contains hidden or 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
package main | |
import ( | |
"io/fs" | |
"os" | |
"path" | |
) | |
var ( | |
osFiles = []*os.File{os.Stdin, os.Stdout, os.Stderr} |
This file contains hidden or 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
https://download-cdn.jetbrains.com/toolbox/feeds/v1/release.feed.xz.signed | |
GET | |
0 | |
HTTP/1.1 200 OK | |
17 | |
Content-Type: binary/octet-stream | |
Content-Length: 170516 | |
Connection: keep-alive | |
Accept-Ranges: bytes | |
Date: Sun, 28 Aug 2022 13:01:29 GMT |
This file contains hidden or 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
#include <iostream> | |
constexpr uint8_t m_len = 40; | |
constexpr uint8_t crc_len = 7; | |
constexpr uint8_t msb_shift = m_len + crc_len - 1; | |
constexpr uint8_t g_len = 8; | |
constexpr uint8_t g_shift = m_len + crc_len - g_len; | |
constexpr uint8_t g = (1 << 7) | (1 << 3) | (1 << 0); // G(x) = x^7 + x^3 + 1 | |
constexpr uint8_t crc7_impl(uint64_t crc, uint64_t msb, uint64_t msk, uint8_t iter) { |
This file contains hidden or 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
#include <assert.h> | |
#include <SystemConfiguration/SystemConfiguration.h> | |
static CFStringRef CopyCurrentConsoleUsername(SCDynamicStoreRef store) | |
// Returns the name of the current console user, or NULL if there is | |
// none. store may be NULL, in which case a transient dynamic store | |
// session is used. | |
{ | |
CFStringRef result; |
NewerOlder