Installing WordPress on a FreeNAS Jail

After creating a basic jail do this:
Step 1 Configue the the Jail to Use SSH
Step 2 – Setup Apache, MySQL and PHP – NOTE: Make changes for your version of PHP
with minor changes from
Step 3 – install workpress

Remapping the delete key on MacOS High Sierra

To change the Delete key actually delete rather than backspace, run this command:
$ hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x70000004C,"HIDKeyboardModifierMappingDst":0x70000002A},{"HIDKeyboardModifierMappingSrc":0x70000002A,"HIDKeyboardModifierMappingDst":0x70000004C}]}'
to change it back again, run this command:
$ hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x70000002A,"HIDKeyboardModifierMappingDst":0x70000002A},{"HIDKeyboardModifierMappingSrc":0x70000002A,"HIDKeyboardModifierMappingDst":0x70000002A}]}'
Source :

My notes on how to use git

1) create a local git repo
$ git init
1.5) Save username and password for github
$ git config credential.helper store
$ git push
Username: <type your username>
Password: <type your password>

2) Add all the files in the currect folder
$ git add *
3) Commit the files/changes
$ git commit -m "first commit"
4) Add the remote repo
$ git remote add github https://github-url
5) Push the local repo to the remote repo
$ git push --set-upstream github master
After adding files for making changes
6) add newfile.txt to local git repo
$ git add newfile.txt
7) commit the changes (adding the new file / or if you’ve updated files)
$ git commit -m "added update script"
8) push the changes to github
$ git push --set-upstream github master
— How to undo chanages BEFORE A COMMIT —-
Use this command to see which files have changed
$ git diff
Then use the checkout command to replace the file with the changes you want to undo
$ git checkout <filename>
NOTE : this needs to happen BEFORE you do a commit.

Cool additions to the Gnome Desktop

Go to and install the browser extension.
Use firefox, not chrome, chrome goes haywire when you install the browser extension
Then look for the following extensions and install them.

  • Dash to Panel
    Arc Menu

see original article here:

Find and replace text within a file using sed

Find and replace text within a file using sed

The procedure to change the text in files under Linux/Unix using sed:

  1. Use Stream EDitor (sed) as follows:
  2. sed -i 's/old-text/new-text/g' input.txt
  3. The s is the substitute command of sed for find and replace
  4. It tells sed to find all occurrences of ‘old-text’ and replace with ‘new-text’ in a file named input.txt
  5. Verify that file has been updated:
  6. more input.txt