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
{ | |
"configurations": [ | |
{ | |
"name": "Xbox", | |
"includePath": [ | |
"${workspaceFolder}/**", | |
"${workspaceFolder}/3rdparty/nxdk/**" | |
], | |
"defines": [ | |
"NXDK", |
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
PXBOX_PARTITION_TABLE PartitionTable = NULL; | |
NTSTATUS DriveUtils::ReadPartitionTable() { | |
ANSI_STRING PartitionPath; | |
RtlInitAnsiString(&PartitionPath, "\\Device\\Harddisk0\\Partition0"); | |
OBJECT_ATTRIBUTES ObjectAttributes; | |
InitializeObjectAttributes(&ObjectAttributes, &PartitionPath, OBJ_CASE_INSENSITIVE, NULL, NULL); | |
IO_STATUS_BLOCK IoStatusBlock = { 0 }; |
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
#!/usr/bin/env python3 | |
import glob | |
search_bytes = b'\x04\x01\x48\x00\x80\x02\xE0\x01\x01\x07\x07\x88\x04\x01\x49\x00\x80\x02\xE0\x01\x01\x07\x07\x88\x04\x01\x48\x00\xD0\x02\xE0\x01' | |
xbe_list = glob.glob("/home/dustin/Projects/extract-xiso-test/build/**/*.xbe", recursive=True) | |
print("Scanning %d XBEs" % len(xbe_list)) | |
matches_no_table = [] | |
matches_multiple = [] |
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
SUBSYSTEM=="usb", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02d1", MODE="660", GROUP+="plugdev", ATTR{authorized}="0" | |
ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02d1", DRIVER="usbhid", RUN="/bin/sh -c 'echo -n $kernel >/sys/bus/usb/drivers/usbhid/unbind'" | |
SYSFS{idVendor}=="045e", SYSFS{idProduct}=="02d1", MODE="0666", PROGRAM="/bin/sh -c 'echo -n $id:1.0 >/sys/bus/usb/drivers/usbhid/unbind;\ | |
echo -n $id:1.1 >/sys/bus/usb/drivers/usbhid/unbind'" | |
ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02d1", OPTIONS=="ignore_device" | |
ACTION=="add", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02d1", ATTRS{authorized}=="1", ENV{PARID}="$id", RUN+="/bin/sh -c 'echo 0 >/sys/bus/usb/devices/$env{PARID}/authorized'" |
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
#!/usr/bin/env sh | |
# Remove all existing alternatives | |
sudo update-alternatives --remove-all llvm | |
sudo update-alternatives --remove-all clang | |
# exit on first error | |
set -e | |
# To Install llvm/clang 4.0/5.0 |
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
NXDK_DIR = $(CURDIR)/../nxdk | |
DXT_TITLE = force480p | |
SRCS = main.c | |
include $(NXDK_DIR)/Makefile_dxt |
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
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 100, 112, 113].filter(function(number) { | |
return !(number % 2); | |
}) |
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
<?PHP | |
// Controller - Loading Data | |
$property = $this->Properties->get($id, [ | |
'contain' => [ | |
'Rates' | |
] | |
]); | |
// Controller - Saving Data | |
$property = TableRegistry::get('Properties')->patchEntity($property, $request_data, [ |
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 <string> | |
#include <windows.h> | |
#include <fstream> | |
#include <iostream> | |
typedef struct SCO_Header { | |
int Identifier; | |
int Code_Size; | |
int Global_Var_Count; | |
int Public_Var_Count; |