Skip to content

Instantly share code, notes, and snippets.

View octomagon's full-sized avatar

Octomagon octomagon

View GitHub Profile
@octomagon
octomagon / sysctl.md
Last active June 2, 2016 15:28
Hardening sysctl.conf
/etc/sysctl.conf hardening
# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
net.ipv4.conf.default.rp_filter=1
net.ipv4.conf.all.rp_filter=1

# Uncomment the next line to enable TCP/IP SYN cookies
@octomagon
octomagon / devise.html.haml
Last active February 8, 2024 07:53
Replace the stock GitLab CE login greeting.
/ The template for the GitLab CE login page is located here:
/ /opt/gitlab/embedded/service/gitlab-rails/app/views/layouts/devise.html.haml
/
/ The CE admin console lets you only add markdown content to the login page.
/ This mod will let you replace it instead. If there is no addition, it will
/ display the standard CE greeting. Updates may clobber this file.
/
/ After updating it: gitlab-ctl reconfigure && gitlab-ctl restart
!!! 5