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 | |
| # composer start-up script to NOT run composer as root user accidentally. | |
| # Lets say you are in /home/john/ as root and accidently run composer update | |
| # normally composer would just warn you that you are root and continue anyway, | |
| # possibly wrecking permissions or worse. | |
| # This script runs composer as the correct user even though you are root. | |
| # Sudo is used to switch to the non-root user | |
| # A few checks are made to make sure it makes sense to run composer. | |
| # | |
| # Instructions: |
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 | |
| $fontTypes = array('woff2', 'woff', 'ttf', 'svg', 'eot'); | |
| $gFontURL = 'http://fonts.googleapis.com/css?family='; | |
| $uaFonts = array( | |
| 'woff2' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36', | |
| 'woff' => 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/4.0; GTB7.4; InfoPath.3; SV1; .NET CLR 3.1.76908; WOW64; en-US)', | |
| 'ttf' => 'Mozilla/5.0 (Linux; U; Android 2.2.1; en-ca; LG-P505R Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1', | |
| 'svg' => 'Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10', |