Skip to content

Instantly share code, notes, and snippets.

View vanderw's full-sized avatar

vanderwaal vanderw

View GitHub Profile
@vanderw
vanderw / install-gcc-centos7.sh
Created March 25, 2026 03:33 — forked from ric-bianchi/install-gcc-centos7.sh
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
@vanderw
vanderw / myservice.service
Last active November 8, 2025 08:13 — forked from machiel/myservice.service
systemctl golang service
#/lib/systemd/system/myservice.service
#
# systemctl daemon-reload
# systemctl enable myservice.service
# systemctl start myservice.service
#
[Unit]
Description=Service
ConditionPathExists=/path/to/web/folder
After=network.target