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
#define INITGUID | |
#include <guiddef.h> | |
#include <windows.web.http.h> | |
extern "C" { | |
const IID IID_IUnknown = __uuidof(IUnknown); | |
const IID IID___x_ABI_CWindows_CWeb_CHttp_CIHttpClient = __uuidof(ABI::Windows::Web::Http::IHttpClient); | |
const IID IID___x_ABI_CWindows_CWeb_CHttp_CIHttpClientFactory = __uuidof(ABI::Windows::Web::Http::IHttpClientFactory); | |
const IID IID___x_ABI_CWindows_CWeb_CHttp_CIHttpRequestMessageFactory = __uuidof(ABI::Windows::Web::Http::IHttpRequestMessageFactory); | |
const IID IID___x_ABI_CWindows_CWeb_CHttp_CIHttpMethodFactory = __uuidof(ABI::Windows::Web::Http::IHttpMethodFactory); |
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 bash | |
# Install Git and Golang toolchain | |
function gdir_env_install_pkgs | |
{ | |
if [ -x "$(command -v xcode-select)" ]; then | |
xcode-select --install | |
fi |
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 bash | |
# Author: Rix | |
# Version: 0.0.1 | |
set -eu -o errexit -o pipefail -o nounset | |
function print_usage { | |
echo 'Usage: gif2mp4 [-c] <[-r] INPUT> ...' | |
echo ' -c, --concat <OUTPUT> concat all inputs into single MP4' |
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
Verifying my Blockstack ID is secured with the address 1JQ7aPR8WgdNci3nECrWidKgoeBLg5xR2t https://explorer.blockstack.org/address/1JQ7aPR8WgdNci3nECrWidKgoeBLg5xR2t |
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
[System.IO.File]::WriteAllText('out.ass', [System.IO.File]::ReadAllText('in.ass', [System.Text.Encoding]::GetEncoding('gb2312')), [System.Text.Encoding]::GetEncoding('utf-8')) | |
List of Encoding values: | |
[System.Text.Encoding]::GetEncodings() |
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
Get-ChildItem .\* -Include *.ass | Rename-Item -NewName { $_.Name -replace '^.*?(\d+).*(\.\w+)$','$1$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
.data | |
scanf_fmt: | |
.asciz "%d" | |
printf_fmt: | |
.asciz "%d\n" | |
.text | |
.global main | |
main: |
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
// USB Vendor ID: 0x05AC | |
// USB Product ID: 0x0251 | |
/* The upper label indicates the key's function. | |
* The lower label indicates the USB/HID Keyboard report value. | |
* The keyboard report (endpoint 0x81) has the following data structure: | |
* ``` | |
* struct kdb_report { | |
* uint8_t modifier; | |
* uint8_t reserved; |
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
#!/bin/zsh | |
# ------------------------------------------------------------------ | |
# [Rix] Bemuse.ninja BMS Convertor | |
# Converts the Japanese encoded BMS and reorder folders. | |
# ------------------------------------------------------------------ | |
VERSION=0.1.0 | |
SUBJECT=bemuse | |
USAGE="Usage: bemuse DIR" |
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
#!/bin/bash | |
if [ -z "$1" ]; then | |
SRC="." | |
else | |
SRC="$1" | |
fi | |
if [ -z "$2" ]; then | |
ENCODING="gb18030" |
NewerOlder