hacks tab | advanced tab |
---|---|
Displayed with default settings for both tabs. |
Tested on a 2021 16" MacBook Pro M1 Max. These settings should apply to other M1 Mac's, relatively speaking.
#!/bin/zsh | |
sec=${argv[( $argv[(i)--timeout|-t] + 1 )]:-10} | |
out=${argv[( $argv[(i)--output|-o] + 1 )]:-~/Desktop/Texture\ Loads/`date "+%m.%d,%H.%M.%S"`} | |
com=$argv[( $argv[(i)--compare|-c] + 1 )] | |
pre=$argv[( $argv[(i)--preview|-p] )] | |
if [[ $argv[(I)(--help|-h)] -gt 0 ]]; then | |
echo "\ | |
--timeout|-t [n] |
#!/bin/zsh | |
# Metroid Prime 2 | |
ignore_dir="$dump/- ignore" | |
linked_dir="$dump/- linked" | |
review_dir="$dump/- review" | |
mkdir -p $ignore_dir $linked_dir $review_dir $load | |
ln -sf $linked_dir $load |
= Resources = | |
* zsh - http://www.zsh.org/ | |
* ZSH-LOVERS - http://grml.org/zsh/zsh-lovers.html | |
* manual - http://zsh.sourceforge.net/Doc/Release/index.html | |
* oh-my-zsh - https://github.com/robbyrussell/oh-my-zsh | |
* prezo - https://github.com/sorin-ionescu/prezto | |
* zsh-users - https://github.com/zsh-users | |
= Functions = |
hacks tab | advanced tab |
---|---|
Displayed with default settings for both tabs. |
Tested on a 2021 16" MacBook Pro M1 Max. These settings should apply to other M1 Mac's, relatively speaking.
Taken from S3_Texture_Compression (Wikipedia) and condensed to what's relevant to Dolphin's texture support.
There are five three variations of the S3TC algorithm (named DXT1 through DXT5, referring to the FourCC code assigned by Microsoft to each format), each designed for specific types of image data. All convert a 4×4 block of pixels to a 64-bit or 128-bit quantity, resulting in compression ratios of 6:1 with 24-bit RGB input data or 4:1 with 32-bit RGBA input data. S3TC is a lossy compression algorithm, resulting in image quality degradation, an effect which is minimized by the ability to increase texture resolutions while maintaining the same memory requirements. Hand-drawn cartoon-like images do not compress well which usually generate artifacts.
Like many modern image compression algorithms, S3TC only specifies the method used to decompress images, allowing implementers to design the compre
This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.
Description | Syntax |
---|---|
Get the length of a string | ${#VARNAME} |
Get a single character | ${VARNAME[index]} |
# OpenEmu shader functions. Requires fzf. | |
function oeshader.search { | |
defaults find videoShader.openemu | grep $@ | |
} | |
function oeshader.copy { | |
local source=`oeshader.ls ${@:-1} | fzf --header="Select source:"` | |
if [[ -n $source ]]; then | |
oeshader.search -oE "system\.[a-z0-9]*" | sort -u | | |
fzf -m --header="Apply settings from \"${source##*.}\"." | |
<?php | |
/** | |
* Theme templates, functions and preprocess/process functions | |
* | |
* Theme templates `*.tpl.php` files are stored in the `theme` directory along | |
* with `*.func.php` and `*.vars.php` files. The latter two are enabled by the | |
* processing done below. The three types of files can be grouped into | |
* sub-directories. It is recommended that they are grouped by the modules | |
* they originate from. Theme specific hooks should be grouped into a folder |
#!/bin/zsh | |
# | |
# For use on MAME files managed by OpenEmu. | |
# advscan roms/disks/samples verifies and repairs. | |
# | |
# All options apply to roms, disks (chd) and samples. | |
# Options: | |
# | |
# scan : Generates a report specific to your collection. (default) |