Skip to content

Instantly share code, notes, and snippets.

I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@haiproit
haiproit / read-write-file.js
Created September 28, 2017 09:50
Read Write to file with javascript
/// write to file
var txtFile = "c:/test.txt";
var file = new File(txtFile);
var str = "My string of text";
file.open("w"); // open file with write access
file.writeln("First line of text");
file.writeln("Second line of text " + str);
file.write(str);
file.close();
@haiproit
haiproit / MySQL_macOS_Sierra.md
Created April 5, 2019 08:26 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

Keybase proof

I hereby claim:

  • I am haiproit on github.
  • I am nhatha (https://keybase.io/nhatha) on keybase.
  • I have a public key ASDXAlhIyl-mR0iQVMXe3fdPyQsIfVIzt98MkOkYcwb5Ego

To claim this, I am signing this object: