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
clear | |
# FTP Server Variables | |
$FTPHost = 'ftp://192.168.1.1/html/' | |
$FTPUser = 'user' | |
$FTPPass = 'password' | |
#Directory where to find pictures to upload | |
$UploadFolder = "C:\Temp\" | |
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
<# | |
.SYNOPSIS | |
Renames pictures. | |
.DESCRIPTION | |
The Rename-Pictures cmdlet to rename pictures to a format where the file creation time is first | |
in the name in this format: . The idea is that | |
.PARAMETER Path | |
Specifies the path to the folder where image files are located. Default is current location (Get-Location). |
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
<# | |
Majority of code is from: | |
Chris Warwick, @cjwarwickps, August 2012 | |
chrisjwarwick.wordpress.com | |
#> | |
$sNTPServer = 'pool.ntp.org' | |
function Get-NTPDateTime ([string] $sNTPServer) | |
{ |
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
clear | |
Function Get-TinyURL { | |
#PowerShell - Get-TinyURL API Call | |
param ( | |
[Parameter(Mandatory=$true,ValueFromPipeline=$true)] | |
[String] | |
$sHTTPLink | |
) | |
if ($sHTTPLink.StartsWith("http://") -eq $true -or $sHTTPLink.StartsWith("https://") -eq $true) |
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
#!/bin/sh | |
# Pi-Hole Statistics | |
# | |
# | |
# Created by David Kittell on 3/21/17. | |
# | |
clear |
NewerOlder