This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# View current configuration | |
cat /etc/postfix/main.cf | grep inet_interfaces | |
# Backup current configuration to a date/time stamp formatted file | |
sudo cp /etc/postfix/main.cf /etc/postfix/main_`date +%Y_%m_%d_%H.%M.%S`.cf | |
# Make the change | |
sudo sed -i "s|inet_interfaces = all|inet_interfaces = 127.0.0.1|" /etc/postfix/main.cf | |
# Review the current configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# SetDNS.sh | |
# | |
# | |
# Created by David Kittell on 6/14/19. | |
# | |
# Variables - Start | |
sExternalIPService="http://dns.kittell.net/ip.php" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################################################################################### | |
# PROGRAM: UnixIdentification.sh | |
# DESCRIPTION: Identify the UNIX operating system that you are on | |
# | |
# INITIAL CREDIT: UnixIdentification is a script that originated with VMWare but I have added | |
# some other systems to the script. | |
# | |
# Command line: bash UnixIdentification.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Powershell script for adding/removing/showing entries to the hosts file. | |
# | |
# Known limitations: | |
# - does not handle entries with comments afterwards ("<ip> <host> # comment") | |
# | |
# Original Script: https://gist.github.com/markembling/173887/1824b370be3fe468faceaed5f39b12bad010a417 | |
# Modified Script: https://gist.github.com/andreymir/405b924d32dace51af2b | |
# Modified Script: https://gist.github.com/lantrix/052dff5737957aae4e25 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in org.gnome.Software \ | |
org.gnome.Totem \ | |
aisleriot \ | |
cheese \ | |
org.gnome.Cheese \ | |
evolution-data-server-uoa \ | |
firefox \ | |
gnome-mahjongg \ | |
gnome-sudoku \ | |
libreoffice* \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Pi-Hole Statistics | |
# | |
# | |
# Created by David Kittell on 3/21/17. | |
# | |
clear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://hosts-file.net/ad_servers.txt | |
http://hosts-file.net/hphosts-partial.asp | |
http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext | |
http://pgl.yoyo.org/as/serverlist.php?hostformat=hosts;showintro=0&mimetype=plaintext | |
http://someonewhocares.org/hosts/hosts | |
http://sysctl.org/cameleon/hosts | |
http://unbelovedhosts.apk.defim.de/hosts | |
http://winhelp2002.mvps.org/hosts.txt | |
http://www.malwaredomainlist.com/hostslist/hosts.txt | |
http://www.montanamenagerie.org/hostsfile/hosts.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Not a pretty approach but this will help you get a listing of all active plugins | |
DROP TABLE | |
IF EXISTS wp_active_plugins; | |
CREATE TEMPORARY TABLE wp_active_plugins (plugin_file VARCHAR(150)); | |
ALTER TABLE wp_active_plugins ADD UNIQUE INDEX ix_plugin (plugin_file); | |
INSERT IGNORE | |
INTO wp_active_plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[Parameter( Mandatory=$true)] | |
[string]$Address | |
) | |
clear | |
function Get-MAC() { | |
param($Address) | |
begin { | |
$APIURL = "http://<URL>/address.xml?&search=" | |
$resource = "$($APIURL)$($Address)" |
NewerOlder