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
--Two changes to be made before you use this script | |
--1. Find this line in the script below and change it to the path to your Dropbox Public folder. | |
--Change pubfolder to the path of your dropbox public folder (ex. /Users/John/Dropbox/Public/) | |
--2. Observe one of your Dropbox URLs and you will notice that there are some numbers in those URLs. That is your Dropbox id. | |
--Find this line in the script below and change it to your Dropbox id instead of 123456 | |
--set dropboxID to 123456 | |
------------------------------------------------------------------- | |
--How to use? | |
--Bring this script in LaunchBar, press space and type the name that you would like to give to that screenshot and press return | |
--e.g. myname |
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
# Styles @see man terminfo | |
__blu=`tput setaf 25` # blue | |
__gra=`tput setaf 245` # gray | |
__ora=`tput setaf 208` # orange | |
__end=`tput setaf 0` # end colors | |
__bol=`tput bold` # bold | |
__res=`tput sgr0` # reset | |
# /usr/local/* defined so it comes before /usr/bin and /bin. Required for | |
# Homebrew. Default PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin |
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 | |
/** | |
* 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 |
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
// Find modifer without base. | |
// .[base--]modifier - yes | |
// .[base-s]ubelement - no | |
// .foo-[base--]modifier - no | |
// .bar[base--]modifier - uhh.. Just name your classes correctly. | |
[class*="base--"]:not([class*="-base--"]) { | |
outline: 2px solid red; | |
} | |
// Base exists, cancel. | |
[class*="base--"]:not([class*="-base--"]).base { |
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
# 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##*.}\"." | |
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
# advscan MAME roms/disks/samples scans and repairs. | |
function oemame.scan { | |
local command=${@:-scan} | |
local base_dir=$HOME/Library/Application\ Support/OpenEmu | |
local version=${${${:-`defaults read \ | |
$base_dir/Cores/MAME.oecoreplugin/Contents/Info.plist CFBundleVersion` | |
}/./}%%.*} | |
# Go back to current directory when done. | |
# advscan can't resolve paths when run outside advscan.rc. |
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 | |
# | |
# 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) |
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 | |
# - Requires homebrew. https://brew.sh | |
# - Converted files will be moved to the current working directory in all cases. | |
# - You can pass the starting directory for fzf search functions. | |
# - Pass in glob patterns for the standalone function to convert in bulk. | |
# For example, to convert gdi's in a sub-directory: chd.create */*.gdi | |
alias chd.fzf.create='_fzf-paths-to chd.create f ".(gdi|cue)$"' | |
alias chd.fzf.extract-to-cue='_fzf-paths-to chd.extract-to-cue f .chd$' |
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 zsh | |
set -e | |
local pkgdef _pkgdef | |
zparseopts -D -E - {-formula,-formulae,-cask}=_pkgdef | |
# conditional output based on the homebrew package definition being worked on. | |
# example: `c.pkgdef output-for-formula output-for-cask` | |
# if `--formula` is passed to this script, `output-for-formula` will be output. |