Skip to content

Instantly share code, notes, and snippets.

View tonilaukka's full-sized avatar

Toni Laukka tonilaukka

View GitHub Profile
@tonilaukka
tonilaukka / renameReactJsToJsx.sh
Created September 14, 2023 10:30 — forked from parties/renameReactJsToJsx.sh
rename all *.js files containing React markup to *.jsx
# finds all *.js files that have either `</` or `/>` tags in them and renames them to *.jsx
find ./src -type f -name '*.js' -not -name '*.jsx' -not -name '*.ejs' -exec bash -c 'grep -l -E "</|/>" "$0"' {} \; -exec bash -c 'mv "$0" "${0%.js}.jsx"' {} \;
@tonilaukka
tonilaukka / MySQL_macOS_Sierra.md
Created May 18, 2018 12:06 — 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 :

./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--sysconfdir=/private/etc \
--with-apxs2=/usr/sbin/apxs \
--enable-cli \
--with-config-file-path=/etc \
--with-libxml-dir=/usr \
--with-openssl=/usr \
@tonilaukka
tonilaukka / reset.css
Created April 15, 2012 11:35 — forked from rwbaker/HTML5_reset.css
HTML5 - Reset
a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
@tonilaukka
tonilaukka / gist:2314511
Created April 5, 2012 21:58 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt