On Mac, Homebrew is the de-facto package manager, and Homebrew Cask is the app manager. I’m going to use Cask to install Java 7 and 8.
Install Homebrew Cask first if you haven’t:
brew update
brew tap caskroom/cask
| # Create the Root CA private key | |
| ## ref> https://www.openssl.org/docs/manmaster/apps/genrsa.html | |
| openssl genrsa -out myRootCA.key 4096 | |
| # Generate the Root CA certificate signed with the private key | |
| ## ref> https://www.openssl.org/docs/manmaster/apps/req.html | |
| openssl req -x509 -new -nodes -key myRootCA.key -days 3650 -out myRootCA.pem | |
| # Country Name (2 letter code) [AU]:AU | |
| # State or Province Name (full name) [Some-State]:NSW |
| using UnityEngine; | |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Threading; | |
| class BitmapEncoder | |
| { | |
| public static void WriteBitmap(Stream stream, int width, int height, byte[] imageData) |
| [alias] | |
| recent = "!git for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)' | head -n 10" | |
| co = checkout | |
| cob = checkout -b | |
| coo = !git fetch && git checkout | |
| br = branch | |
| brd = branch -d | |
| brD = branch -D | |
| merged = branch --merged | |
| st = status |
| /* MediaDecoder | |
| Author: Andrew Stubbs (based on some examples from the docs) | |
| This class opens a file, reads the first audio channel it finds, and returns raw audio data. | |
| Usage: | |
| MediaDecoder decoder = new MediaDecoder("myfile.m4a"); | |
| short[] data; | |
| while ((data = decoder.readShortData()) != null) { |