NDJSON is a convenient format for storing or streaming structured data that may be processed one record at a time.
- Each line is a valid JSON value
- Line separator is ‘\n’
1. Convert JSON to NDJSON?
cat test.json | jq -c '.[]' > testNDJSON.json
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
Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Canada provinces --> | |
<provinces country="Canada"> | |
<province name="Alberta" french-name="Alberta" abbreviation="AB" capital="Edmonton" founded="1905" time-zone-1="MST (UTC-07)"/> | |
<province name="British Columbia" french-name="Colombie-Britannique" abbreviation="BC" capital="Victoria" founded="1871" time-zone-1="PST (UTC-08)" time-zone-2="MST (UTC-07)"/> | |
<province name="Manitoba" french-name="Manitoba" abbreviation="MB" capital="Winnipeg" founded="1870" time-zone-1="CST (UTC-06)"/> | |
<province name="New Brunswick" french-name="Nouveau-Brunswick" abbreviation="NB" capital="Fredericton" founded="1867" time-zone-1="AST (UTC-04)"/> | |
<province name="Newfoundland and Labrador" french-name="Terre-Neuve-et-Labrador" abbreviation="NL" capital="St. John's" founded="1949" time-zone-1="AST (UTC-04)" time-zone-2="NST (UTC-03:30)"/> | |
<province name="Northwest Territories" french-name="Territoires du Nord-Ouest" abbreviation="NT" capital="Yellowkn |
<?xml version="1.0" encoding="UTF-8"?> | |
<states nation="United States of America" nation-abbreviation="USA" nation-capital="Washington, D.C."> | |
<state name="Alabama" abbreviation="AL" capital="Montgomery" date="1819-12-14" most-populous-city="Birmingham" population="4708708" square-miles="52423" time-zone-1="CST (UTC-06)" time-zone-2="EST (UTC-05)" dst="Yes"/> | |
<state name="Alaska" abbreviation="AK" capital="Juneau" date="1959-01-03" most-populous-city="Anchorage" population="698473" square-miles="656425" time-zone-1="AKST (UTC-09)" time-zone-2="HST (UTC-10)" dst="Yes"/> | |
<state name="Arizona" abbreviation="AZ" capital="Phoenix" date="1912-02-14" most-populous-city="Phoenix" population="6595778" square-miles="114006" time-zone-1="MT (UTC-07)" dst="No"/> | |
<state name="Arkansas" abbreviation="AR" capital="Little Rock" date="1836-06-15" most-populous-city="Little Rock" population="2889450" square-miles="53182" time-zone-1="CST (UTC-06)" dst="Yes"/> | |
<state name="California" abbreviation="CA" capital="Sacrame |
find . -name "*.ht*" | while read i; do pandoc -f html -t markdown "$i" -o "${i%.*}.md"; done |
sudo -i
and type in your Mac Administrator account password. sudo
gives you root level or administrator level privileges.dsconfigad -show
<?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 |
find . -name "*.html" | while read i; do mv "$i" "${i%.html}.php"; done |
Build a USB installer for Debian (non-free firmware), download the Debian Buster and build usb installer with Balena Etcher
In the Debian installer, uncheck Debian desktop environment and check ssh server and other software modules.
After installing Debian, reboot the machine and login via ssh with the username you created during setup...
Once you have SSH'd from the terminal and have logged into your new Debian machine, run the following command...
<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> |