Verify and Repair Disk Permissions via Terminal (Mac OS X)
Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
<?xml version="1.0" encoding="UTF-8" ?> | |
<!-- | |
Name: RSS feed date format to Symphony date format | |
Version: 1.0 | |
Author: Brian Zerangue <brian.zerangue@gmail.com> | |
URL: http://symphony21.com/downloads/xslt/file/20457/ | |
Description: | |
Convert RSS feed date format to Symphony date format | |
Convert RFC 2822 timestamp format to ISO date format minus the time info (Symphony CMS date format) |
This is not a support document. Not responsible for whomever might use this. This put down for my personal use and if anyone else wants to use it they can, but this process will remove any data from the target device they are installing on.
REQUIREMENTS:
find . -name "*.ht*" | while read i; do pandoc -f html -t markdown "$i" -o "${i%.*}.md"; done |
NDJSON is a convenient format for storing or streaming structured data that may be processed one record at a time.
cat test.json | jq -c '.[]' > testNDJSON.json
find . -name "*.html" | while read i; do mv "$i" "${i%.html}.php"; done |
<?php | |
/** | |
* Array2XML: A class to convert array in PHP to XML | |
* It also takes into account attributes names unlike SimpleXML in PHP | |
* It returns the XML in form of DOMDocument class for further manipulation. | |
* It throws exception if the tag name or attribute name has illegal chars. | |
* | |
* Author : Lalit Patel | |
* Website: http://www.lalit.org/lab/convert-php-array-to-xml-with-attributes | |
* License: Apache License 2.0 |
<?php | |
// You instantiating the XSLTProcessor - libXSLT | |
$xmlProc = new XsltProcessor(); | |
// Your XSLT Stylesheet for transforming XML | |
$xslt = new DomDocument(); | |
$xslt -> load("example.xsl"); | |
// This prepares the XSLT for transform | |
$xmlProc -> importStylesheet($xslt); |
<select id="state" name="state"> | |
<option value="">Select One</option> | |
<optgroup label="U.S. States/Territories"> | |
<option value="AK">Alaska</option> | |
<option value="AL">Alabama</option> | |
<option value="AR">Arkansas</option> | |
<option value="AZ">Arizona</option> | |
<option value="CA">California</option> | |
<option value="CO">Colorado</option> | |
<option value="CT">Connecticut</option> |
<?xml version="1.0" encoding="UTF-8"?> | |
<yahoo-weather-codes> | |
<code number="0" description="tornado"/> | |
<code number="1" description="tropical storm"/> | |
<code number="2" description="hurricane"/> | |
<code number="3" description="severe thunderstorms"/> | |
<code number="4" description="thunderstorms"/> | |
<code number="5" description="mixed rain and snow"/> | |
<code number="6" description="mixed rain and sleet"/> | |
<code number="7" description="mixed snow and sleet"/> |