Skip to content

Instantly share code, notes, and snippets.

View vanderw's full-sized avatar

vanderwaal vanderw

View GitHub Profile
@ric-bianchi
ric-bianchi / install-gcc-centos7.sh
Created August 4, 2020 16:15
Install a modern GCC on Centos 7. Tested with GCC 9.
# By default, only GCC 4.8 is installed with devtools on Centos7.
# So here we will install a recent version of GCC.
# Source: https://linuxize.com/post/how-to-install-gcc-compiler-on-centos-7/
# 1. Install the SCL.
sudo yum install centos-release-scl
# 2. See what versions are available.
sudo yum search devtoolset
@gaearon
gaearon / minification.md
Last active April 4, 2026 09:30
How to Set Up Minification

In production, it is recommended to minify any JavaScript code that is included with your application. Minification can help your website load several times faster, especially as the size of your JavaScript source code grows.

Here's one way to set it up:

  1. Install Node.js
  2. Run npm init -y in your project folder (don't skip this step!)
  3. Run npm install terser

Now, to minify a file called like_button.js, run in the terminal: