Systemd Editing

Editing Unit Files While the specific format for unit files is outside of the scope of this tutorial, systemctl provides built-in mechanisms for editing and modifying unit files if you need to make adjustments. This functionality was added in systemd version 218. The edit command, by default, will open a…

SSH Tunnels

Bash script found here: https://gist.github.com/scy/6781836 * -fRun in the background before command execution. * -NDon’t execute any commands * -TDisable pseudo-tty allocation. * -S socketnameUse a control socket with name socketname * -MPut control socket in master mode * -O check, exitControl command #!/bin/bash ip="1.1.1.1"…

Grab MAC From ARP Table With PHP

Cool function you can use on your local network to lookup a devices MAC address, (assuming the device is on your network), using PHP.For a big company, either look in the remote locations router, or your core router. // ============================================= // getmac(Device IP, Router, SNMP Read Community) // Michael Requeny -- http:…

Disable IPv6 On Ubuntu/Debian

The more formal way of doing this, which fits in with the don’t-change-a-core-system-file-otherwise-it-could-be-replaced-when-you-upgrade-packages-and-your-changes-could-be-lost methodology, and such that it continues across a reboot, is as follows: # create the long-life config file echo "net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.…

Bootstrap Validators

2 Bootstrap Validators that I like to use. https://jqueryvalidation.org/ http://1000hz.github.io/bootstrap-validator/…