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
#!/bin/bash | |
set -eo pipefail | |
function do_megatools() { | |
ACTION="$1" | |
shift | |
if command -v megatools &> /dev/null; then | |
megatools "$ACTION" "$@" |
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
#!/bin/bash | |
set -e | |
GENERAL="\ | |
--enable-cross-compile \ | |
--arch=aarch64 \ | |
--cross-prefix=aarch64-none-elf- \ | |
--target-os=horizon" |
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
// Include the most common headers from the C standard library | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <malloc.h> | |
// Include the main libnx system header, for Switch development | |
#include <switch.h> | |
// See also libnx web_wifi.h. |
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
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <switch.h> | |
#include "web_wifi.h" | |
#define PRINT_RC(str, rc) printf("[!] %s: [0x%x] %04d-%04d\n", str, rc, R_MODULE(rc), R_DESCRIPTION(rc)) | |
void userAppInit() { |
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
#include <string.h> | |
#include <stdio.h> | |
#include <switch.h> | |
int main(int argc, char **argv) | |
{ | |
gfxInitDefault(); | |
consoleInit(NULL); | |
socketInitializeDefault(); |
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
#!/bin/bash | |
SONG_DIR="$(pwd)/StreamingAssets" | |
OUT_DIR="$(pwd)/SongExtracted" | |
#pip3 install lz4 unitypack fsb5 vorbis | |
#apt-get install libvorbis | |
mkdir -p "$OUT_DIR" | |
find "$SONG_DIR" -iname 'song-*' -exec unityextract --all -o "$OUT_DIR" {} \; |
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 java.text.SimpleDateFormat | |
def getHash = { -> | |
def stdout = new ByteArrayOutputStream() | |
exec { | |
commandLine 'git', 'rev-parse', '--short', 'HEAD' | |
standardOutput = stdout | |
} | |
return stdout.toString().trim() | |
} |
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
<?php | |
namespace Kernel\Middleware; | |
use Psr\Http\Message\ResponseInterface as Response; | |
use Psr\Http\Message\ServerRequestInterface as Request; | |
use Clockwork\Helpers\ServerTiming; | |
use Clockwork\DataSource\PsrMessageDataSource; | |
use Clockwork\Clockwork; |