Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@VoidMonk
VoidMonk / redis_exporter.service
Created May 17, 2019 03:30
Systemd service file redis_exporter
[Unit]
Description=Redis Exporter
Wants=network-online.target
After=network-online.target
[Service]
User=redis_exporter
Group=redis_exporter
Type=simple
ExecStart=/usr/local/bin/redis_exporter
@VoidMonk
VoidMonk / node_exporter.service
Last active May 17, 2019 03:12
Systemd service file node_exporter
[Unit]
Description=Node Exporter
Wants=network-online.target
After=network-online.target
[Service]
User=node_exporter
Group=node_exporter
Type=simple
ExecStart=/usr/local/bin/node_exporter
@VoidMonk
VoidMonk / remove-wp-meta.php
Last active September 18, 2018 08:22 — forked from leekelleher/remove-wp-meta.php
WordPress plugin to remove the auto-generated meta tags, and version from JS/CSS asset URLs (allows better caching).
<?php
/*
Plugin Name: Remove WP Meta and Version
Plugin URI: https://gist.github.com/voidmonk/f8ebd732b30fcc1c18811e5b12a6e729
Description: This plugin removes the auto-generated WP meta tags from each webpage.
Author: Lee Kelleher
Version: 0.3.0
Author URI: http://leekelleher.com/
*/
@VoidMonk
VoidMonk / sysctl.conf
Last active November 22, 2019 03:48
sysctl.conf optimized
# sysctl.conf optimized
# apply with: sudo sysctl -p
kernel.sem = 250 32000 100 128
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
fs.file-max = 262140
vm.swappiness = 5
vm.vfs_cache_pressure = 50
@VoidMonk
VoidMonk / xvfb.service
Last active March 31, 2017 04:59 — forked from dloman/xvfb.service
sytemd xvfb
[Unit]
Description=X Virtual Frame Buffer Service
After=network.target
[Service]
ExecStart=/usr/bin/Xvfb :1 -screen 0 1024x768x24 -ac +extension GLX +render -noreset -nolisten tcp
Restart=always
[Install]
WantedBy=multi-user.target
@VoidMonk
VoidMonk / xvfb
Last active August 15, 2016 08:25 — forked from dloman/xvfb
### BEGIN INIT INFO
# Provides: Xvfb
# Required-Start: $local_fs $remote_fs
# Required-Stop:
# X-Start-Before:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Loads X Virtual Frame Buffer
### END INIT INFO