Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
| # POST a JSON file and redirect output to stdout | |
| wget -q -O - --header="Content-Type:application/json" --post-file=foo.json http://127.0.0.1 | |
| # Download a complete website | |
| wget -m -r -linf -k -p -q -E -e robots=off http://127.0.0.1 | |
| # But it may be sufficient | |
| wget -mpk http://127.0.0.1 | |
| # Download all images of a website |
| private IEnumerator ExecuteRequest<T>(BuildRequestDelegate builder, ResponseDelegate<T> callback, | |
| Action cancelCallback, RequestOptions requestOptions) | |
| { | |
| using(UnityWebRequest serverRequest = builder()) | |
| { | |
| bool showActivityIndicator = ((requestOptions & RequestOptions.ShowActivityIndicator) == RequestOptions.ShowActivityIndicator); | |
| bool forceRetry = ((requestOptions & RequestOptions.ForceRetry) == RequestOptions.ForceRetry); | |
| float startTime = Time.realtimeSinceStartup; | |
| yield return serverRequest.Send(); |
| using UnityEngine; | |
| using System.Collections; | |
| using System.Text; | |
| /** | |
| * WebLocationChecker by @andyman404 | |
| * Licensed under Creative Commons Zero (do with it as you want, no credit needed) | |
| * https://creativecommons.org/publicdomain/zero/1.0/ | |
| * | |
| * This script site-locks your Unity Webplayer/WebGL build. |
| #!/bin/sh | |
| for d in */ ; do | |
| HOME=$(pwd)/$d; | |
| echo $d; | |
| # Remove the comment by your need | |
| # megasync # first run (configure client by client at once) | |
| # megasync 2> /dev/null & # load all clients at non blocking way | |
| done |
| #include "UnityAppController.h" | |
| /* | |
| * This Plug in will set a "systemLanguage" string key in PlayerPrefs with the system language code. | |
| */ | |
| @interface GetSystemLanguage : UnityAppController | |
| @end | |
| @implementation GetSystemLanguage |
| # Ignore everything | |
| /* | |
| /*/ | |
| # Inverse ignore some stuff | |
| !/Assets/ | |
| !/ProjectSettings/ | |
| !.gitignore | |
| # OS Stuff |
| using UnityEngine; | |
| using System.Collections; | |
| using System.Text; | |
| /** Add this script to an object in the first scene of your game. | |
| * It doesn't do anything for non-webplayer builds. For webplayer | |
| * builds, it checks the domain to make sure it contains at least | |
| * one of the strings, or it will redirect the page to the proper | |
| * URL for the game. | |
| */ |
| diff -ruN snes9x-1.53-src.orig/macosx/mac-cart.mm snes9x-1.53-src/macosx/mac-cart.mm | |
| --- snes9x-1.53-src.orig/macosx/mac-cart.mm 2011-04-24 22:38:10.000000000 +0900 | |
| +++ snes9x-1.53-src/macosx/mac-cart.mm 2014-12-06 15:06:35.000000000 +0900 | |
| @@ -214,7 +214,7 @@ | |
| FSRef ref; | |
| Boolean reply; | |
| char name[PATH_MAX + 1]; | |
| -#ifdef MAC_LEOPARD_TIGER_PANTHER_SUPPORT | |
| +#if defined(MAC_LEOPARD_TIGER_PANTHER_SUPPORT) || defined(MAC_YOSEMITE_SUPPORT) | |
| IBNibRef customNib; |